Skip to content

Commit d58c29d

Browse files
ComerLaterRbb666
authored andcommitted
除了bsp之外的Kconfig使用rsource替代source
1 parent 59193df commit d58c29d

File tree

12 files changed

+66
-66
lines changed

12 files changed

+66
-66
lines changed

Kconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
source "$RTT_DIR/src/Kconfig"
2-
source "$RTT_DIR/libcpu/Kconfig"
3-
source "$RTT_DIR/components/Kconfig"
4-
source "$RTT_DIR/examples/utest/testcases/Kconfig"
1+
rsource "src/Kconfig"
2+
rsource "libcpu/Kconfig"
3+
rsource "components/Kconfig"
4+
rsource "examples/utest/testcases/Kconfig"

components/Kconfig

+12-12
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,25 @@ config RT_USING_LEGACY
2626
default n
2727

2828
if RT_USING_CONSOLE
29-
source "$RTT_DIR/components/finsh/Kconfig"
29+
rsource "finsh/Kconfig"
3030
endif
3131

3232
if !RT_USING_NANO
33-
source "$RTT_DIR/components/dfs/Kconfig"
34-
source "$RTT_DIR/components/fal/Kconfig"
35-
source "$RTT_DIR/components/drivers/Kconfig"
36-
source "$RTT_DIR/components/libc/Kconfig"
37-
source "$RTT_DIR/components/net/Kconfig"
38-
source "$RTT_DIR/components/mprotect/Kconfig"
39-
source "$RTT_DIR/components/utilities/Kconfig"
40-
source "$RTT_DIR/components/vbus/Kconfig"
33+
rsource "dfs/Kconfig"
34+
rsource "fal/Kconfig"
35+
rsource "drivers/Kconfig"
36+
rsource "libc/Kconfig"
37+
rsource "net/Kconfig"
38+
rsource "mprotect/Kconfig"
39+
rsource "utilities/Kconfig"
40+
rsource "vbus/Kconfig"
4141
endif
4242

4343
if RT_USING_SMART
44-
source "$RTT_DIR/components/lwp/Kconfig"
45-
source "$RTT_DIR/components/mm/Kconfig"
44+
rsource "lwp/Kconfig"
45+
rsource "mm/Kconfig"
4646
endif
4747

48-
source "$RTT_DIR/components/legacy/Kconfig"
48+
rsource "legacy/Kconfig"
4949

5050
endmenu

components/libc/Kconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ config RT_USING_EXTERNAL_LIBC
99
RT_USING_EXTERNAL_LIBC in software package's Kconfig
1010
This option is not available for users to select.
1111

12-
source "$RTT_DIR/components/libc/compilers/common/Kconfig"
13-
source "$RTT_DIR/components/libc/posix/Kconfig"
14-
source "$RTT_DIR/components/libc/cplusplus/Kconfig"
12+
rsource "compilers/common/Kconfig"
13+
rsource "posix/Kconfig"
14+
rsource "cplusplus/Kconfig"
1515

1616
endmenu

components/libc/posix/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,6 @@ if RT_USING_MODULE
115115
default n
116116
endif
117117

118-
source "$RTT_DIR/components/libc/posix/ipc/Kconfig"
118+
rsource "ipc/Kconfig"
119119

120120
endmenu

components/lwp/Kconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,6 @@ if RT_USING_LWP
7474
default n
7575
endif
7676

77-
source "$RTT_DIR/components/lwp/terminal/Kconfig"
77+
rsource "terminal/Kconfig"
7878
endif
7979

components/net/Kconfig

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
menu "Network"
22

3-
source "$RTT_DIR/components/net/sal/Kconfig"
4-
source "$RTT_DIR/components/net/netdev/Kconfig"
5-
source "$RTT_DIR/components/net/lwip/Kconfig"
6-
source "$RTT_DIR/components/net/at/Kconfig"
3+
rsource "sal/Kconfig"
4+
rsource "netdev/Kconfig"
5+
rsource "lwip/Kconfig"
6+
rsource "at/Kconfig"
77

88
endmenu

components/utilities/Kconfig

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ config RT_USING_RESOURCE_ID
220220
bool "Enable resource id"
221221
default n
222222

223-
source "$RTT_DIR/components/utilities/libadt/Kconfig"
224-
source "$RTT_DIR/components/utilities/rt-link/Kconfig"
223+
rsource "libadt/Kconfig"
224+
rsource "rt-link/Kconfig"
225225

226226
endmenu

examples/utest/testcases/Kconfig

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ config RT_USING_UTESTCASES
77

88
if RT_USING_UTESTCASES
99

10-
source "$RTT_DIR/examples/utest/testcases/utest/Kconfig"
11-
source "$RTT_DIR/examples/utest/testcases/kernel/Kconfig"
12-
source "$RTT_DIR/examples/utest/testcases/cpp11/Kconfig"
13-
source "$RTT_DIR/examples/utest/testcases/drivers/serial_v2/Kconfig"
14-
source "$RTT_DIR/examples/utest/testcases/drivers/ipc/Kconfig"
15-
source "$RTT_DIR/examples/utest/testcases/posix/Kconfig"
16-
source "$RTT_DIR/examples/utest/testcases/mm/Kconfig"
17-
source "$RTT_DIR/examples/utest/testcases/tmpfs/Kconfig"
10+
rsource "utest/Kconfig"
11+
rsource "kernel/Kconfig"
12+
rsource "cpp11/Kconfig"
13+
rsource "drivers/serial_v2/Kconfig"
14+
rsource "drivers/ipc/Kconfig"
15+
rsource "posix/Kconfig"
16+
rsource "mm/Kconfig"
17+
rsource "tmpfs/Kconfig"
1818
endif
1919

