SConscript (11997:1f7df6984b6f) SConscript (11999:252c50d5b736)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 1219 unchanged lines hidden (view full) ---

1228# source files). Add this dependency to all targets so they will wait
1229# until the environments are completely set up. Otherwise, a second
1230# process (e.g. -j2 or higher) will try to compile the requested target,
1231# not know how, and fail.
1232env.Append(BUILDERS = {'MakeEnvirons' :
1233 Builder(action=MakeAction(makeEnvirons,
1234 Transform("ENVIRONS", 1)))})
1235
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 1219 unchanged lines hidden (view full) ---

1228# source files). Add this dependency to all targets so they will wait
1229# until the environments are completely set up. Otherwise, a second
1230# process (e.g. -j2 or higher) will try to compile the requested target,
1231# not know how, and fail.
1232env.Append(BUILDERS = {'MakeEnvirons' :
1233 Builder(action=MakeAction(makeEnvirons,
1234 Transform("ENVIRONS", 1)))})
1235
1236isa_target = env['PHONY_BASE'] + '-deps'
1237environs = env['PHONY_BASE'] + '-environs'
1238env.Depends('#all-deps', isa_target)
1236isa_target = '#${VARIANT_NAME}-deps'
1237environs = '#${VARIANT_NAME}-environs'
1238env.Depends('#all-deps', isa_target)
1239env.Depends('#all-environs', environs)
1240env.ScanISA(isa_target, File('arch/%s/generated/inc.d' % env['TARGET_ISA']))
1241envSetup = env.MakeEnvirons(environs, isa_target)
1242
1243# make sure no -deps targets occur before all ISAs are complete
1244env.Depends(isa_target, '#all-isas')
1245# likewise for -environs targets and all the -deps targets
1246env.Depends(environs, '#all-deps')
1239env.Depends('#all-environs', environs)
1240env.ScanISA(isa_target, File('arch/%s/generated/inc.d' % env['TARGET_ISA']))
1241envSetup = env.MakeEnvirons(environs, isa_target)
1242
1243# make sure no -deps targets occur before all ISAs are complete
1244env.Depends(isa_target, '#all-isas')
1245# likewise for -environs targets and all the -deps targets
1246env.Depends(environs, '#all-deps')