summaryrefslogtreecommitdiff
path: root/examples/module/extension
diff options
context:
space:
mode:
author[email protected] <[email protected]>2011-09-28 02:10:43 +0000
committer[email protected] <[email protected]>2011-09-28 02:10:43 +0000
commit96049b7e5c2475f44f49fb1a25a8b06eba9fc231 (patch)
tree645f06cc41b20a56d0113434058354153aeafb6a /examples/module/extension
parent9bb329daee2f842a724d3cdede9413a839e5069c (diff)
add module support for cortex-m3 feature
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1731 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'examples/module/extension')
-rw-r--r--examples/module/extension/SConscript32
-rw-r--r--examples/module/extension/SConstruct27
-rw-r--r--examples/module/extension/extension.c33
3 files changed, 0 insertions, 92 deletions
diff --git a/examples/module/extension/SConscript b/examples/module/extension/SConscript
deleted file mode 100644
index d7ed70eaa1..0000000000
--- a/examples/module/extension/SConscript
+++ /dev/null
@@ -1,32 +0,0 @@
-Import('env')
-Import('projects')
-Import('RTT_ROOT')
-Import('rtconfig')
-Import('TARGET')
-
-RTMLINKER = RTT_ROOT + '/tools/rtmlinker.exe '
-
-# group definitions
-group = {}
-group['name'] = 'examples'
-group['src'] = Glob('*.c')
-group['CCFLAGS'] = ''
-group['CPPPATH'] = [RTT_ROOT + '/include', RTT_ROOT + '/examples/module']
-group['CPPDEFINES'] = ''
-
-target = 'extension.so'
-POST_ACTION = RTMLINKER + '-l ' + TARGET + ' -o extension.mo ' + '$TARGET'
-
-# add group to project list
-projects.append(group)
-
-src_local = Glob('extension.c')
-
-env.Append(CCFLAGS = group['CCFLAGS'])
-env.Append(CPPPATH = group['CPPPATH'])
-env.Append(CPPDEFINES = group['CPPDEFINES'])
-module_env = env.Clone(CCFLAGS = ' -mcpu=arm920t -O0 -fPIC')
-module_env.Replace(LINKFLAGS = '-z max-page-size=0x4 -shared -fPIC -e 0 -nostdlib -s')
-module_env.Program(target, src_local)
-module_env.AddPostAction(target, POST_ACTION)
-
diff --git a/examples/module/extension/SConstruct b/examples/module/extension/SConstruct
deleted file mode 100644
index 2603e456d7..0000000000
--- a/examples/module/extension/SConstruct
+++ /dev/null
@@ -1,27 +0,0 @@
-import os
-import sys
-
-EXEC_PATH = '/home/shaolin/CodeSourcery/Sourcery_G++_Lite/bin'
-RTT_ROOT = os.path.normpath(os.getcwd() + '/../../..')
-sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
-PREFIX = 'arm-none-eabi-'
-env = Environment(tools = ['mingw'],
- AS = PREFIX + 'gcc',
- ASFLAGS = '',
- CC = PREFIX + 'gcc',
- CCFLAGS = '-mcpu=arm920t -O0 -fPIC' ,
- AR = PREFIX + 'ar',
- ARFLAGS = '-rc',
- LINK = PREFIX + 'ld',
- LINKFLAGS = '-z max-page-size=0x4 -shared -fPIC -e 0 -nostdlib -s',
- CPPPATH = [
- RTT_ROOT + '/include',
- RTT_ROOT + '/bsp/mini2440'
- ])
-env.PrependENVPath('PATH', EXEC_PATH)
-
-target = 'extension.so'
-src = Glob('*.c')
-
-env.Program(target, src)
-
diff --git a/examples/module/extension/extension.c b/examples/module/extension/extension.c
deleted file mode 100644
index e5dd094c54..0000000000
--- a/examples/module/extension/extension.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include <rtthread.h>
-#include <rtm.h>
-
-void function1(void)
-{
- rt_kprintf("Hello RT-Thread function1\n");
-}
-
-void function2(void)
-{
- rt_kprintf("Hello RT-Thread function2\n");
-}
-
-void function3(void)
-{
- rt_kprintf("Hello RT-Thread function3\n");
-}
-
-void function4(void)
-{
- rt_kprintf("Hello RT-Thread function4\n");
-}
-
-void function5(void)
-{
- rt_kprintf("Hello RT-Thread function5\n");
-}
-
-RTM_EXPORT(function1)
-RTM_EXPORT(function2)
-RTM_EXPORT(function3)
-RTM_EXPORT(function4)
-RTM_EXPORT(function5) \ No newline at end of file