summaryrefslogtreecommitdiff
path: root/components/thread
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-16 06:19:59 +0000
committerbernard.xiong <[email protected]>2010-04-16 06:19:59 +0000
commit04fa66ca3d781e516a6ac38c3b18c673ee16df04 (patch)
treec4474a51c65391c82258feda5b793a6890a48c61 /components/thread
parentd7caff4d067892f51ec6a4ce47efeffab8ef1b76 (diff)
add module building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@627 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/thread')
-rw-r--r--components/thread/SConscript10
-rw-r--r--components/thread/mk.bat3
2 files changed, 10 insertions, 3 deletions
diff --git a/components/thread/SConscript b/components/thread/SConscript
new file mode 100644
index 0000000000..8ce2fcead5
--- /dev/null
+++ b/components/thread/SConscript
@@ -0,0 +1,10 @@
+Import('env')
+
+target = 'thread.mo'
+
+module_env = env.Clone(CPPDEFINE = 'RT_MODULE')
+module_env.Replace(LINKFLAGS = ' -r -d -e rtm_main -nostdlib')
+
+src_local = Glob('*.c')
+
+module_env.Program(target, src_local)
diff --git a/components/thread/mk.bat b/components/thread/mk.bat
deleted file mode 100644
index 2eaedccc6f..0000000000
--- a/components/thread/mk.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-set PATH="E:\Program Files\CodeSourcery\Sourcery G++ Lite\bin";%PATH%
-arm-none-eabi-gcc -c module_thread_dynamic.c -o module_thread_dynamic.o -DRT_MODULE "-I..\..\include" "-I..\..\bsp\mini2440"
-arm-none-eabi-gcc -o dynamic.mo -r -d -e rtm_main -nostdlib module_thread_dynamic.o \ No newline at end of file