SConscript (3565:6ad587fb7dfd) SConscript (4202:f7a05daec670)
1# -*- mode:python -*-
2
3# Copyright (c) 2006 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

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

23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Steve Reinhardt
30
1# -*- mode:python -*-
2
3# Copyright (c) 2006 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

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

23# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28#
29# Authors: Steve Reinhardt
30
31import os.path, sys
31Import('*')
32
32
33# Import build environment variable from SConstruct.
34Import('env')
33if env['FULL_SYSTEM']:
34 Source('kernel_stats.cc')
35 Source('system_events.cc')
35
36
36sources = Split('''
37 kernel_stats.cc
38 system_events.cc
39 linux/events.cc
40 linux/linux_syscalls.cc
41 linux/printk.cc
42 ''')
37 Source('linux/events.cc')
38 Source('linux/linux_syscalls.cc')
39 Source('linux/printk.cc')
43
40
44# Convert file names to SCons File objects. This takes care of the
45# path relative to the top of the directory tree.
46sources = [File(s) for s in sources]
47
48Return('sources')
41 if env['TARGET_ISA'] == 'alpha':
42 Source('tru64/dump_mbuf.cc')
43 Source('tru64/printf.cc')
44 Source('tru64/tru64_events.cc')
45 Source('tru64/tru64_syscalls.cc')