Browse Source

bsp中option env语句替换为新语句,并同步更新了source "$xxx"语句

latercomer 10 months ago
parent
commit
fe3c4d456e
100 changed files with 607 additions and 1414 deletions
  1. 5 14
      bsp/CME_M7/Kconfig
  2. 6 15
      bsp/ESP32_C3/Kconfig
  3. 7 16
      bsp/Infineon/libraries/templates/PSOC62/Kconfig
  4. 7 16
      bsp/Infineon/libraries/templates/XMC7200D/Kconfig
  5. 7 16
      bsp/Infineon/psoc6-cy8ckit-062-BLE/Kconfig
  6. 7 16
      bsp/Infineon/psoc6-cy8ckit-062-WIFI-BT/Kconfig
  7. 7 16
      bsp/Infineon/psoc6-cy8ckit-062S2-43012/Kconfig
  8. 7 16
      bsp/Infineon/psoc6-cy8ckit-062s4/Kconfig
  9. 7 16
      bsp/Infineon/psoc6-cy8cproto-062S3-4343W/Kconfig
  10. 7 16
      bsp/Infineon/psoc6-evaluationkit-062S2/Kconfig
  11. 7 16
      bsp/Infineon/xmc7200-kit_xmc7200_evk/Kconfig
  12. 5 14
      bsp/Vango/v85xx/Kconfig
  13. 5 14
      bsp/Vango/v85xxp/Kconfig
  14. 6 15
      bsp/acm32/acm32f0x0-nucleo/Kconfig
  15. 6 15
      bsp/acm32/acm32f4xx-nucleo/Kconfig
  16. 6 15
      bsp/airm2m/air105/Kconfig
  17. 6 15
      bsp/airm2m/air32f103/Kconfig
  18. 7 16
      bsp/allwinner/d1/Kconfig
  19. 7 16
      bsp/allwinner/d1s/Kconfig
  20. 12 12
      bsp/allwinner/libraries/Kconfig
  21. 3 3
      bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/Kconfig
  22. 3 3
      bsp/allwinner/libraries/sunxi-hal/hal/source/sound/Kconfig
  23. 6 15
      bsp/allwinner_tina/Kconfig
  24. 9 21
      bsp/amebaz/Kconfig
  25. 7 16
      bsp/apm32/apm32e103ze-evalboard/Kconfig
  26. 7 16
      bsp/apm32/apm32e103ze-tinyboard/Kconfig
  27. 7 16
      bsp/apm32/apm32f030r8-miniboard/Kconfig
  28. 7 16
      bsp/apm32/apm32f051r8-evalboard/Kconfig
  29. 7 16
      bsp/apm32/apm32f072vb-miniboard/Kconfig
  30. 7 16
      bsp/apm32/apm32f091vc-miniboard/Kconfig
  31. 7 16
      bsp/apm32/apm32f103vb-miniboard/Kconfig
  32. 7 16
      bsp/apm32/apm32f103xe-minibroard/Kconfig
  33. 7 16
      bsp/apm32/apm32f107vc-evalboard/Kconfig
  34. 7 16
      bsp/apm32/apm32f407ig-minibroard/Kconfig
  35. 7 16
      bsp/apm32/apm32f407zg-evalboard/Kconfig
  36. 7 16
      bsp/apm32/apm32s103vb-miniboard/Kconfig
  37. 6 18
      bsp/apollo2/Kconfig
  38. 8 17
      bsp/asm9260t/Kconfig
  39. 7 16
      bsp/at32/at32a403a-start/Kconfig
  40. 7 16
      bsp/at32/at32a423-start/Kconfig
  41. 7 16
      bsp/at32/at32f402-start/Kconfig
  42. 7 16
      bsp/at32/at32f403a-start/Kconfig
  43. 7 16
      bsp/at32/at32f405-start/Kconfig
  44. 7 16
      bsp/at32/at32f407-start/Kconfig
  45. 7 16
      bsp/at32/at32f413-start/Kconfig
  46. 7 16
      bsp/at32/at32f415-start/Kconfig
  47. 7 16
      bsp/at32/at32f421-start/Kconfig
  48. 7 16
      bsp/at32/at32f423-start/Kconfig
  49. 7 16
      bsp/at32/at32f425-start/Kconfig
  50. 7 16
      bsp/at32/at32f435-start/Kconfig
  51. 7 16
      bsp/at32/at32f437-start/Kconfig
  52. 8 17
      bsp/at91/at91sam9260/Kconfig
  53. 7 19
      bsp/at91/at91sam9g45/Kconfig
  54. 6 18
      bsp/avr32/at32uc3a0256/Kconfig
  55. 6 18
      bsp/avr32/at32uc3b0256/Kconfig
  56. 6 18
      bsp/beaglebone/Kconfig
  57. 6 15
      bsp/bluetrum/ab32vg1-ab-prougen/Kconfig
  58. 6 18
      bsp/bm3803/Kconfig
  59. 8 20
      bsp/bouffalo_lab/bl60x/Kconfig
  60. 7 16
      bsp/bouffalo_lab/bl61x/Kconfig
  61. 8 20
      bsp/bouffalo_lab/bl70x/Kconfig
  62. 6 15
      bsp/bouffalo_lab/bl808/d0/Kconfig
  63. 8 20
      bsp/bouffalo_lab/bl808/lp/Kconfig
  64. 8 20
      bsp/bouffalo_lab/bl808/m0/Kconfig
  65. 5 14
      bsp/ck802/Kconfig
  66. 7 16
      bsp/core-v-mcu/core-v-cv32e40p/Kconfig
  67. 9 18
      bsp/cvitek/c906_little/Kconfig
  68. 6 15
      bsp/cvitek/cv18xx_aarch64/Kconfig
  69. 9 18
      bsp/cvitek/cv18xx_risc-v/Kconfig
  70. 8 17
      bsp/dm365/Kconfig
  71. 6 15
      bsp/essemi/es32f0654/Kconfig
  72. 1 1
      bsp/essemi/es32f0654/drivers/Kconfig
  73. 6 15
      bsp/essemi/es32f365x/Kconfig
  74. 1 1
      bsp/essemi/es32f365x/drivers/Kconfig
  75. 6 15
      bsp/essemi/es32f369x/Kconfig
  76. 1 1
      bsp/essemi/es32f369x/drivers/Kconfig
  77. 6 15
      bsp/essemi/es32vf2264/Kconfig
  78. 1 1
      bsp/essemi/es32vf2264/drivers/Kconfig
  79. 7 16
      bsp/fm33lc026/Kconfig
  80. 5 14
      bsp/frdm-k64f/Kconfig
  81. 6 15
      bsp/ft2004/Kconfig
  82. 7 16
      bsp/ft32/ft32f072xb-starter/Kconfig
  83. 1 1
      bsp/ft32/ft32f072xb-starter/board/Kconfig
  84. 5 14
      bsp/fujitsu/mb9x/mb9bf500r/Kconfig
  85. 5 14
      bsp/fujitsu/mb9x/mb9bf506r/Kconfig
  86. 5 14
      bsp/fujitsu/mb9x/mb9bf568r/Kconfig
  87. 5 14
      bsp/fujitsu/mb9x/mb9bf618s/Kconfig
  88. 7 16
      bsp/gd32/arm/gd32103c-eval/Kconfig
  89. 1 1
      bsp/gd32/arm/gd32103c-eval/board/Kconfig
  90. 7 16
      bsp/gd32/arm/gd32105c-eval/Kconfig
  91. 1 1
      bsp/gd32/arm/gd32105c-eval/board/Kconfig
  92. 7 16
      bsp/gd32/arm/gd32105r-start/Kconfig
  93. 1 1
      bsp/gd32/arm/gd32105r-start/board/Kconfig
  94. 7 16
      bsp/gd32/arm/gd32107c-eval/Kconfig
  95. 1 1
      bsp/gd32/arm/gd32107c-eval/board/Kconfig
  96. 7 16
      bsp/gd32/arm/gd32205r-start/Kconfig
  97. 1 1
      bsp/gd32/arm/gd32205r-start/board/Kconfig
  98. 7 16
      bsp/gd32/arm/gd32207i-eval/Kconfig
  99. 1 1
      bsp/gd32/arm/gd32207i-eval/board/Kconfig
  100. 7 16
      bsp/gd32/arm/gd32303c-start/Kconfig

