From 8f7bbfa01147f9e0e98445da5cb958cede791a36 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 23 Feb 2021 11:27:12 +0800 Subject: [PATCH 1/2] remove RT_USING_NOLIBC --- bsp/efm32/rtconfig.h | 1 - bsp/simulator/rtconfig_project.h | 3 --- bsp/taihu/rtconfig.h | 1 - tools/building.py | 3 --- 4 files changed, 8 deletions(-) diff --git a/bsp/efm32/rtconfig.h b/bsp/efm32/rtconfig.h index 040f07fa02..58159f90b3 100644 --- a/bsp/efm32/rtconfig.h +++ b/bsp/efm32/rtconfig.h @@ -211,7 +211,6 @@ #endif /* SECTION: Runtime library */ -// #define RT_USING_NOLIBC // #define RT_USING_NEWLIB #define RT_LIBC_USING_TIME diff --git a/bsp/simulator/rtconfig_project.h b/bsp/simulator/rtconfig_project.h index 02e29c1a65..2ff5c8d3a4 100644 --- a/bsp/simulator/rtconfig_project.h +++ b/bsp/simulator/rtconfig_project.h @@ -17,9 +17,6 @@ #pragma warning(disable:4267) /* to ignore: warning C4267: conversion from 'size_t' to 'rt_size_t', possible loss of data */ #pragma warning(disable:4244) /* to ignore: warning C4244: '=' : conversion from '__w64 int' to 'rt_size_t', possible loss of data */ -#elif defined(__GNUC__) -#define RT_USING_NOLIBC - #endif /* end of _MSC_VER */ #endif diff --git a/bsp/taihu/rtconfig.h b/bsp/taihu/rtconfig.h index 2437f6b2a3..0ca8b43a19 100644 --- a/bsp/taihu/rtconfig.h +++ b/bsp/taihu/rtconfig.h @@ -53,7 +53,6 @@ /* Using Small MM*/ #define RT_USING_SMALL_MEM -// #define RT_USING_NOLIBC #define RT_TINY_SIZE /* SECTION: Device System */ diff --git a/tools/building.py b/tools/building.py index 3cea6fc692..ba995af278 100644 --- a/tools/building.py +++ b/tools/building.py @@ -276,9 +276,6 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [ except KeyError: print ('Unknow target: '+ tgt_name+'. Avaible targets: ' +', '.join(tgt_dict.keys())) sys.exit(1) - elif (GetDepend('RT_USING_NEWLIB') == False and GetDepend('RT_USING_NOLIBC') == False) \ - and rtconfig.PLATFORM == 'gcc': - AddDepend('RT_USING_MINILIBC') # auto change the 'RTT_EXEC_PATH' when 'rtconfig.EXEC_PATH' get failed if not os.path.exists(rtconfig.EXEC_PATH): From bf7a3af6fd8e1012cc0e07ecfde059956c2f75c9 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 23 Feb 2021 11:28:25 +0800 Subject: [PATCH 2/2] update readme --- components/libc/compilers/common/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/common/readme.md b/components/libc/compilers/common/readme.md index 99797d933c..81bb005d0a 100644 --- a/components/libc/compilers/common/readme.md +++ b/components/libc/compilers/common/readme.md @@ -1,8 +1,8 @@ ## Attentions -1. This folder is "common" for armlibc newlibc and dlib. It's not "common" for minilibc. +1. This folder is "common" for armlibc newlibc and dlib. -2. If you want to add new .c files, please do not forget to fix SConscript file too. eg: +2. If you want to add new `.c` files, please do not forget to fix SConscript file too. eg: ```python if GetDepend('RT_USING_POSIX') == False: