SConscript (3515:98655e4fd9f1) | SConscript (3534:b838ec79077d) |
---|---|
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 --- 197 unchanged lines hidden (view full) --- 206full_system_sources = Split(''' 207 base/crc.cc 208 base/inet.cc 209 base/remote_gdb.cc 210 211 cpu/intr_control.cc 212 cpu/profile.cc 213 | 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 --- 197 unchanged lines hidden (view full) --- 206full_system_sources = Split(''' 207 base/crc.cc 208 base/inet.cc 209 base/remote_gdb.cc 210 211 cpu/intr_control.cc 212 cpu/profile.cc 213 |
214 dev/alpha_console.cc 215 dev/baddev.cc 216 dev/disk_image.cc 217 dev/etherbus.cc 218 dev/etherdump.cc 219 dev/etherint.cc 220 dev/etherlink.cc 221 dev/etherpkt.cc 222 dev/ethertap.cc 223 dev/ide_ctrl.cc 224 dev/ide_disk.cc 225 dev/io_device.cc 226 dev/isa_fake.cc 227 dev/ns_gige.cc 228 dev/pciconfigall.cc 229 dev/pcidev.cc 230 dev/pktfifo.cc 231 dev/platform.cc 232 dev/simconsole.cc 233 dev/simple_disk.cc 234 dev/tsunami.cc 235 dev/tsunami_cchip.cc 236 dev/tsunami_io.cc 237 dev/tsunami_pchip.cc 238 | |
239 dev/uart.cc 240 dev/uart8250.cc 241 242 kern/kernel_stats.cc 243 kern/system_events.cc 244 kern/linux/events.cc 245 kern/linux/linux_syscalls.cc 246 kern/linux/printk.cc 247 248 mem/vport.cc 249 250 sim/pseudo_inst.cc 251 ''') 252 #dev/sinic.cc 253 #dev/i8254xGBe.cc 254 | 214 dev/uart.cc 215 dev/uart8250.cc 216 217 kern/kernel_stats.cc 218 kern/system_events.cc 219 kern/linux/events.cc 220 kern/linux/linux_syscalls.cc 221 kern/linux/printk.cc 222 223 mem/vport.cc 224 225 sim/pseudo_inst.cc 226 ''') 227 #dev/sinic.cc 228 #dev/i8254xGBe.cc 229 |
255 | |
256if env['TARGET_ISA'] == 'alpha': 257 full_system_sources += Split(''' 258 kern/tru64/dump_mbuf.cc 259 kern/tru64/printf.cc 260 kern/tru64/tru64_events.cc 261 kern/tru64/tru64_syscalls.cc 262 ''') 263 --- 47 unchanged lines hidden (view full) --- 311# automatically expand '.' to refer to both the source directory and 312# the corresponding build directory to pick up generated include 313# files. 314env.Append(CPPPATH=Dir('.')) 315 316# Add a flag defining what THE_ISA should be for all compilation 317env.Append(CPPDEFINES=[('THE_ISA','%s_ISA' % env['TARGET_ISA'].upper())]) 318 | 230if env['TARGET_ISA'] == 'alpha': 231 full_system_sources += Split(''' 232 kern/tru64/dump_mbuf.cc 233 kern/tru64/printf.cc 234 kern/tru64/tru64_events.cc 235 kern/tru64/tru64_syscalls.cc 236 ''') 237 --- 47 unchanged lines hidden (view full) --- 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 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 |
319arch_sources = SConscript('arch/SConscript', exports = 'env') | 293arch_sources = SConscript(os.path.join('arch', 'SConscript'), exports = 'env') |
320 | 294 |
321cpu_sources = SConscript('cpu/SConscript', exports = 'env') | 295cpu_sources = SConscript(os.path.join('cpu', 'SConscript'), exports = 'env') |
322 | 296 |
297dev_sources = SConscript(os.path.join('dev', 'SConscript'), exports = 'env') 298full_system_sources += dev_sources 299 |
|
323# This is outside of cpu/SConscript since the source directory isn't 324# underneath 'cpu'. 325if 'FullCPU' in env['CPU_MODELS']: 326 cpu_sources += full_cpu_sources 327 328# Set up complete list of sources based on configuration. 329sources = base_sources + arch_sources + cpu_sources 330 --- 63 unchanged lines hidden (view full) --- 394 stripped_bin = bin + '.stripped' 395 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET') 396 bin = stripped_bin 397 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip']) 398 newEnv.M5Binary = targets[0] 399 envList.append(newEnv) 400 401# Debug binary | 300# This is outside of cpu/SConscript since the source directory isn't 301# underneath 'cpu'. 302if 'FullCPU' in env['CPU_MODELS']: 303 cpu_sources += full_cpu_sources 304 305# Set up complete list of sources based on configuration. 306sources = base_sources + arch_sources + cpu_sources 307 --- 63 unchanged lines hidden (view full) --- 371 stripped_bin = bin + '.stripped' 372 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET') 373 bin = stripped_bin 374 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip']) 375 newEnv.M5Binary = targets[0] 376 envList.append(newEnv) 377 378# Debug binary |
402# Solaris seems to have some issue with DWARF2 debugging information, it's ok 403# with stabs though 404if sys.platform == 'sunos5': 405 debug_flag = '-gstabs+' 406else: 407 debug_flag = '-ggdb3' 408 | |
409makeEnv('debug', '.do', | 379makeEnv('debug', '.do', |
410 CCFLAGS = Split('%s -O0' % debug_flag), | 380 CCFLAGS = Split('-g3 -gdwarf-2 -O0'), |
411 CPPDEFINES = 'DEBUG') 412 413# Optimized binary 414makeEnv('opt', '.o', 415 CCFLAGS = Split('-g -O3')) 416 417# "Fast" binary 418makeEnv('fast', '.fo', strip = True, 419 CCFLAGS = Split('-O3'), 420 CPPDEFINES = 'NDEBUG') 421 422# Profiled binary 423makeEnv('prof', '.po', 424 CCFLAGS = Split('-O3 -g -pg'), 425 LINKFLAGS = '-pg') 426 427Return('envList') | 381 CPPDEFINES = 'DEBUG') 382 383# Optimized binary 384makeEnv('opt', '.o', 385 CCFLAGS = Split('-g -O3')) 386 387# "Fast" binary 388makeEnv('fast', '.fo', strip = True, 389 CCFLAGS = Split('-O3'), 390 CPPDEFINES = 'NDEBUG') 391 392# Profiled binary 393makeEnv('prof', '.po', 394 CCFLAGS = Split('-O3 -g -pg'), 395 LINKFLAGS = '-pg') 396 397Return('envList') |