From 2f55ad6e8925ece3c7534d105f26974fc7f8c7c2 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Thu, 22 Oct 2009 09:44:08 +0000 Subject: move more options to rtconfig.py git-svn-id: https://rt-thread.googlecode.com/svn/trunk@120 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/SConscript | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libcpu/SConscript') diff --git a/libcpu/SConscript b/libcpu/SConscript index a9b1eca794..298af2941b 100644 --- a/libcpu/SConscript +++ b/libcpu/SConscript @@ -6,13 +6,13 @@ comm = rtconfig.ARCH + '/common' path = rtconfig.ARCH + '/' + rtconfig.CPU # The set of source files associated with this SConscript file. -if rtconfig.CC == 'armcc': +if rtconfig.PLATFORM == 'armcc': src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c') -if rtconfig.CC == 'gcc': +if rtconfig.PLATFORM == 'gcc': src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c') -if rtconfig.CC == 'iar': +if rtconfig.PLATFORM == 'iar': src_local = Glob(path + '/*.c') + Glob(path + '/*_iar.s') + Glob(comm + '/*.c') env.Append(CPPPATH = [RTT_ROOT + '/libcpu/' + rtconfig.ARCH + '/' + rtconfig.CPU]) -- cgit v1.3.1