+ 5 - 14
bsp/CME_M7/Kconfig

@@ -1,25 +1,16 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_CME_M7
     bool

+ 6 - 15
bsp/ESP32_C3/Kconfig

@@ -1,20 +1,11 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "drivers/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "drivers/Kconfig"

+ 7 - 16
bsp/Infineon/libraries/templates/PSOC62/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/libraries/templates/XMC7200D/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/psoc6-cy8ckit-062-BLE/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/psoc6-cy8ckit-062-WIFI-BT/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/psoc6-cy8ckit-062S2-43012/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/psoc6-cy8ckit-062s4/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/psoc6-cy8cproto-062S3-4343W/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/psoc6-evaluationkit-062S2/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/Infineon/xmc7200-kit_xmc7200_evk/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 5 - 14
bsp/Vango/v85xx/Kconfig

@@ -1,25 +1,16 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
 # you can change the RTT_ROOT default: "rt-thread"
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_SERIES_V85XX
     bool

+ 5 - 14
bsp/Vango/v85xxp/Kconfig

@@ -1,25 +1,16 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
 # you can change the RTT_ROOT default: "rt-thread"
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_SERIES_V85XXP
     bool

+ 6 - 15
bsp/acm32/acm32f0x0-nucleo/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_SERIES_ACM32F0
     bool
