cmake: gem5-related build system updates
The build system now allows incremental gem5 builds. Unfortunately, the current solution always requires re-linking the executable. Without the enforcement of re-linking, the fail code will be rebuilt but not linked into gem5. The number of cores for building gem5 is derived from /proc/cpuinfo. As before, only the gem5.debug configuration is supported. Change-Id: Ib13b15d1ecd62196eb251e0fd00953f4eb052feb
This commit is contained in:
@ -169,6 +169,9 @@ AddLocalOption('--update-ref', dest='update_ref', action='store_true',
|
||||
help='Update test reference outputs')
|
||||
AddLocalOption('--verbose', dest='verbose', action='store_true',
|
||||
help='Print full tool command lines')
|
||||
# DanceOS-specific:
|
||||
AddLocalOption('--dummy', dest='dummy', action='store_true',
|
||||
help='Only generate files (do not actually compile)')
|
||||
|
||||
termcap = get_termcap(GetOption('use_colors'))
|
||||
|
||||
@ -488,9 +491,19 @@ if main['GCC'] + main['SUNCC'] + main['ICC'] + main['CLANG'] > 1:
|
||||
print 'Error: How can we have two at the same time?'
|
||||
Exit(1)
|
||||
|
||||
# DanceOS-specific: BEGIN
|
||||
main['GCC'] = True
|
||||
main['GCC_VERSION'] = '4.4.5'
|
||||
|
||||
if '--dummy' in sys.argv:
|
||||
print 'Info: Compiling in dummy-mode (generate files only)!'
|
||||
# Set the dummy build tools:
|
||||
main['CXX'] = 'true'
|
||||
main['AR'] = 'true'
|
||||
main['RANLIB'] = 'true'
|
||||
main['LINK'] = 'true'
|
||||
# DanceOS-specific: END
|
||||
|
||||
# Set up default C++ compiler flags
|
||||
if main['GCC']:
|
||||
main.Append(CCFLAGS=['-pipe'])
|
||||
@ -499,6 +512,7 @@ if main['GCC']:
|
||||
# Read the GCC version to check for versions with bugs
|
||||
# Note CCVERSION doesn't work here because it is run with the CC
|
||||
# before we override it from the command line
|
||||
# DanceOS (commented out):
|
||||
# gcc_version = readCommand([main['CXX'], '-dumpversion'], exception=False)
|
||||
# main['GCC_VERSION'] = gcc_version
|
||||
# if not compareVersions(gcc_version, '4.4.1') or \
|
||||
|
||||
Reference in New Issue
Block a user