x86: changes to apic, keyboard
[gem5.git] / src / kern / SConscript
index 12df28836eabc58bcddb1285dca33d2f2213bf87..38734e650a68d1e9244f59863e215d66bbd489e5 100644 (file)
 #
 # Authors: Steve Reinhardt
 
-import os.path, sys
+Import('*')
 
-# Import build environment variable from SConstruct.
-Import('env')
+if env['TARGET_ISA'] == 'no':
+    Return()
 
-sources = Split('''
-       kernel_stats.cc
-       system_events.cc
-       linux/events.cc
-       linux/linux_syscalls.cc
-       linux/printk.cc
-       ''')
+Source('kernel_stats.cc')
+Source('linux/events.cc')
+Source('linux/linux.cc')
+Source('linux/linux_syscalls.cc')
+Source('linux/printk.cc')
+Source('operatingsystem.cc')
+Source('system_events.cc')
 
-# Convert file names to SCons File objects.  This takes care of the
-# path relative to the top of the directory tree.
-sources = [File(s) for s in sources]
+DebugFlag('DebugPrintf')
+DebugFlag('Printf')
 
-Return('sources')
+if env['TARGET_ISA'] == 'alpha':
+    Source('tru64/dump_mbuf.cc')
+    Source('tru64/printf.cc')
+    Source('tru64/tru64_events.cc')
+    Source('tru64/tru64_syscalls.cc')
+
+    DebugFlag('BADADDR')