浏览代码

[BSP] Fix compiling error because pthreads is depended libc

Bernard Xiong 10 年之前
父节点
当前提交
f59547e782
共有 3 个文件被更改,包括 4 次插入6 次删除
  1. 1 3
      bsp/beaglebone/applications/application.c
  2. 2 2
      bsp/beaglebone/rtconfig.h
  3. 1 1
      bsp/lpc408x/rtconfig.h

+ 1 - 3
bsp/beaglebone/applications/application.c

@@ -24,9 +24,7 @@ int rt_application_init()
 {
     /* do component initialization */
     rt_components_init();
-#ifdef RT_USING_NEWLIB
-	libc_system_init(RT_CONSOLE_DEVICE_NAME);
-#endif
+
 #ifdef RT_USING_GDB
     gdb_set_device("uart4");
     gdb_start();

+ 2 - 2
bsp/beaglebone/rtconfig.h

@@ -122,8 +122,8 @@
 // </section>
 
 // <section name="LIBC" description="C Runtime library setting" default="always" >
-// <bool name="RT_USING_NEWLIB" description="Using newlib library, only available under GNU GCC" default="true" />
-//#define RT_USING_NEWLIB
+// <bool name="RT_USING_LIBC" description="Using C library" default="true" />
+#define RT_USING_LIBC
 // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
 #define RT_USING_PTHREADS
 // </section>

+ 1 - 1
bsp/lpc408x/rtconfig.h

@@ -105,7 +105,7 @@
 
 // <section name="LIBC" description="C Runtime library setting" default="always" >
 // <bool name="RT_USING_LIBC" description="Using C library" default="true" />
-// #define RT_USING_LIBC
+#define RT_USING_LIBC
 // <bool name="RT_USING_PTHREADS" description="Using POSIX threads library" default="true" />
 #define RT_USING_PTHREADS
 // </section>