@@ -25,5 +16,5 @@ config SOC_SERIES_ACM32F0
     select RT_USING_USER_MAIN
     default y
 
-source "$BSP_DIR/drivers/Kconfig"
+source "$(BSP_DIR)/drivers/Kconfig"
 

+ 6 - 15
bsp/acm32/acm32f4xx-nucleo/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
-source "$BSP_DIR/drivers/Kconfig"
+source "$(BSP_DIR)/drivers/Kconfig"
 

+ 6 - 15
bsp/airm2m/air105/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
 

+ 6 - 15
bsp/airm2m/air32f103/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/allwinner/d1/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config BOARD_allwinnerd1
     bool
@@ -39,5 +30,5 @@ config __STACKSIZE__
     int "stack size for interrupt"
     default 4096
 
-source "../libraries/drivers/Kconfig"
-source "../libraries/Kconfig"
+rsource "../libraries/drivers/Kconfig"
+rsource "../libraries/Kconfig"

+ 7 - 16
bsp/allwinner/d1s/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config BOARD_allwinnerd1s
     bool
@@ -39,5 +30,5 @@ config __STACKSIZE__
     int "stack size for interrupt"
     default 4096
 
-source "../libraries/drivers/Kconfig"
-source "../libraries/Kconfig"
+rsource "../libraries/drivers/Kconfig"
+rsource "../libraries/Kconfig"

+ 12 - 12
bsp/allwinner/libraries/Kconfig

@@ -3,16 +3,16 @@ menuconfig RT_USING_SUNXI_HAL
     default n
 
 if RT_USING_SUNXI_HAL
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/uart/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/ccmu/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/dma/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/gpio/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/sdmmc/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/spi/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/twi/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/usb/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/ce/Kconfig"
-    source "$BSP_DIR/../libraries/sunxi-hal/hal/source/efuse/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/uart/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/ccmu/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/dma/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/gpio/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/disp2/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/sdmmc/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/spi/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/twi/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/g2d_rcq/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/usb/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/ce/Kconfig"
+    source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/efuse/Kconfig"
 endif

+ 3 - 3
bsp/allwinner/libraries/sunxi-hal/hal/source/disp2/Kconfig

