summaryrefslogtreecommitdiff
path: root/examples/module/basicapp
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-11-25 00:35:06 +0000
committerqiuyiuestc <[email protected]>2010-11-25 00:35:06 +0000
commit9555bf29756dc3bc6cf77b61999f7bca6f7f9f87 (patch)
tree4398f819ed82e1ae57f013a939ba9b3177239d4c /examples/module/basicapp
parent7191e2220fe1dc6e7ae4ff0af657bfe25b43379f (diff)
clean up module config file and SConscript
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1113 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/module/basicapp')
-rw-r--r--examples/module/basicapp/SConscript4
-rw-r--r--examples/module/basicapp/basicapp.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/examples/module/basicapp/SConscript b/examples/module/basicapp/SConscript
index d03f4ded91..b463a2f6c3 100644
--- a/examples/module/basicapp/SConscript
+++ b/examples/module/basicapp/SConscript
@@ -25,10 +25,8 @@ src_local = Glob('basicapp.c')
env.Append(CCFLAGS = group['CCFLAGS'])
env.Append(CPPPATH = group['CPPPATH'])
env.Append(CPPDEFINES = group['CPPDEFINES'])
-module_env = env.Clone(CPPDEFINE = 'RT_MODULE')
module_env = env.Clone(CCFLAGS = ' -mcpu=arm920t -O0 -fPIC')
-module_env.Replace(LINK = 'arm-none-eabi-ld')
-module_env.Replace(LINKFLAGS = '-z max-page-size=0x4 -shared -fPIC -e rt_application_entry -nostdlib -s')
+module_env.Replace(LINKFLAGS = '-z max-page-size=0x4 -shared -fPIC -e rt_application_init -nostdlib -s')
module_env.Program(target, src_local)
module_env.AddPostAction(target, POST_ACTION)
diff --git a/examples/module/basicapp/basicapp.c b/examples/module/basicapp/basicapp.c
index b1268711f5..cd251a34bc 100644
--- a/examples/module/basicapp/basicapp.c
+++ b/examples/module/basicapp/basicapp.c
@@ -9,7 +9,7 @@ static void function(int count1, int count2, int count3)
rt_kprintf("Hello RT-Thread %d %d\n", count1, count2, count3);
}
-int rt_application_entry(void)
+int rt_application_init(void)
{
int i;
rt_kprintf("application entry\n");