summaryrefslogtreecommitdiff
path: root/examples/module/extapp
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/extapp
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/extapp')
-rw-r--r--examples/module/extapp/SConscript3
-rw-r--r--examples/module/extapp/extapp.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/module/extapp/SConscript b/examples/module/extapp/SConscript
index a7dc25f5ab..9209a640f2 100644
--- a/examples/module/extapp/SConscript
+++ b/examples/module/extapp/SConscript
@@ -27,8 +27,7 @@ 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/extapp/extapp.c b/examples/module/extapp/extapp.c
index 2858766f8f..5d2bbd2814 100644
--- a/examples/module/extapp/extapp.c
+++ b/examples/module/extapp/extapp.c
@@ -3,7 +3,7 @@
typedef void (*func)(void);
-int rt_application_entry(void)
+int rt_application_init(void)
{
func f1, f2, f3, f4, f5;