提交 5c2b75cc 编写于 作者: B bernard.xiong

fix minilibc compiling issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@671 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 c92a3425
...@@ -48,7 +48,7 @@ void rt_init_thread_entry(void* parameter) ...@@ -48,7 +48,7 @@ void rt_init_thread_entry(void* parameter)
/* init the device filesystem */ /* init the device filesystem */
dfs_init(); dfs_init();
#ifdef defined(RT_USING_DFS_ELMFAT) #if defined(RT_USING_DFS_ELMFAT)
/* init the elm chan FatFs filesystam*/ /* init the elm chan FatFs filesystam*/
elm_init(); elm_init();
......
...@@ -81,8 +81,6 @@ ...@@ -81,8 +81,6 @@
/* a runtime libc library */ /* a runtime libc library */
/* #define RT_USING_NEWLIB */ /* #define RT_USING_NEWLIB */
/* SECTION: a mini libc */
/* SECTION: C++ support */ /* SECTION: C++ support */
/* Using C++ support */ /* Using C++ support */
/* #define RT_USING_CPLUSPLUS */ /* #define RT_USING_CPLUSPLUS */
......
...@@ -20,9 +20,13 @@ f.close() ...@@ -20,9 +20,13 @@ f.close()
PreProcessor.process_contents(contents) PreProcessor.process_contents(contents)
rtconfig_ns = PreProcessor.cpp_namespace rtconfig_ns = PreProcessor.cpp_namespace
# libc options
if rtconfig_ns.has_key('RT_USING_NEWLIB'):
RT_USING_NEWLIB = True
# finsh shell options # finsh shell options
if rtconfig_ns.has_key('RT_USING_FINSH'): if rtconfig_ns.has_key('RT_USING_FINSH'):
RT_USING_FINSH = True RT_USING_FINSH = True
# device virtual filesystem options # device virtual filesystem options
if rtconfig_ns.has_key('RT_USING_DFS'): if rtconfig_ns.has_key('RT_USING_DFS'):
...@@ -77,9 +81,9 @@ if PLATFORM == 'gcc': ...@@ -77,9 +81,9 @@ if PLATFORM == 'gcc':
OBJCPY = PREFIX + 'objcopy' OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=arm920t' DEVICE = ' -mcpu=arm920t'
CFLAGS = DEVICE + ' -DRT_USING_MINILIBC' + ' -nostdinc -nostdlib -fno-builtin' CFLAGS = DEVICE
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + ' -DTEXT_BASE=' + TextBase AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp' + ' -DTEXT_BASE=' + TextBase
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=main.elf.map,-cref,-u,_start -T mini2440_ram.ld' + ' -Ttext ' + TextBase LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread_mini2440.map,-cref,-u,_start -T mini2440_ram.ld' + ' -Ttext ' + TextBase
CPATH = '' CPATH = ''
LPATH = '' LPATH = ''
...@@ -92,7 +96,7 @@ if PLATFORM == 'gcc': ...@@ -92,7 +96,7 @@ if PLATFORM == 'gcc':
if RT_USING_WEBSERVER: if RT_USING_WEBSERVER:
CFLAGS += ' -DWEBS -DUEMF -DRTT -D__NO_FCNTL=1 -DRT_USING_WEBSERVER' CFLAGS += ' -DWEBS -DUEMF -DRTT -D__NO_FCNTL=1 -DRT_USING_WEBSERVER'
RT_USING_MINILIBC = True
POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n' POST_ACTION = OBJCPY + ' -O binary $TARGET rtthread.bin\n' + SIZE + ' $TARGET \n'
elif PLATFORM == 'armcc': elif PLATFORM == 'armcc':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册