SConscript (3981:418c4e51644a) SConscript (4007:8c3bfad8bb92)
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

--- 290 unchanged lines hidden (view full) ---

299 newEnv = env.Copy(OBJSUFFIX=objsfx)
300 newEnv.Label = label
301 newEnv.Append(**kwargs)
302 exe = 'm5.' + label # final executable
303 bin = exe + '.bin' # executable w/o appended Python zip archive
304 newEnv.Program(bin, make_objs(sources, newEnv))
305 if strip:
306 stripped_bin = bin + '.stripped'
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

--- 290 unchanged lines hidden (view full) ---

299 newEnv = env.Copy(OBJSUFFIX=objsfx)
300 newEnv.Label = label
301 newEnv.Append(**kwargs)
302 exe = 'm5.' + label # final executable
303 bin = exe + '.bin' # executable w/o appended Python zip archive
304 newEnv.Program(bin, make_objs(sources, newEnv))
305 if strip:
306 stripped_bin = bin + '.stripped'
307 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET')
307 if sys.platform == 'sunos5':
308 newEnv.Command(stripped_bin, bin, 'cp $SOURCE $TARGET; strip $TARGET')
309 else:
310 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET')
308 bin = stripped_bin
309 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip'])
310 newEnv.M5Binary = targets[0]
311 envList.append(newEnv)
312
313# Debug binary
314ccflags = {}
315if env['GCC']:

--- 42 unchanged lines hidden ---
311 bin = stripped_bin
312 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip'])
313 newEnv.M5Binary = targets[0]
314 envList.append(newEnv)
315
316# Debug binary
317ccflags = {}
318if env['GCC']:

--- 42 unchanged lines hidden ---