@@ -171,20 +171,20 @@ config DISP2_SUNXI_BOOT_COLORBAR
 menu "LCD panels select"
     depends on DISP2_SUNXI
 
-source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig"
+source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/disp2/disp/lcd/Kconfig"
 endmenu
 
 
 menu "Display engine feature select"
     depends on DISP2_SUNXI
 
-source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/disp/Kconfig"
+source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/disp2/disp/Kconfig"
 endmenu
 
 menu "Soc and board select"
     depends on DISP2_SUNXI
 
-source "$BSP_DIR/../libraries/sunxi-hal/hal/source/disp2/soc/Kconfig"
+source "$(BSP_DIR)/../libraries/sunxi-hal/hal/source/disp2/soc/Kconfig"
 endmenu
 
 endmenu

+ 3 - 3
bsp/allwinner/libraries/sunxi-hal/hal/source/sound/Kconfig

@@ -3,7 +3,7 @@ menuconfig DRIVERS_SOUND
     default y
 
 if DRIVERS_SOUND
-source "drivers/hal/source/sound/codecs/Kconfig"
-source "drivers/hal/source/sound/platform/Kconfig"
-source "drivers/hal/source/sound/component/Kconfig"
+rsource "codecs/Kconfig"
+rsource "platform/Kconfig"
+rsource "component/Kconfig"
 endif # SOUND

+ 6 - 15
bsp/allwinner_tina/Kconfig

@@ -1,25 +1,16 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_TINA
     bool
@@ -29,4 +20,4 @@ config SOC_TINA
     select RT_USING_USER_MAIN
     default y
 
-source "$BSP_DIR/drivers/Kconfig"
+source "$(BSP_DIR)/drivers/Kconfig"

+ 9 - 21
bsp/amebaz/Kconfig

@@ -1,33 +1,21 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "$ENV_DIR/tools/scripts/cmds/Kconfig"
-source "$BSP_DIR/libraries/Kconfig"
-source "$BSP_DIR/drivers/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+osource "$ENV_DIR/tools/scripts/cmds/Kconfig"
+source "$(BSP_DIR)/libraries/Kconfig"
+source "$(BSP_DIR)/drivers/Kconfig"
 
 config SOC_AMEBAZ
     bool

+ 7 - 16
bsp/apm32/apm32e103ze-evalboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32e103ze-tinyboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f030r8-miniboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f051r8-evalboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f072vb-miniboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f091vc-miniboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f103vb-miniboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f103xe-minibroard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f107vc-evalboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f407ig-minibroard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32f407zg-evalboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 7 - 16
bsp/apm32/apm32s103vb-miniboard/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 6 - 18
bsp/apollo2/Kconfig

@@ -1,30 +1,18 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_APOLLO2
     bool

+ 8 - 17
bsp/asm9260t/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
-
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
-
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
-
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+BSP_DIR := .
+
+RTT_DIR := ../..
+
+PKGS_DIR := packages
+
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_AT91SAM926
     bool

+ 7 - 16
bsp/at32/at32a403a-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32a423-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f402-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f403a-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f405-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f407-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f413-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f415-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f421-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f423-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f425-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f435-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 7 - 16
bsp/at32/at32f437-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 8 - 17
bsp/at91/at91sam9260/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
-
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
-
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
-
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+BSP_DIR := .
+
+RTT_DIR := ../../..
+
+PKGS_DIR := packages
+
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_AT91SAM926
     bool

+ 7 - 19
bsp/at91/at91sam9g45/Kconfig

@@ -1,30 +1,18 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
 # you can change the RTT_ROOT default "../../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_AT91SAM9G45
     bool
@@ -34,5 +22,5 @@ config SOC_AT91SAM9G45
     select RT_USING_USER_MAIN
     default y
 
-source "$BSP_DIR/drivers/Kconfig"
+source "$(BSP_DIR)/drivers/Kconfig"
 

+ 6 - 18
bsp/avr32/at32uc3a0256/Kconfig

@@ -1,30 +1,18 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 menu "Hardware Drivers Config"
 

