diff options
| author | Meco Man <[email protected]> | 2023-11-27 00:15:36 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-11-30 11:39:34 +0800 |
| commit | 005828eba71b5e577c49cf5af61accc028b0ae1a (patch) | |
| tree | 84c47915d3f367c000cfba93bff91a2fd52493fd /components | |
| parent | 53acd953ab5e91d529aa20844ac692568107d33f (diff) | |
[nano] rt-thread susport nano option
Diffstat (limited to 'components')
| -rw-r--r-- | components/Kconfig | 9 | ||||
| -rwxr-xr-x | components/drivers/Kconfig | 4 | ||||
| -rw-r--r-- | components/finsh/Kconfig | 1 | ||||
| -rw-r--r-- | components/libc/Kconfig | 14 | ||||
| -rw-r--r-- | components/libc/SConscript | 9 | ||||
| -rw-r--r-- | components/libc/compilers/SConscript | 9 |
6 files changed, 19 insertions, 27 deletions
diff --git a/components/Kconfig b/components/Kconfig index 21fc6e3ebc..b9ccece2de 100644 --- a/components/Kconfig +++ b/components/Kconfig @@ -26,15 +26,20 @@ config RT_USING_LEGACY default n source "$RTT_DIR/components/finsh/Kconfig" + +if !RT_USING_NANO source "$RTT_DIR/components/dfs/Kconfig" source "$RTT_DIR/components/fal/Kconfig" -source "$RTT_DIR/components/lwp/Kconfig" source "$RTT_DIR/components/drivers/Kconfig" source "$RTT_DIR/components/libc/Kconfig" source "$RTT_DIR/components/net/Kconfig" source "$RTT_DIR/components/utilities/Kconfig" source "$RTT_DIR/components/vbus/Kconfig" +endif + +if RT_USING_SMART +source "$RTT_DIR/components/lwp/Kconfig" source "$RTT_DIR/components/mm/Kconfig" source "$RTT_DIR/components/mprotect/Kconfig" - +endif endmenu diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 194b7c39bb..ea894090a2 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -346,7 +346,7 @@ config RT_USING_PHY config RT_USING_PIN bool "Using generic GPIO device drivers" - default y + default n config RT_USING_ADC bool "Using ADC device drivers" @@ -771,7 +771,7 @@ endif config RT_USING_DEV_BUS bool "Using Device Bus device drivers" default y if RT_USING_SMART - default n if !RT_USING_SMART + default n menuconfig RT_USING_WIFI bool "Using Wi-Fi framework" diff --git a/components/finsh/Kconfig b/components/finsh/Kconfig index 119d968163..abae556dd2 100644 --- a/components/finsh/Kconfig +++ b/components/finsh/Kconfig @@ -1,5 +1,6 @@ menuconfig RT_USING_MSH bool "MSH: command shell" + default n if RT_USING_NANO default y if RT_USING_MSH diff --git a/components/libc/Kconfig b/components/libc/Kconfig index 9939dbdc4e..7cdee9040f 100644 --- a/components/libc/Kconfig +++ b/components/libc/Kconfig @@ -1,20 +1,6 @@ menu "C/C++ and POSIX layer" -config RT_USING_INTERNAL_LIBC_ONLY - bool "Only use tool chain internal libc" - default n - help - This option is for RT-Thread Nano version. - If select this option, it will not compile components/libc - folder and only use tool chain internal libc. Normally, the - tool chain internal is only cover ISO standard (e.g. armcc), - but some tool chains' internal libc will cover more than - ISO standard (e.g. newlib). However, no matter the cover level - it is, the rt-thread libc leveling layer will not be involved - at all if select this option. - config RT_USING_EXTERNAL_LIBC - depends on !RT_USING_INTERNAL_LIBC_ONLY bool help This is for external libc(e.g. mlib), diff --git a/components/libc/SConscript b/components/libc/SConscript index 4c815c49b8..6042b5d5e5 100644 --- a/components/libc/SConscript +++ b/components/libc/SConscript @@ -7,9 +7,10 @@ cwd = GetCurrentDir() objs = [] list = os.listdir(cwd) -for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) +if not GetDepend('RT_USING_NANO'): + for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) Return('objs') diff --git a/components/libc/compilers/SConscript b/components/libc/compilers/SConscript index 772229b18d..4c815c49b8 100644 --- a/components/libc/compilers/SConscript +++ b/components/libc/compilers/SConscript @@ -7,10 +7,9 @@ cwd = GetCurrentDir() objs = [] list = os.listdir(cwd) -if not GetDepend('RT_USING_INTERNAL_LIBC_ONLY'): - for d in list: - path = os.path.join(cwd, d) - if os.path.isfile(os.path.join(path, 'SConscript')): - objs = objs + SConscript(os.path.join(d, 'SConscript')) +for d in list: + path = os.path.join(cwd, d) + if os.path.isfile(os.path.join(path, 'SConscript')): + objs = objs + SConscript(os.path.join(d, 'SConscript')) Return('objs') |
