SConscript (2665:a124942bacb8) | SConscript (2667:fe64b8353b1c) |
---|---|
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 --- 90 unchanged lines hidden (view full) --- 99 mem/port.cc 100 101 sim/builder.cc 102 sim/configfile.cc 103 sim/debug.cc 104 sim/eventq.cc 105 sim/faults.cc 106 sim/main.cc | 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 --- 90 unchanged lines hidden (view full) --- 99 mem/port.cc 100 101 sim/builder.cc 102 sim/configfile.cc 103 sim/debug.cc 104 sim/eventq.cc 105 sim/faults.cc 106 sim/main.cc |
107 python/swig/main_wrap.cc |
|
107 sim/param.cc 108 sim/profile.cc 109 sim/root.cc 110 sim/serialize.cc 111 sim/sim_events.cc | 108 sim/param.cc 109 sim/profile.cc 110 sim/root.cc 111 sim/serialize.cc 112 sim/sim_events.cc |
112 sim/sim_exit.cc | |
113 sim/sim_object.cc 114 sim/startup.cc 115 sim/stat_context.cc 116 sim/stat_control.cc 117 sim/system.cc 118 sim/trace_context.cc 119 ''') 120 --- 155 unchanged lines hidden (view full) --- 276 277if env['TARGET_ISA'] == 'ALPHA_ISA': 278 syscall_emulation_sources += alpha_eio_sources 279 280memtest_sources = Split(''' 281 cpu/memtest/memtest.cc 282 ''') 283 | 113 sim/sim_object.cc 114 sim/startup.cc 115 sim/stat_context.cc 116 sim/stat_control.cc 117 sim/system.cc 118 sim/trace_context.cc 119 ''') 120 --- 155 unchanged lines hidden (view full) --- 276 277if env['TARGET_ISA'] == 'ALPHA_ISA': 278 syscall_emulation_sources += alpha_eio_sources 279 280memtest_sources = Split(''' 281 cpu/memtest/memtest.cc 282 ''') 283 |
284# Include file paths are rooted in this directory. SCons will 285# automatically expand '.' to refer to both the source directory and 286# the corresponding build directory to pick up generated include 287# files. 288env.Append(CPPPATH=Dir('.')) 289 |
|
284# Add a flag defining what THE_ISA should be for all compilation 285env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())]) 286 | 290# Add a flag defining what THE_ISA should be for all compilation 291env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())]) 292 |
287arch_sources = SConscript('arch/SConscript', 288 exports = 'env', duplicate = False) | 293arch_sources = SConscript('arch/SConscript', exports = 'env') |
289 | 294 |
290cpu_sources = SConscript('cpu/SConscript', 291 exports = 'env', duplicate = False) | 295cpu_sources = SConscript('cpu/SConscript', exports = 'env') |
292 293# This is outside of cpu/SConscript since the source directory isn't 294# underneath 'cpu'. 295if 'FullCPU' in env['CPU_MODELS']: 296 cpu_sources += full_cpu_sources 297 298# Set up complete list of sources based on configuration. 299sources = base_sources + arch_sources + cpu_sources --- 18 unchanged lines hidden (view full) --- 318################################################### 319 320# base/traceflags.{cc,hh} are generated from base/traceflags.py. 321# $TARGET.base will expand to "<build-dir>/base/traceflags". 322env.Command(Split('base/traceflags.hh base/traceflags.cc'), 323 'base/traceflags.py', 324 'python $SOURCE $TARGET.base') 325 | 296 297# This is outside of cpu/SConscript since the source directory isn't 298# underneath 'cpu'. 299if 'FullCPU' in env['CPU_MODELS']: 300 cpu_sources += full_cpu_sources 301 302# Set up complete list of sources based on configuration. 303sources = base_sources + arch_sources + cpu_sources --- 18 unchanged lines hidden (view full) --- 322################################################### 323 324# base/traceflags.{cc,hh} are generated from base/traceflags.py. 325# $TARGET.base will expand to "<build-dir>/base/traceflags". 326env.Command(Split('base/traceflags.hh base/traceflags.cc'), 327 'base/traceflags.py', 328 'python $SOURCE $TARGET.base') 329 |
326SConscript('python/SConscript', exports = ['env'], duplicate=0) | 330SConscript('python/SConscript', exports = ['env']) |
327 328# This function adds the specified sources to the given build 329# environment, and returns a list of all the corresponding SCons 330# Object nodes (including an extra one for date.cc). We explicitly 331# add the Object nodes so we can set up special dependencies for 332# date.cc. 333def make_objs(sources, env): 334 objs = [env.Object(s) for s in sources] --- 6 unchanged lines hidden (view full) --- 341 342################################################### 343# 344# Define binaries. Each different build type (debug, opt, etc.) gets 345# a slightly different build environment. 346# 347################################################### 348 | 331 332# This function adds the specified sources to the given build 333# environment, and returns a list of all the corresponding SCons 334# Object nodes (including an extra one for date.cc). We explicitly 335# add the Object nodes so we can set up special dependencies for 336# date.cc. 337def make_objs(sources, env): 338 objs = [env.Object(s) for s in sources] --- 6 unchanged lines hidden (view full) --- 345 346################################################### 347# 348# Define binaries. Each different build type (debug, opt, etc.) gets 349# a slightly different build environment. 350# 351################################################### 352 |
349# Include file paths are rooted in this directory. SCons will 350# automatically expand '.' to refer to both the source directory and 351# the corresponding build directory to pick up generated include 352# files. 353env.Append(CPPPATH='.') 354 | |
355# List of constructed environments to pass back to SConstruct 356envList = [] 357 358# Function to create a new build environment as clone of current 359# environment 'env' with modified object suffix and optional stripped 360# binary. Additional keyword arguments are appended to corresponding 361# build environment vars. 362def makeEnv(label, objsfx, strip = False, **kwargs): --- 34 unchanged lines hidden --- | 353# List of constructed environments to pass back to SConstruct 354envList = [] 355 356# Function to create a new build environment as clone of current 357# environment 'env' with modified object suffix and optional stripped 358# binary. Additional keyword arguments are appended to corresponding 359# build environment vars. 360def makeEnv(label, objsfx, strip = False, **kwargs): --- 34 unchanged lines hidden --- |