SConstruct (11992:358cdf876d3d) SConstruct (11999:252c50d5b736)
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

1352 switch_hdr_action = MakeAction(gen_switch_hdr,
1353 Transform("GENERATE"), varlist=['ALL_ISA_LIST'])
1354
1355 # Instantiate actions for each header
1356 for hdr in switch_headers:
1357 env.Command(hdr, [], switch_hdr_action)
1358
1359 isa_target = Dir('.').up().name.lower().replace('_', '-')
1# -*- mode:python -*-
2
3# Copyright (c) 2013, 2015, 2016 ARM Limited
4# All rights reserved.
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

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

1352 switch_hdr_action = MakeAction(gen_switch_hdr,
1353 Transform("GENERATE"), varlist=['ALL_ISA_LIST'])
1354
1355 # Instantiate actions for each header
1356 for hdr in switch_headers:
1357 env.Command(hdr, [], switch_hdr_action)
1358
1359 isa_target = Dir('.').up().name.lower().replace('_', '-')
1360 env['PHONY_BASE'] = '#'+isa_target
1361 all_isa_deps[isa_target] = None
1362
1363Export('make_switching_dir')
1364
1365def make_gpu_switching_dir(dname, switch_headers, env):
1366 # Generate the header. target[0] is the full path of the output
1367 # header to generate. 'source' is a dummy variable, since we get the
1368 # list of ISAs from env['ALL_ISA_LIST'].

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

1416BUILD_TARGETS[:] = ['#all-targets']
1417
1418###################################################
1419#
1420# Define build environments for selected configurations.
1421#
1422###################################################
1423
1360 all_isa_deps[isa_target] = None
1361
1362Export('make_switching_dir')
1363
1364def make_gpu_switching_dir(dname, switch_headers, env):
1365 # Generate the header. target[0] is the full path of the output
1366 # header to generate. 'source' is a dummy variable, since we get the
1367 # list of ISAs from env['ALL_ISA_LIST'].

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

1415BUILD_TARGETS[:] = ['#all-targets']
1416
1417###################################################
1418#
1419# Define build environments for selected configurations.
1420#
1421###################################################
1422
1423def variant_name(path):
1424 return os.path.basename(path).lower().replace('_', '-')
1425main['variant_name'] = variant_name
1426main['VARIANT_NAME'] = '${variant_name(BUILDDIR)}'
1427
1424for variant_path in variant_paths:
1425 if not GetOption('silent'):
1426 print "Building in", variant_path
1427
1428 # Make a copy of the build-root environment to use for this config.
1429 env = main.Clone()
1430 env['BUILDDIR'] = variant_path
1431

--- 125 unchanged lines hidden ---
1428for variant_path in variant_paths:
1429 if not GetOption('silent'):
1430 print "Building in", variant_path
1431
1432 # Make a copy of the build-root environment to use for this config.
1433 env = main.Clone()
1434 env['BUILDDIR'] = variant_path
1435

--- 125 unchanged lines hidden ---