Skip to content

Commit 2bf53d3

Browse files
authored
Merge pull request #4369 from mysterywolf/removeminilibc
[libc]移除minilibc 并将其职能并入newlibc中
2 parents ff469fe + 6ee0d45 commit 2bf53d3

File tree

39 files changed

+54
-3605
lines changed

39 files changed

+54
-3605
lines changed

bsp/efm32/copy_this_file_dfs_elm.c

Lines changed: 0 additions & 964 deletions
This file was deleted.

bsp/efm32/copy_this_file_shell.c

Lines changed: 0 additions & 521 deletions
This file was deleted.

bsp/lpc2148/rtconfig.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@
8080
/* Using QEMU or SkyEye*/
8181
/* #define RT_USING_EMULATOR */
8282

83-
/* SECTION: a mini libc */
84-
/* Using mini libc library*/
85-
/* #define RT_USING_MINILIBC */
86-
8783
/* SECTION: C++ support */
8884
/* Using C++ support*/
8985
/* #define RT_USING_CPLUSPLUS */

bsp/microblaze/rtconfig.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@
9393
/* SECTION: a runtime libc library */
9494
/* a runtime libc library*/
9595
/* #define RT_USING_NEWLIB */
96-
#define RT_USING_MINILIBC
9796

9897
/* SECTION: C++ support */
9998
/* Using C++ support*/

bsp/sam7x/rtconfig.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@
7272
#define FINSH_USING_SYMTAB
7373
#define FINSH_USING_DESCRIPTION
7474

75-
/* SECTION: a mini libc */
76-
/* Using mini libc library*/
77-
/* #define RT_USING_MINILIBC */
78-
7975
/* SECTION: C++ support */
8076
/* Using C++ support*/
8177
/* #define RT_USING_CPLUSPLUS */

bsp/wh44b0/rtconfig.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@
6565
/* Using FinSH as Shell*/
6666
/* #define RT_USING_FINSH */
6767

68-
/* SECTION: a mini libc */
69-
/* Using mini libc library*/
70-
/* #define RT_USING_MINILIBC */
71-
7268
/* SECTION: C++ support */
7369
/* Using C++ support*/
7470
/* #define RT_USING_CPLUSPLUS */

components/dfs/filesystems/nfs/rpc/types.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -47,30 +47,14 @@
4747

4848
#include <string.h>
4949
#include <stdint.h>
50-
51-
#ifndef RT_USING_MINILIBC
52-
typedef unsigned int u_int;
53-
typedef unsigned char u_char;
54-
typedef unsigned long u_long;
55-
#else
5650
#include <sys/types.h>
57-
#include <stdint.h>
58-
#endif
5951

6052
typedef long long int64_t;
6153
typedef unsigned long long uint64_t;
6254

6355
typedef int bool_t;
6456
typedef int enum_t;
6557

66-
#ifndef RT_USING_NEWLIB
67-
typedef unsigned long dev_t;
68-
#endif
69-
70-
#if !defined(RT_USING_NEWLIB) && !defined(RT_USING_MINILIBC)
71-
typedef rt_int32_t ssize_t;
72-
#endif
73-
7458
/* This needs to be changed to uint32_t in the future */
7559
typedef unsigned long rpcprog_t;
7660
typedef unsigned long rpcvers_t;

components/libc/compilers/armlibc/sys/types.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ typedef long signed int ssize_t; /* Used for a count of bytes or an error
2525
#endif
2626
typedef unsigned long useconds_t; /* microseconds (unsigned) */
2727

28+
typedef unsigned long dev_t;
29+
30+
typedef unsigned int u_int;
31+
typedef unsigned char u_char;
32+
typedef unsigned long u_long;
33+
2834
#endif

components/libc/compilers/common/SConscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ CPPPATH = [cwd]
1010
if GetDepend('RT_USING_LIBC'):
1111
src += Glob('*.c')
1212
else:
13-
if GetDepend('RT_LIBC_USING_TIME') and not GetDepend('RT_USING_MINILIBC'):
13+
if GetDepend('RT_LIBC_USING_TIME'):
1414
src += ['time.c']
1515

1616
if GetDepend('RT_USING_POSIX') == False:
@@ -21,7 +21,7 @@ if rtconfig.CROSS_TOOL == 'keil':
2121
else:
2222
CPPDEFINES = []
2323

24-
if not GetDepend('RT_USING_MINILIBC') and (GetDepend('RT_USING_LIBC') or GetDepend('RT_LIBC_USING_TIME')):
24+
if GetDepend('RT_USING_LIBC') or GetDepend('RT_LIBC_USING_TIME'):
2525
group = DefineGroup('libc', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
2626

2727
Return('group')

components/libc/compilers/dlib/sys/types.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,10 @@ typedef long signed int ssize_t; /* Used for a count of bytes or an error
2424
#endif
2525
typedef unsigned long useconds_t; /* microseconds (unsigned) */
2626

27+
typedef unsigned long dev_t;
28+
29+
typedef unsigned int u_int;
30+
typedef unsigned char u_char;
31+
typedef unsigned long u_long;
32+
2733
#endif

0 commit comments

Comments
 (0)