summaryrefslogtreecommitdiff
path: root/examples/module/basicapp
diff options
context:
space:
mode:
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");