SConstruct (3716:70d75ce167a3) | SConstruct (3717:d4eacb8998d2) |
---|---|
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 --- 76 unchanged lines hidden (view full) --- 85 print "Error checking current SCons version." 86 print "SCons", ".".join(map(str,min_scons_version)), "or greater required." 87 Exit(2) 88 89 90# The absolute path to the current directory (where this file lives). 91ROOT = Dir('.').abspath 92 | 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 --- 76 unchanged lines hidden (view full) --- 85 print "Error checking current SCons version." 86 print "SCons", ".".join(map(str,min_scons_version)), "or greater required." 87 Exit(2) 88 89 90# The absolute path to the current directory (where this file lives). 91ROOT = Dir('.').abspath 92 |
93# Paths to the M5 and external source trees. | 93# Path to the M5 source tree. |
94SRCDIR = joinpath(ROOT, 'src') 95 96# tell python where to find m5 python code 97sys.path.append(joinpath(ROOT, 'src/python')) 98 99################################################### 100# 101# Figure out which configurations to set up based on the path(s) of --- 224 unchanged lines hidden (view full) --- 326 327# Define the universe of supported ISAs 328env['ALL_ISA_LIST'] = ['alpha', 'sparc', 'mips'] 329 330# Define the universe of supported CPU models 331env['ALL_CPU_LIST'] = ['AtomicSimpleCPU', 'TimingSimpleCPU', 332 'O3CPU', 'OzoneCPU'] 333 | 94SRCDIR = joinpath(ROOT, 'src') 95 96# tell python where to find m5 python code 97sys.path.append(joinpath(ROOT, 'src/python')) 98 99################################################### 100# 101# Figure out which configurations to set up based on the path(s) of --- 224 unchanged lines hidden (view full) --- 326 327# Define the universe of supported ISAs 328env['ALL_ISA_LIST'] = ['alpha', 'sparc', 'mips'] 329 330# Define the universe of supported CPU models 331env['ALL_CPU_LIST'] = ['AtomicSimpleCPU', 'TimingSimpleCPU', 332 'O3CPU', 'OzoneCPU'] 333 |
334if os.path.isdir(joinpath(SRCDIR, 'src/encumbered/cpu/full')): | 334if os.path.isdir(joinpath(SRCDIR, 'encumbered/cpu/full')): |
335 env['ALL_CPU_LIST'] += ['FullCPU'] 336 337# Sticky options get saved in the options file so they persist from 338# one invocation to the next (unless overridden, in which case the new 339# value becomes sticky). 340sticky_opts = Options(args=ARGUMENTS) 341sticky_opts.AddOptions( 342 EnumOption('TARGET_ISA', 'Target ISA', 'alpha', env['ALL_ISA_LIST']), --- 285 unchanged lines hidden --- | 335 env['ALL_CPU_LIST'] += ['FullCPU'] 336 337# Sticky options get saved in the options file so they persist from 338# one invocation to the next (unless overridden, in which case the new 339# value becomes sticky). 340sticky_opts = Options(args=ARGUMENTS) 341sticky_opts.AddOptions( 342 EnumOption('TARGET_ISA', 'Target ISA', 'alpha', env['ALL_ISA_LIST']), --- 285 unchanged lines hidden --- |