SConscript (4382:b35e75e1b890) | SConscript (4596:e18f7ffe4c8b) |
---|---|
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 --- 263 unchanged lines hidden (view full) --- 272 newEnv.Label = label 273 newEnv.Append(**kwargs) 274 exe = 'm5.' + label # final executable 275 bin = exe + '.bin' # executable w/o appended Python zip archive 276 newEnv.Program(bin, make_objs(sources, newEnv)) 277 if strip: 278 stripped_bin = bin + '.stripped' 279 if sys.platform == 'sunos5': | 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 --- 263 unchanged lines hidden (view full) --- 272 newEnv.Label = label 273 newEnv.Append(**kwargs) 274 exe = 'm5.' + label # final executable 275 bin = exe + '.bin' # executable w/o appended Python zip archive 276 newEnv.Program(bin, make_objs(sources, newEnv)) 277 if strip: 278 stripped_bin = bin + '.stripped' 279 if sys.platform == 'sunos5': |
280 newEnv.Command(stripped_bin, bin, 'cp $SOURCE $TARGET; strip $TARGET') | 280 cmd = 'cp $SOURCE $TARGET; strip $TARGET' |
281 else: | 281 else: |
282 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET') | 282 cmd = 'strip $SOURCE -o $TARGET' 283 newEnv.Command(stripped_bin, bin, cmd) |
283 bin = stripped_bin 284 targets = newEnv.Concat(exe, [bin, 'm5py.zip']) 285 newEnv.M5Binary = targets[0] 286 envList.append(newEnv) 287 288# Debug binary 289ccflags = {} 290if env['GCC']: --- 42 unchanged lines hidden --- | 284 bin = stripped_bin 285 targets = newEnv.Concat(exe, [bin, 'm5py.zip']) 286 newEnv.M5Binary = targets[0] 287 envList.append(newEnv) 288 289# Debug binary 290ccflags = {} 291if env['GCC']: --- 42 unchanged lines hidden --- |