2020
endmenu

examples/utest/testcases/posix/Kconfig

+26-26
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@ menu "RTT Posix Testcase"
66
default n
77

88
if RTT_POSIX_TESTCASE
9-
# source "$RTT_DIR/examples/utest/testcases/posix/aio_h/Kconfig" # reserve
10-
# source "$RTT_DIR/examples/utest/testcases/posix/arpa/Kconfig" # reserve
11-
# source "$RTT_DIR/examples/utest/testcases/posix/ctype_h/Kconfig" # reserve
12-
source "$RTT_DIR/examples/utest/testcases/posix/dirent_h/Kconfig"
13-
# source "$RTT_DIR/examples/utest/testcases/posix/errno_h/Kconfig" # reserve
14-
# source "$RTT_DIR/examples/utest/testcases/posix/fcntl_h/Kconfig" # reserve
15-
# source "$RTT_DIR/examples/utest/testcases/posix/fenv_h/Kconfig" # reserve
16-
# source "$RTT_DIR/examples/utest/testcases/posix/inttypes_h/Kconfig" # reserve
17-
# source "$RTT_DIR/examples/utest/testcases/posix/libgen_h/Kconfig" # reserve
18-
# source "$RTT_DIR/examples/utest/testcases/posix/locale_h/Kconfig" # reserve
19-
# source "$RTT_DIR/examples/utest/testcases/posix/mqueue_h/Kconfig" # reserve
20-
# source "$RTT_DIR/examples/utest/testcases/posix/net/Kconfig" # reserve
21-
# source "$RTT_DIR/examples/utest/testcases/posix/netdb_h/Kconfig" # reserve
22-
source "$RTT_DIR/examples/utest/testcases/posix/pthread_h/Kconfig"
23-
# source "$RTT_DIR/examples/utest/testcases/posix/sched_h/Kconfig" # reserve
24-
# source "$RTT_DIR/examples/utest/testcases/posix/semaphore_h/Kconfig" # reserve
25-
# source "$RTT_DIR/examples/utest/testcases/posix/setjmp_h/Kconfig" # reserve
26-
# source "$RTT_DIR/examples/utest/testcases/posix/signal_h/Kconfig" # reserve
27-
# source "$RTT_DIR/examples/utest/testcases/posix/stdarg_h/Kconfig" # reserve
28-
source "$RTT_DIR/examples/utest/testcases/posix/stdio_h/Kconfig"
29-
source "$RTT_DIR/examples/utest/testcases/posix/stdlib_h/Kconfig"
30-
# source "$RTT_DIR/examples/utest/testcases/posix/string_h/Kconfig" # reserve
31-
# source "$RTT_DIR/examples/utest/testcases/posix/stropts_h/Kconfig" # reserve
32-
# source "$RTT_DIR/examples/utest/testcases/posix/sys/Kconfig" # reserve
33-
# source "$RTT_DIR/examples/utest/testcases/posix/time_h/Kconfig" # reserve
34-
source "$RTT_DIR/examples/utest/testcases/posix/unistd_h/Kconfig"
9+
# rsource "aio_h/Kconfig" # reserve
10+
# rsource "arpa/Kconfig" # reserve
11+
# rsource "ctype_h/Kconfig" # reserve
12+
rsource "dirent_h/Kconfig"
13+
# rsource "errno_h/Kconfig" # reserve
14+
# rsource "fcntl_h/Kconfig" # reserve
15+
# rsource "fenv_h/Kconfig" # reserve
16+
# rsource "inttypes_h/Kconfig" # reserve
17+
# rsource "libgen_h/Kconfig" # reserve
18+
# rsource "locale_h/Kconfig" # reserve
19+
# rsource "mqueue_h/Kconfig" # reserve
20+
# rsource "net/Kconfig" # reserve
21+
# rsource "netdb_h/Kconfig" # reserve
22+
rsource "pthread_h/Kconfig"
23+
# rsource "sched_h/Kconfig" # reserve
24+
# rsource "semaphore_h/Kconfig" # reserve
25+
# rsource "setjmp_h/Kconfig" # reserve
26+
# rsource "signal_h/Kconfig" # reserve
27+
# rsource "stdarg_h/Kconfig" # reserve
28+
rsource "stdio_h/Kconfig"
29+
rsource "stdlib_h/Kconfig"
30+
# rsource "string_h/Kconfig" # reserve
31+
# rsource "stropts_h/Kconfig" # reserve
32+
# rsource "sys/Kconfig" # reserve
33+
# rsource "time_h/Kconfig" # reserve
34+
rsource "unistd_h/Kconfig"
3535
endif
3636

3737
endmenu
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
source "$RTT_DIR/examples/utest/testcases/posix/arpa/inet_h/Kconfig"
1+
rsource "inet_h/Kconfig"
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
source "$RTT_DIR/examples/utest/testcases/posix/net/if_h/Kconfig"
1+
rsource "if_h/Kconfig"
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
source "$RTT_DIR/examples/utest/testcases/posix/sys/mman_h/Kconfig"
2-
source "$RTT_DIR/examples/utest/testcases/posix/sys/shm_h/Kconfig"
3-
source "$RTT_DIR/examples/utest/testcases/posix/sys/utsname_h/Kconfig"
1+
rsource "mman_h/Kconfig"
2+
rsource "shm_h/Kconfig"
3+
rsource "utsname_h/Kconfig"

0 commit comments

Comments
 (0)