+ 6 - 18
bsp/avr32/at32uc3b0256/Kconfig

@@ -1,30 +1,18 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 menu "Hardware Drivers Config"
 

+ 6 - 18
bsp/beaglebone/Kconfig

@@ -1,30 +1,18 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example: default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_AM335X
     bool

+ 6 - 15
bsp/bluetrum/ab32vg1-ab-prougen/Kconfig

@@ -1,23 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
 
 config BOARD_BLUETRUM_EVB
     bool

+ 6 - 18
bsp/bm3803/Kconfig

@@ -1,30 +1,18 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example: default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config ENV_DIR
-    string
-    option env="ENV_ROOT"
-    default "/"
+ENV_DIR := /
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_BM3803
     bool

+ 8 - 20
bsp/bouffalo_lab/bl60x/Kconfig

@@ -1,26 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config LIBRARIES_DIR
-    string
-    option env="LIBRARIES_DIR"
-    default "../libraries"
+LIBRARIES_DIR := ../libraries
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
-source "$LIBRARIES_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
+source "$(LIBRARIES_DIR)/Kconfig"

+ 7 - 16
bsp/bouffalo_lab/bl61x/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
-source "../libraries/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
+rsource "../libraries/Kconfig"

+ 8 - 20
bsp/bouffalo_lab/bl70x/Kconfig

@@ -1,26 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config LIBRARIES_DIR
-    string
-    option env="LIBRARIES_DIR"
-    default "../libraries"
+LIBRARIES_DIR := ../libraries
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
-source "$LIBRARIES_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
+source "$(LIBRARIES_DIR)/Kconfig"

+ 6 - 15
bsp/bouffalo_lab/bl808/d0/Kconfig

@@ -1,23 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
 
 config __STACKSIZE__
     int "stack size for interrupt"

+ 8 - 20
bsp/bouffalo_lab/bl808/lp/Kconfig

@@ -1,26 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config LIBRARIES_DIR
-    string
-    option env="LIBRARIES_DIR"
-    default "../../libraries"
+LIBRARIES_DIR := ../../libraries
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
-source "$LIBRARIES_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
+source "$(LIBRARIES_DIR)/Kconfig"

+ 8 - 20
bsp/bouffalo_lab/bl808/m0/Kconfig

@@ -1,26 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-config LIBRARIES_DIR
-    string
-    option env="LIBRARIES_DIR"
-    default "../../libraries"
+LIBRARIES_DIR := ../../libraries
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
-source "$LIBRARIES_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
+source "$(LIBRARIES_DIR)/Kconfig"

+ 5 - 14
bsp/ck802/Kconfig

@@ -1,25 +1,16 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_CK802
     bool

+ 7 - 16
bsp/core-v-mcu/core-v-cv32e40p/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../Libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 9 - 18
bsp/cvitek/c906_little/Kconfig

@@ -1,23 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
-
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
-
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
-
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
+BSP_DIR := .
+
+RTT_DIR := ../../..
+
+PKGS_DIR := packages
+
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
 
 config BSP_USING_C906_LITTLE
     bool

+ 6 - 15
bsp/cvitek/cv18xx_aarch64/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_CV18XX_AARCH64
     bool
@@ -43,4 +34,4 @@ choice
         
 endchoice
 
-source "$BSP_DIR/board/Kconfig"
+source "$(BSP_DIR)/board/Kconfig"

+ 9 - 18
bsp/cvitek/cv18xx_risc-v/Kconfig

@@ -1,23 +1,14 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
-
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
-
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
-
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "board/Kconfig"
+BSP_DIR := .
+
+RTT_DIR := ../../..
+
+PKGS_DIR := packages
+
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "board/Kconfig"
 
 config BSP_USING_CV18XX
     bool

+ 8 - 17
bsp/dm365/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
-
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
-
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
-
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+BSP_DIR := .
+
+RTT_DIR := ../..
+
+PKGS_DIR := packages
+
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_DM365
     bool

+ 6 - 15
bsp/essemi/es32f0654/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_ES32F0654LT
     bool
