From 0be4d1d5dd2890b003b5f1d3abf4ac67fd980e93 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Wed, 14 Oct 2009 09:49:02 +0000 Subject: add STM32 gcc version. apply scons build system. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@99 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- libcpu/SConscript | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 libcpu/SConscript (limited to 'libcpu/SConscript') diff --git a/libcpu/SConscript b/libcpu/SConscript new file mode 100644 index 0000000000..1ea8ff784c --- /dev/null +++ b/libcpu/SConscript @@ -0,0 +1,15 @@ +Import('env') +Import('rtconfig') + +comm = rtconfig.ARCH + '/common' +path = rtconfig.ARCH + '/' + rtconfig.CPU + +# The set of source files associated with this SConscript file. +if rtconfig.CC == 'armcc': + src_local = Glob(path + '/*.c') + Glob(path + '/*_rvds.s') + Glob(comm + '/*.c') + +if rtconfig.CC == 'gcc': + src_local = Glob(path + '/*.c') + Glob(path + '/*_gcc.s') + Glob(comm + '/*.c') + +obj = env.Object(src_local) +Return('obj') -- cgit v1.3.1