summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-11-30 22:00:00 +0800
committerguo <[email protected]>2023-12-01 14:43:05 +0800
commit6cd24d437c29b226da3bfdcfbd5a2fa0bbca13bf (patch)
treee22ceab555d7b6a2b9b382e66c3ff26f7701c4b6
parentc87872c9c7994e0317530ea5a8f9d4e7d3f95517 (diff)
[nano][kernel] correct nano Kconfig dependency
-rw-r--r--components/Kconfig2
-rw-r--r--src/Kconfig3
2 files changed, 4 insertions, 1 deletions
diff --git a/components/Kconfig b/components/Kconfig
index b9ccece2de..b1a57b96ba 100644
--- a/components/Kconfig
+++ b/components/Kconfig
@@ -33,6 +33,7 @@ source "$RTT_DIR/components/fal/Kconfig"
source "$RTT_DIR/components/drivers/Kconfig"
source "$RTT_DIR/components/libc/Kconfig"
source "$RTT_DIR/components/net/Kconfig"
+source "$RTT_DIR/components/mprotect/Kconfig"
source "$RTT_DIR/components/utilities/Kconfig"
source "$RTT_DIR/components/vbus/Kconfig"
endif
@@ -40,6 +41,5 @@ 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/src/Kconfig b/src/Kconfig
index d5b789782a..6430b4675d 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -400,10 +400,12 @@ endmenu
config RT_USING_DEVICE
bool "Using device object"
+ depends on !RT_USING_NANO
default y
config RT_USING_DEVICE_OPS
bool "Using ops for each device object"
+ depends on RT_USING_DEVICE
default n
config RT_USING_INTERRUPT_INFO
@@ -423,6 +425,7 @@ if RT_USING_CONSOLE
config RT_CONSOLE_DEVICE_NAME
string "the device name for console"
+ depends on RT_USING_DEVICE
default "uart"
endif