@@ -25,4 +16,4 @@ config SOC_ES32F0654LT
     select ARCH_ARM_CORTEX_M0
     default y
 
-source "drivers/Kconfig"
+rsource "drivers/Kconfig"

+ 1 - 1
bsp/essemi/es32f0654/drivers/Kconfig

@@ -6,7 +6,7 @@ menu "Hardware Drivers Config"
             select RT_USING_PIN
             default y
 
-    source "drivers/ES/Kconfig"
+    rsource "ES/Kconfig"
 
     endmenu
 

+ 6 - 15
bsp/essemi/es32f365x/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_ES32F3696LT
     bool
@@ -25,4 +16,4 @@ config SOC_ES32F3696LT
     select ARCH_ARM_CORTEX_M3
     default y
 
-source "drivers/Kconfig"
+rsource "drivers/Kconfig"

+ 1 - 1
bsp/essemi/es32f365x/drivers/Kconfig

@@ -8,7 +8,7 @@ menu "Hardware Drivers Config"
             select RT_USING_PIN
             default y
 
-    source "drivers/ES/Kconfig"
+    rsource "ES/Kconfig"
 
     endmenu
 

+ 6 - 15
bsp/essemi/es32f369x/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_ES32F3696LT
     bool
@@ -25,4 +16,4 @@ config SOC_ES32F3696LT
     select ARCH_ARM_CORTEX_M3
     default y
 
-source "drivers/Kconfig"
+rsource "drivers/Kconfig"

+ 1 - 1
bsp/essemi/es32f369x/drivers/Kconfig

@@ -7,7 +7,7 @@ menu "Hardware Drivers Config"
             bool "Enable GPIO"
             select RT_USING_PIN
             default y
-    source "drivers/ES/Kconfig"
+    rsource "ES/Kconfig"
 
     endmenu
 

+ 6 - 15
bsp/essemi/es32vf2264/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_ES32VF2264
     bool
@@ -25,4 +16,4 @@ config SOC_ES32VF2264
     select ARCH_RISCV32
     default y
 
-source "drivers/Kconfig"
+rsource "drivers/Kconfig"

+ 1 - 1
bsp/essemi/es32vf2264/drivers/Kconfig

@@ -6,7 +6,7 @@ menu "Hardware Drivers Config"
             select RT_USING_PIN
             default y
 
-    source "drivers/ES/Kconfig"    
+    rsource "ES/Kconfig"    
 
         config BSP_USING_ARDUINO
             bool "Compatible with Arduino Ecosystem (RTduino)"

+ 7 - 16
bsp/fm33lc026/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 5 - 14
bsp/frdm-k64f/Kconfig

@@ -1,25 +1,16 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
 # you can change the RTT_ROOT default "../.." to your rtthread_root,
 # example : default "F:/git_repositories/rt-thread"
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 config SOC_FRDM_K64F
     bool

+ 6 - 15
bsp/ft2004/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../.."
+RTT_DIR := ../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
 
 
 config FT2004
@@ -29,4 +20,4 @@ config FT2004
     default y
 
 
-source "./libraries/Kconfig"
+rsource "./libraries/Kconfig"

+ 7 - 16
bsp/ft32/ft32f072xb-starter/Kconfig

@@ -1,22 +1,13 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../.."
+RTT_DIR := ../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"
 

+ 1 - 1
bsp/ft32/ft32f072xb-starter/board/Kconfig

@@ -41,7 +41,7 @@ menu "On-chip Peripheral Drivers"
                 depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
                 default n
         endif
-    source "../libraries/Drivers/Kconfig"
+    rsource "../../libraries/Drivers/Kconfig"
 
 endmenu
 

+ 5 - 14
bsp/fujitsu/mb9x/mb9bf500r/Kconfig

@@ -1,19 +1,10 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../../"
+RTT_DIR := ../../../../
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"

+ 5 - 14
bsp/fujitsu/mb9x/mb9bf506r/Kconfig

