mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
add module building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@627 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
Import('env')
|
||||
|
||||
src = ('hello.c')
|
||||
target = 'hello.mo'
|
||||
|
||||
obj = env.Object(src)
|
||||
module_env = env.Clone(CPPDEFINE = 'RT_MODULE')
|
||||
module_env.Replace(LINKFLAGS = ' -r -d -e rtm_main -nostdlib')
|
||||
|
||||
Return('obj')
|
||||
src_local = Glob('*.c')
|
||||
|
||||
module_env.Program(target, src_local)
|
||||
|
||||
Reference in New Issue
Block a user