From 1886174d46c80444e4d34b156ed87237363d8f1f Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 24 Mar 2010 05:16:28 +0000 Subject: change file name for compiling under Linux git-svn-id: https://rt-thread.googlecode.com/svn/trunk@531 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/SConscript | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'libcpu/SConscript') diff --git a/libcpu/SConscript b/libcpu/SConscript index 7ac8e79e53..d295c7d2ae 100644 --- a/libcpu/SConscript +++ b/libcpu/SConscript @@ -1,21 +1,21 @@ -Import('env') -Import('rtconfig') -Import('RTT_ROOT') - -comm = rtconfig.ARCH + '/common' -path = rtconfig.ARCH + '/' + rtconfig.CPU - -# The set of source files associated with this SConscript file. -if rtconfig.PLATFORM == 'armcc': - src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c') - -if rtconfig.PLATFORM == 'gcc': - src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c') + Glob(path + '/*_init.S') - -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]) -obj = env.Object(src_local) - -Return('obj') +Import('env') +Import('rtconfig') +Import('RTT_ROOT') + +comm = rtconfig.ARCH + '/common' +path = rtconfig.ARCH + '/' + rtconfig.CPU + +# The set of source files associated with this SConscript file. +if rtconfig.PLATFORM == 'armcc': + src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.S') + Glob(comm + '/*.c') + +if rtconfig.PLATFORM == 'gcc': + src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.S') + Glob(comm + '/*.c') + Glob(path + '/*_init.S') + +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]) +obj = env.Object(src_local) + +Return('obj') -- cgit v1.3.1