@@ -1,19 +1,10 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../../"
+RTT_DIR := ../../../../
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"

+ 5 - 14
bsp/fujitsu/mb9x/mb9bf568r/Kconfig

@@ -1,19 +1,10 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../../"
+RTT_DIR := ../../../../
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"

+ 5 - 14
bsp/fujitsu/mb9x/mb9bf618s/Kconfig

@@ -1,19 +1,10 @@
 mainmenu "RT-Thread Project Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../../"
+RTT_DIR := ../../../../
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"

+ 7 - 16
bsp/gd32/arm/gd32103c-eval/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 1 - 1
bsp/gd32/arm/gd32103c-eval/board/Kconfig

@@ -200,7 +200,7 @@ menu "On-chip Peripheral Drivers"
                 endif
         endif
 
-    source "../libraries/gd32_drivers/Kconfig"
+    rsource "../../libraries/gd32_drivers/Kconfig"
 
 endmenu
 

+ 7 - 16
bsp/gd32/arm/gd32105c-eval/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 1 - 1
bsp/gd32/arm/gd32105c-eval/board/Kconfig

@@ -196,7 +196,7 @@ menu "On-chip Peripheral Drivers"
                 endif
         endif
 
-    source "../libraries/gd32_drivers/Kconfig"
+    rsource "../../libraries/gd32_drivers/Kconfig"
 
 endmenu
 

+ 7 - 16
bsp/gd32/arm/gd32105r-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 1 - 1
bsp/gd32/arm/gd32105r-start/board/Kconfig

@@ -204,7 +204,7 @@ menu "On-chip Peripheral Drivers"
                 endif
         endif
 
-    source "../libraries/gd32_drivers/Kconfig"
+    rsource "../../libraries/gd32_drivers/Kconfig"
 
 endmenu
 

+ 7 - 16
bsp/gd32/arm/gd32107c-eval/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 1 - 1
bsp/gd32/arm/gd32107c-eval/board/Kconfig

@@ -196,7 +196,7 @@ menu "On-chip Peripheral Drivers"
                 endif
         endif
 
-    source "../libraries/gd32_drivers/Kconfig"
+    rsource "../../libraries/gd32_drivers/Kconfig"
 
 endmenu
 

+ 7 - 16
bsp/gd32/arm/gd32205r-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 1 - 1
bsp/gd32/arm/gd32205r-start/board/Kconfig

@@ -199,7 +199,7 @@ menu "On-chip Peripheral Drivers"
                 endif
         endif
 
-    source "../libraries/gd32_drivers/Kconfig"
+    rsource "../../libraries/gd32_drivers/Kconfig"
 
 endmenu
 

+ 7 - 16
bsp/gd32/arm/gd32207i-eval/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

+ 1 - 1
bsp/gd32/arm/gd32207i-eval/board/Kconfig

@@ -230,7 +230,7 @@ menu "On-chip Peripheral Drivers"
                 endif
         endif
 
-    source "../libraries/gd32_drivers/Kconfig"
+    rsource "../../libraries/gd32_drivers/Kconfig"
 
 endmenu
 

+ 7 - 16
bsp/gd32/arm/gd32303c-start/Kconfig

@@ -1,21 +1,12 @@
 mainmenu "RT-Thread Configuration"
 
-config BSP_DIR
-    string
-    option env="BSP_ROOT"
-    default "."
+BSP_DIR := .
 
-config RTT_DIR
-    string
-    option env="RTT_ROOT"
-    default "../../../.."
+RTT_DIR := ../../../..
 
-config PKGS_DIR
-    string
-    option env="PKGS_ROOT"
-    default "packages"
+PKGS_DIR := packages
 
-source "$RTT_DIR/Kconfig"
-source "$PKGS_DIR/Kconfig"
-source "../libraries/Kconfig"
-source "board/Kconfig"
+source "$(RTT_DIR)/Kconfig"
+osource "$PKGS_DIR/Kconfig"
+rsource "../libraries/Kconfig"
+rsource "board/Kconfig"

Some files were not shown because too many files changed in this diff