summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlatercomer <[email protected]>2024-06-11 12:13:25 +0800
committerRbb666 <[email protected]>2024-06-20 14:40:42 +0800
commitd58c29d23e403ef124cf8f9e460e6bd35f5a1aeb (patch)
tree122a239eae21a48b0c46b714c9fd3a61278d8009
parent59193dfeeb25a781288ef242d2dcc9e67925b064 (diff)
除了bsp之外的Kconfig使用rsource替代source
-rw-r--r--Kconfig8
-rw-r--r--components/Kconfig24
-rw-r--r--components/libc/Kconfig6
-rw-r--r--components/libc/posix/Kconfig2
-rw-r--r--components/lwp/Kconfig2
-rw-r--r--components/net/Kconfig8
-rw-r--r--components/utilities/Kconfig4
-rw-r--r--examples/utest/testcases/Kconfig16
-rw-r--r--examples/utest/testcases/posix/Kconfig52
-rw-r--r--examples/utest/testcases/posix/arpa/Kconfig2
-rw-r--r--examples/utest/testcases/posix/net/Kconfig2
-rw-r--r--examples/utest/testcases/posix/sys/Kconfig6
12 files changed, 66 insertions, 66 deletions
diff --git a/Kconfig b/Kconfig
index 1ebcbc9830..c16817583a 100644
--- a/Kconfig
+++ b/Kconfig
@@ -1,4 +1,4 @@
-source "$RTT_DIR/src/Kconfig"
-source "$RTT_DIR/libcpu/Kconfig"
-source "$RTT_DIR/components/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/Kconfig"
+rsource "src/Kconfig"
+rsource "libcpu/Kconfig"
+rsource "components/Kconfig"
+rsource "examples/utest/testcases/Kconfig"
diff --git a/components/Kconfig b/components/Kconfig
index d3f2eef779..c9de0f55a0 100644
--- a/components/Kconfig
+++ b/components/Kconfig
@@ -26,25 +26,25 @@ config RT_USING_LEGACY
default n
if RT_USING_CONSOLE
-source "$RTT_DIR/components/finsh/Kconfig"
+rsource "finsh/Kconfig"
endif
if !RT_USING_NANO
-source "$RTT_DIR/components/dfs/Kconfig"
-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"
+rsource "dfs/Kconfig"
+rsource "fal/Kconfig"
+rsource "drivers/Kconfig"
+rsource "libc/Kconfig"
+rsource "net/Kconfig"
+rsource "mprotect/Kconfig"
+rsource "utilities/Kconfig"
+rsource "vbus/Kconfig"
endif
if RT_USING_SMART
-source "$RTT_DIR/components/lwp/Kconfig"
-source "$RTT_DIR/components/mm/Kconfig"
+rsource "lwp/Kconfig"
+rsource "mm/Kconfig"
endif
-source "$RTT_DIR/components/legacy/Kconfig"
+rsource "legacy/Kconfig"
endmenu
diff --git a/components/libc/Kconfig b/components/libc/Kconfig
index 7cdee9040f..f25104d8af 100644
--- a/components/libc/Kconfig
+++ b/components/libc/Kconfig
@@ -9,8 +9,8 @@ config RT_USING_EXTERNAL_LIBC
RT_USING_EXTERNAL_LIBC in software package's Kconfig
This option is not available for users to select.
-source "$RTT_DIR/components/libc/compilers/common/Kconfig"
-source "$RTT_DIR/components/libc/posix/Kconfig"
-source "$RTT_DIR/components/libc/cplusplus/Kconfig"
+rsource "compilers/common/Kconfig"
+rsource "posix/Kconfig"
+rsource "cplusplus/Kconfig"
endmenu
diff --git a/components/libc/posix/Kconfig b/components/libc/posix/Kconfig
index 7d6539234f..8a4a3843cb 100644
--- a/components/libc/posix/Kconfig
+++ b/components/libc/posix/Kconfig
@@ -115,6 +115,6 @@ if RT_USING_MODULE
default n
endif
-source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
+rsource "ipc/Kconfig"
endmenu
diff --git a/components/lwp/Kconfig b/components/lwp/Kconfig
index b42dfa585d..969a9bd000 100644
--- a/components/lwp/Kconfig
+++ b/components/lwp/Kconfig
@@ -74,6 +74,6 @@ if RT_USING_LWP
default n
endif
-source "$RTT_DIR/components/lwp/terminal/Kconfig"
+rsource "terminal/Kconfig"
endif
diff --git a/components/net/Kconfig b/components/net/Kconfig
index a03703e47b..7dfd1b101b 100644
--- a/components/net/Kconfig
+++ b/components/net/Kconfig
@@ -1,8 +1,8 @@
menu "Network"
-source "$RTT_DIR/components/net/sal/Kconfig"
-source "$RTT_DIR/components/net/netdev/Kconfig"
-source "$RTT_DIR/components/net/lwip/Kconfig"
-source "$RTT_DIR/components/net/at/Kconfig"
+rsource "sal/Kconfig"
+rsource "netdev/Kconfig"
+rsource "lwip/Kconfig"
+rsource "at/Kconfig"
endmenu
diff --git a/components/utilities/Kconfig b/components/utilities/Kconfig
index 1ddbdfc3ea..b64b319360 100644
--- a/components/utilities/Kconfig
+++ b/components/utilities/Kconfig
@@ -220,7 +220,7 @@ config RT_USING_RESOURCE_ID
bool "Enable resource id"
default n
-source "$RTT_DIR/components/utilities/libadt/Kconfig"
-source "$RTT_DIR/components/utilities/rt-link/Kconfig"
+rsource "libadt/Kconfig"
+rsource "rt-link/Kconfig"
endmenu
diff --git a/examples/utest/testcases/Kconfig b/examples/utest/testcases/Kconfig
index a0c068edf5..cc13e4e70e 100644
--- a/examples/utest/testcases/Kconfig
+++ b/examples/utest/testcases/Kconfig
@@ -7,14 +7,14 @@ config RT_USING_UTESTCASES
if RT_USING_UTESTCASES
-source "$RTT_DIR/examples/utest/testcases/utest/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/kernel/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/cpp11/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/drivers/serial_v2/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/drivers/ipc/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/posix/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/mm/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/tmpfs/Kconfig"
+rsource "utest/Kconfig"
+rsource "kernel/Kconfig"
+rsource "cpp11/Kconfig"
+rsource "drivers/serial_v2/Kconfig"
+rsource "drivers/ipc/Kconfig"
+rsource "posix/Kconfig"
+rsource "mm/Kconfig"
+rsource "tmpfs/Kconfig"
endif
endmenu
diff --git a/examples/utest/testcases/posix/Kconfig b/examples/utest/testcases/posix/Kconfig
index b2dc813af9..7b1e428a7d 100644
--- a/examples/utest/testcases/posix/Kconfig
+++ b/examples/utest/testcases/posix/Kconfig
@@ -6,32 +6,32 @@ menu "RTT Posix Testcase"
default n
if RTT_POSIX_TESTCASE
- # source "$RTT_DIR/examples/utest/testcases/posix/aio_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/arpa/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/ctype_h/Kconfig" # reserve
- source "$RTT_DIR/examples/utest/testcases/posix/dirent_h/Kconfig"
- # source "$RTT_DIR/examples/utest/testcases/posix/errno_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/fcntl_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/fenv_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/inttypes_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/libgen_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/locale_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/mqueue_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/net/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/netdb_h/Kconfig" # reserve
- source "$RTT_DIR/examples/utest/testcases/posix/pthread_h/Kconfig"
- # source "$RTT_DIR/examples/utest/testcases/posix/sched_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/semaphore_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/setjmp_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/signal_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/stdarg_h/Kconfig" # reserve
- source "$RTT_DIR/examples/utest/testcases/posix/stdio_h/Kconfig"
- source "$RTT_DIR/examples/utest/testcases/posix/stdlib_h/Kconfig"
- # source "$RTT_DIR/examples/utest/testcases/posix/string_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/stropts_h/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/sys/Kconfig" # reserve
- # source "$RTT_DIR/examples/utest/testcases/posix/time_h/Kconfig" # reserve
- source "$RTT_DIR/examples/utest/testcases/posix/unistd_h/Kconfig"
+ # rsource "aio_h/Kconfig" # reserve
+ # rsource "arpa/Kconfig" # reserve
+ # rsource "ctype_h/Kconfig" # reserve
+ rsource "dirent_h/Kconfig"
+ # rsource "errno_h/Kconfig" # reserve
+ # rsource "fcntl_h/Kconfig" # reserve
+ # rsource "fenv_h/Kconfig" # reserve
+ # rsource "inttypes_h/Kconfig" # reserve
+ # rsource "libgen_h/Kconfig" # reserve
+ # rsource "locale_h/Kconfig" # reserve
+ # rsource "mqueue_h/Kconfig" # reserve
+ # rsource "net/Kconfig" # reserve
+ # rsource "netdb_h/Kconfig" # reserve
+ rsource "pthread_h/Kconfig"
+ # rsource "sched_h/Kconfig" # reserve
+ # rsource "semaphore_h/Kconfig" # reserve
+ # rsource "setjmp_h/Kconfig" # reserve
+ # rsource "signal_h/Kconfig" # reserve
+ # rsource "stdarg_h/Kconfig" # reserve
+ rsource "stdio_h/Kconfig"
+ rsource "stdlib_h/Kconfig"
+ # rsource "string_h/Kconfig" # reserve
+ # rsource "stropts_h/Kconfig" # reserve
+ # rsource "sys/Kconfig" # reserve
+ # rsource "time_h/Kconfig" # reserve
+ rsource "unistd_h/Kconfig"
endif
endmenu
diff --git a/examples/utest/testcases/posix/arpa/Kconfig b/examples/utest/testcases/posix/arpa/Kconfig
index aefe152659..57d25dddee 100644
--- a/examples/utest/testcases/posix/arpa/Kconfig
+++ b/examples/utest/testcases/posix/arpa/Kconfig
@@ -1 +1 @@
-source "$RTT_DIR/examples/utest/testcases/posix/arpa/inet_h/Kconfig"
+rsource "inet_h/Kconfig"
diff --git a/examples/utest/testcases/posix/net/Kconfig b/examples/utest/testcases/posix/net/Kconfig
index 6def9b379b..863c9d7aeb 100644
--- a/examples/utest/testcases/posix/net/Kconfig
+++ b/examples/utest/testcases/posix/net/Kconfig
@@ -1 +1 @@
-source "$RTT_DIR/examples/utest/testcases/posix/net/if_h/Kconfig"
+rsource "if_h/Kconfig"
diff --git a/examples/utest/testcases/posix/sys/Kconfig b/examples/utest/testcases/posix/sys/Kconfig
index 7db67ec834..9692ae1aa1 100644
--- a/examples/utest/testcases/posix/sys/Kconfig
+++ b/examples/utest/testcases/posix/sys/Kconfig
@@ -1,3 +1,3 @@
-source "$RTT_DIR/examples/utest/testcases/posix/sys/mman_h/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/posix/sys/shm_h/Kconfig"
-source "$RTT_DIR/examples/utest/testcases/posix/sys/utsname_h/Kconfig"
+rsource "mman_h/Kconfig"
+rsource "shm_h/Kconfig"
+rsource "utsname_h/Kconfig"