SConscript (13656:2727dfddacf3) SConscript (13675:afeab32b3655)
1# -*- mode:python -*-
2
3# Copyright (c) 2018 ARM Limited
4#
5# The license below extends only to copyright in the software and shall
6# not be construed as granting a license to any other intellectual
7# property including but not limited to intellectual property relating
8# to a hardware implementation of the functionality of the software

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

1333target_types = ['debug', 'opt', 'fast', 'prof', 'perf']
1334obj2target = {'do': 'debug', 'o': 'opt', 'fo': 'fast', 'po': 'prof',
1335 'gpo' : 'perf'}
1336
1337def identifyTarget(t):
1338 ext = t.split('.')[-1]
1339 if ext in target_types:
1340 return ext
1# -*- mode:python -*-
2
3# Copyright (c) 2018 ARM Limited
4#
5# The license below extends only to copyright in the software and shall
6# not be construed as granting a license to any other intellectual
7# property including but not limited to intellectual property relating
8# to a hardware implementation of the functionality of the software

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

1333target_types = ['debug', 'opt', 'fast', 'prof', 'perf']
1334obj2target = {'do': 'debug', 'o': 'opt', 'fo': 'fast', 'po': 'prof',
1335 'gpo' : 'perf'}
1336
1337def identifyTarget(t):
1338 ext = t.split('.')[-1]
1339 if ext in target_types:
1340 return ext
1341 if obj2target.has_key(ext):
1341 if ext in obj2target:
1342 return obj2target[ext]
1343 match = re.search(r'/tests/([^/]+)/', t)
1344 if match and match.group(1) in target_types:
1345 return match.group(1)
1346 return 'all'
1347
1348needed_envs = [identifyTarget(target) for target in BUILD_TARGETS]
1349if 'all' in needed_envs:

--- 53 unchanged lines hidden ---
1342 return obj2target[ext]
1343 match = re.search(r'/tests/([^/]+)/', t)
1344 if match and match.group(1) in target_types:
1345 return match.group(1)
1346 return 'all'
1347
1348needed_envs = [identifyTarget(target) for target in BUILD_TARGETS]
1349if 'all' in needed_envs:

--- 53 unchanged lines hidden ---