Просмотр исходного кода

[bsp][Kconfig]在bsp的Kconfig中select组件初始化与user main的选项

yangjie 5 лет назад
Родитель
Сommit
1ef33e66cd
89 измененных файлов с 275 добавлено и 5 удалено
  1. 2 0
      bsp/allwinner_tina/Kconfig
  2. 6 1
      bsp/amebaz/Kconfig
  3. 5 1
      bsp/asm9260t/Kconfig
  4. 6 0
      bsp/at91sam9260/Kconfig
  5. 6 0
      bsp/beaglebone/Kconfig
  6. 6 0
      bsp/ck802/Kconfig
  7. 6 0
      bsp/dm365/Kconfig
  8. 2 0
      bsp/es32f0334/Kconfig
  9. 2 0
      bsp/es32f0654/Kconfig
  10. 6 0
      bsp/gd32303e-eval/Kconfig
  11. 6 0
      bsp/gd32450z-eval/Kconfig
  12. 6 0
      bsp/gd32e230k-start/Kconfig
  13. 6 0
      bsp/gd32vf103v-eval/Kconfig
  14. 5 0
      bsp/gkipc/Kconfig
  15. 6 0
      bsp/hifive1/Kconfig
  16. 6 0
      bsp/imx6sx/cortex-a9/Kconfig
  17. 6 0
      bsp/imx6ul/Kconfig
  18. 2 0
      bsp/imxrt/imxrt1052-atk-commander/board/Kconfig
  19. 2 0
      bsp/imxrt/imxrt1052-fire-pro/board/Kconfig
  20. 2 0
      bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig
  21. 2 0
      bsp/imxrt/imxrt1064-nxp-evk/board/Kconfig
  22. 2 0
      bsp/k210/Kconfig
  23. 2 0
      bsp/lpc1114/Kconfig
  24. 2 0
      bsp/lpc408x/Kconfig
  25. 2 0
      bsp/lpc54114-lite/Kconfig
  26. 2 0
      bsp/lpc54608-LPCXpresso/Kconfig
  27. 6 1
      bsp/ls1cdev/Kconfig
  28. 6 0
      bsp/mm32l07x/Kconfig
  29. 6 0
      bsp/mm32l3xx/Kconfig
  30. 6 0
      bsp/nrf52832/Kconfig
  31. 6 1
      bsp/nuvoton_m05x/Kconfig
  32. 5 0
      bsp/nuvoton_m487/Kconfig
  33. 2 0
      bsp/qemu-vexpress-a9/Kconfig
  34. 2 0
      bsp/qemu-vexpress-gemini/Kconfig
  35. 2 0
      bsp/raspi2/Kconfig
  36. 2 0
      bsp/rv32m1_vega/ri5cy/Kconfig
  37. 2 0
      bsp/stm32/libraries/templates/stm32f0xx/board/Kconfig
  38. 2 0
      bsp/stm32/libraries/templates/stm32f10x/board/Kconfig
  39. 2 0
      bsp/stm32/libraries/templates/stm32f2xx/board/Kconfig
  40. 2 0
      bsp/stm32/libraries/templates/stm32f4xx/board/Kconfig
  41. 2 0
      bsp/stm32/libraries/templates/stm32f7xx/board/Kconfig
  42. 2 0
      bsp/stm32/libraries/templates/stm32h7xx/board/Kconfig
  43. 2 0
      bsp/stm32/libraries/templates/stm32l4xx/board/Kconfig
  44. 2 0
      bsp/stm32/libraries/templates/stm32xx_board_Kconfig
  45. 2 0
      bsp/stm32/stm32f072-st-nucleo/board/Kconfig
  46. 2 0
      bsp/stm32/stm32f091-st-nucleo/board/Kconfig
  47. 2 0
      bsp/stm32/stm32f103-atk-nano/board/Kconfig
  48. 2 0
      bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig
  49. 2 0
      bsp/stm32/stm32f103-dofly-M3S/board/Kconfig
  50. 2 0
      bsp/stm32/stm32f103-dofly-lyc8/board/Kconfig
  51. 2 0
      bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig
  52. 2 0
      bsp/stm32/stm32f103-gizwits-gokitv21/board/Kconfig
  53. 2 0
      bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig
  54. 2 0
      bsp/stm32/stm32f103-mini-system/board/Kconfig
  55. 2 0
      bsp/stm32/stm32f103-yf-ufun/board/Kconfig
  56. 2 0
      bsp/stm32/stm32f107-uc-eval/board/Kconfig
  57. 2 0
      bsp/stm32/stm32f401-st-nucleo/board/Kconfig
  58. 2 0
      bsp/stm32/stm32f405-smdz-breadfruit/board/Kconfig
  59. 2 0
      bsp/stm32/stm32f407-atk-explorer/board/Kconfig
  60. 2 0
      bsp/stm32/stm32f407-st-discovery/board/Kconfig
  61. 2 0
      bsp/stm32/stm32f411-st-nucleo/board/Kconfig
  62. 2 0
      bsp/stm32/stm32f429-armfly-v6/board/Kconfig
  63. 2 0
      bsp/stm32/stm32f429-atk-apollo/board/Kconfig
  64. 2 0
      bsp/stm32/stm32f429-fire-challenger/board/Kconfig
  65. 2 0
      bsp/stm32/stm32f446-st-nucleo/board/Kconfig
  66. 2 0
      bsp/stm32/stm32f469-st-disco/board/Kconfig
  67. 2 0
      bsp/stm32/stm32f746-st-disco/board/Kconfig
  68. 2 0
      bsp/stm32/stm32f767-atk-apollo/board/Kconfig
  69. 2 0
      bsp/stm32/stm32f767-fire-challenger/board/Kconfig
  70. 2 0
      bsp/stm32/stm32f767-st-nucleo/board/Kconfig
  71. 2 0
      bsp/stm32/stm32g071-st-nucleo/board/Kconfig
  72. 2 0
      bsp/stm32/stm32h743-atk-apollo/board/Kconfig
  73. 2 0
      bsp/stm32/stm32l053-st-nucleo/board/Kconfig
  74. 2 0
      bsp/stm32/stm32l432-st-nucleo/board/Kconfig
  75. 2 0
      bsp/stm32/stm32l452-st-nucleo/board/Kconfig
  76. 2 0
      bsp/stm32/stm32l475-atk-pandora/board/Kconfig
  77. 2 0
      bsp/stm32/stm32l475-st-discovery/board/Kconfig
  78. 2 0
      bsp/stm32/stm32l476-st-nucleo/board/Kconfig
  79. 2 0
      bsp/stm32/stm32l496-ali-developer/board/Kconfig
  80. 2 0
      bsp/stm32/stm32l4r9-st-eval/board/Kconfig
  81. 6 0
      bsp/stm32f20x/Kconfig
  82. 5 0
      bsp/stm32f429-disco/Kconfig
  83. 6 0
      bsp/stm32h743-nucleo/Kconfig
  84. 2 0
      bsp/swm320-lq100/Kconfig
  85. 3 1
      bsp/synopsys/emsk_em9d/Kconfig
  86. 6 0
      bsp/tm4c129x/Kconfig
  87. 2 0
      bsp/tms320f28379d/Kconfig
  88. 6 0
      bsp/w60x/Kconfig
  89. 2 0
      bsp/x1000/Kconfig

+ 2 - 0
bsp/allwinner_tina/Kconfig

@@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_TINA
     bool 
     select ARCH_ARM_ARM9
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "$BSP_DIR/drivers/Kconfig"

+ 6 - 1
bsp/amebaz/Kconfig

@@ -29,4 +29,9 @@ source "$ENV_DIR/tools/scripts/cmds/Kconfig"
 source "$BSP_DIR/libraries/Kconfig"
 source "$BSP_DIR/drivers/Kconfig"
 
-select PKG_USING_REALTEK_AMEBA
+config SOC_AMEBAZ
+    bool
+    select PKG_USING_REALTEK_AMEBA
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 5 - 1
bsp/asm9260t/Kconfig

@@ -18,6 +18,11 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_AT91SAM926
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_UART0
     bool "Using RT_USING_UART0"
     default n    
@@ -35,4 +40,3 @@ config RT_USING_LED
 	default y
 	help
 		led blink demo
- 

+ 6 - 0
bsp/at91sam9260/Kconfig

@@ -18,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_AT91SAM926
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y   
+
 config RT_USING_DBGU
     bool "Using RT_USING_DBGU"
     default y    

+ 6 - 0
bsp/beaglebone/Kconfig

@@ -26,6 +26,12 @@ config ENV_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_AM335X
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_UART1
     bool "Using RT_USING_UART1"
     default y

+ 6 - 0
bsp/ck802/Kconfig

@@ -21,6 +21,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_CK802
+    bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 if RT_USING_SERIAL
 
     config RT_USING_UART1

+ 6 - 0
bsp/dm365/Kconfig

@@ -18,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_DM365
+    bool    
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 comment "BSP configure"
 
 config RT_USING_GPIO_DEVICE

+ 2 - 0
bsp/es32f0334/Kconfig

@@ -20,6 +20,8 @@ source "$PKGS_DIR/Kconfig"
 
 config SOC_ES32F0334LT
     bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "drivers/Kconfig"

+ 2 - 0
bsp/es32f0654/Kconfig

@@ -20,6 +20,8 @@ source "$PKGS_DIR/Kconfig"
 
 config SOC_ES32F0654LT
     bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "drivers/Kconfig"

+ 6 - 0
bsp/gd32303e-eval/Kconfig

@@ -18,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_GD32303E
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_USART0
     bool "Using USART0"
     select RT_USING_SERIAL

+ 6 - 0
bsp/gd32450z-eval/Kconfig

@@ -21,6 +21,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_GD32450Z
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config BSP_USING_SDRAM
     bool "Using sdram"
     default y 

+ 6 - 0
bsp/gd32e230k-start/Kconfig

@@ -18,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_GD32E230K
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_USART0
     bool "Using USART0"
     select RT_USING_SERIAL

+ 6 - 0
bsp/gd32vf103v-eval/Kconfig

@@ -18,3 +18,9 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 source "board/Kconfig"
+
+config SOC_GD32VF103
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 5 - 0
bsp/gkipc/Kconfig

@@ -18,6 +18,11 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_GK710
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
 
 choice
     prompt "Device type"

+ 6 - 0
bsp/hifive1/Kconfig

@@ -17,3 +17,9 @@ config PKGS_DIR
 
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
+
+config SOC_FE310
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 6 - 0
bsp/imx6sx/cortex-a9/Kconfig

@@ -26,6 +26,12 @@ config ENV_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_MCIMX6X4
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_UART1
     bool "Using RT_USING_UART1"
     default y

+ 6 - 0
bsp/imx6ul/Kconfig

@@ -24,3 +24,9 @@ source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
 source "$BSP_DIR/drivers/Kconfig"
+
+config SOC_MCIMX6X4
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 2 - 0
bsp/imxrt/imxrt1052-atk-commander/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_IMXRT1052CVL5B
     bool 
     select SOC_MIMXRT1050_SERIES
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "On-chip Peripheral Drivers"

+ 2 - 0
bsp/imxrt/imxrt1052-fire-pro/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_IMXRT1052CVL5B
     bool 
     select SOC_MIMXRT1050_SERIES
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "On-chip Peripheral Drivers"

+ 2 - 0
bsp/imxrt/imxrt1052-nxp-evk/board/Kconfig

@@ -8,6 +8,8 @@ config SOC_MIMXRT1052DVL6B
     bool
     select SOC_MIMXRT1050_SERIES
     select BSP_USING_HYPERFLASH
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "On-chip Peripheral Drivers"

+ 2 - 0
bsp/imxrt/imxrt1064-nxp-evk/board/Kconfig

@@ -13,6 +13,8 @@ config SOC_MIMXRT1064DVL6A
     bool
     select SOC_MIMXRT1064_SERIES
     select BSP_USING_4MFLASH
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "On-chip Peripheral Drivers"

+ 2 - 0
bsp/k210/Kconfig

@@ -22,6 +22,8 @@ config BOARD_K210_EVB
     bool
     select ARCH_RISCV64
     select PKG_USING_KENDRYTE_SDK
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "driver/Kconfig"

+ 2 - 0
bsp/lpc1114/Kconfig

@@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_LPC1114
     bool 
     select ARCH_ARM_CORTEX_M0
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 #source "$BSP_DIR/drivers/Kconfig"

+ 2 - 0
bsp/lpc408x/Kconfig

@@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_LPC4088
     bool 
     select ARCH_ARM_CORTEX_M4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "$BSP_DIR/drivers/Kconfig"

+ 2 - 0
bsp/lpc54114-lite/Kconfig

@@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_LPC54114
     bool 
     select ARCH_ARM_CORTEX_M4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 

+ 2 - 0
bsp/lpc54608-LPCXpresso/Kconfig

@@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_LPC54608
     bool 
     select ARCH_ARM_CORTEX_M4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "$BSP_DIR/drivers/Kconfig"

+ 6 - 1
bsp/ls1cdev/Kconfig

@@ -1,6 +1,5 @@
 mainmenu "RT-Thread Configuration"
 
-
 config BSP_DIR
     string
     option env="BSP_ROOT"
@@ -19,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_1C300
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_SELF_BOOT
     bool "Enable RT-Thread run without bootloader"
     default n

+ 6 - 0
bsp/mm32l07x/Kconfig

@@ -18,3 +18,9 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 source "drivers/Kconfig"
+
+config SOC_MM32L073
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 6 - 0
bsp/mm32l3xx/Kconfig

@@ -18,3 +18,9 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 source "drivers/Kconfig"
+
+config SOC_MM32L373
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 6 - 0
bsp/nrf52832/Kconfig

@@ -18,3 +18,9 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_NRF52832
+    bool
+    select RT_USING_COMPONENTS_INIT
+    # select RT_USING_USER_MAIN
+    default y
+

+ 6 - 1
bsp/nuvoton_m05x/Kconfig

@@ -18,8 +18,13 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_M051
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
 
 config RT_USING_UART0
     bool "Using Uart0"
     select RT_USING_SERIAL
-    default y
+    default y

+ 5 - 0
bsp/nuvoton_m487/Kconfig

@@ -23,3 +23,8 @@ source "$PKGS_DIR/Kconfig"
 
 source "$BSP_DIR/driver/Kconfig"
 
+config SOC_M487
+    bool 
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 2 - 0
bsp/qemu-vexpress-a9/Kconfig

@@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_VEXPRESS_A9
     bool
     select ARCH_ARM_CORTEX_A9
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "$BSP_DIR/drivers/Kconfig"

+ 2 - 0
bsp/qemu-vexpress-gemini/Kconfig

@@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_VEXPRESS_GEMINI
     bool
     select ARCH_ARM_CORTEX_A9
+    select RT_USING_COMPONENTS_INIT
+    # select RT_USING_USER_MAIN
     default y
 
 source "$BSP_DIR/drivers/Kconfig"

+ 2 - 0
bsp/raspi2/Kconfig

@@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
 config BCM2836_SOC
     bool
     select ARCH_ARM_CORTEX_A7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "driver/Kconfig"

+ 2 - 0
bsp/rv32m1_vega/ri5cy/Kconfig

@@ -25,6 +25,8 @@ config SOC_VEGA_RI5CY
 config BOARD_X_FRDM_VEGA
     bool
     select SOC_VEGA_RI5CY
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "driver/Kconfig"

+ 2 - 0
bsp/stm32/libraries/templates/stm32f0xx/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F091RC
     bool
     select SOC_SERIES_STM32F0
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32f10x/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103RB
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32f2xx/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F207VE
     bool
     select SOC_SERIES_STM32F2
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32f4xx/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F407ZG
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32f7xx/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F767IG
     bool
     select SOC_SERIES_STM32F7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32h7xx/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32H743II
     bool
     select SOC_SERIES_STM32H7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32l4xx/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L475VE
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/libraries/templates/stm32xx_board_Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L475VE
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f072-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F072RB
     bool
     select SOC_SERIES_STM32F0
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f091-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F091RC
     bool
     select SOC_SERIES_STM32F0
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-atk-nano/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103RB
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-atk-warshipv3/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103ZE
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-dofly-M3S/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103ZE
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-dofly-lyc8/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103C8
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-fire-arbitrary/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103ZE
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-gizwits-gokitv21/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103C8
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-hw100k-ibox/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103ZE
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-mini-system/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103C8
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f103-yf-ufun/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F103RC
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f107-uc-eval/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F107VC
     bool
     select SOC_SERIES_STM32F1
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f401-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F401RE
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f405-smdz-breadfruit/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F405RG
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f407-atk-explorer/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F407ZG
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f407-st-discovery/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F407VG
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f411-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F411RE
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f429-armfly-v6/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F429BI
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f429-atk-apollo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F429IG
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f429-fire-challenger/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F429IG
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f446-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F446ZE
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f469-st-disco/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F469NI
     bool
     select SOC_SERIES_STM32F4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f746-st-disco/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F746NG
     bool
     select SOC_SERIES_STM32F7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f767-atk-apollo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F767IG
     bool
     select SOC_SERIES_STM32F7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f767-fire-challenger/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F767IG
     bool
     select SOC_SERIES_STM32F7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32f767-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32F767ZI 
     bool
     select SOC_SERIES_STM32F7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32g071-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32G071RB
     bool
     select SOC_SERIES_STM32G0
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32h743-atk-apollo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32H743II
     bool
     select SOC_SERIES_STM32H7
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l053-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L053R8
     bool
     select SOC_SERIES_STM32L0
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l432-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L432KC
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l452-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L452RE
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l475-atk-pandora/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L475VE
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l475-st-discovery/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L475VG
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l476-st-nucleo/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L476RG
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l496-ali-developer/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L496VG
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 2 - 0
bsp/stm32/stm32l4r9-st-eval/board/Kconfig

@@ -3,6 +3,8 @@ menu "Hardware Drivers Config"
 config SOC_STM32L4R9AI
     bool
     select SOC_SERIES_STM32L4
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 menu "Onboard Peripheral Drivers"

+ 6 - 0
bsp/stm32f20x/Kconfig

@@ -24,3 +24,9 @@ config SOC_STM32F2
     default y
 
 source "$BSP_DIR/Drivers/Kconfig"
+
+config SOC_STM32F20X
+    bool
+    # select RT_USING_COMPONENTS_INIT
+    # select RT_USING_USER_MAIN
+    default y

+ 5 - 0
bsp/stm32f429-disco/Kconfig

@@ -23,3 +23,8 @@ source "$PKGS_DIR/Kconfig"
 
 source "$BSP_DIR/drivers/Kconfig"
 
+config SOC_STM32F429
+    bool
+    select RT_USING_COMPONENTS_INIT
+    # select RT_USING_USER_MAIN
+    default y

+ 6 - 0
bsp/stm32h743-nucleo/Kconfig

@@ -18,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_STM32H743
+    bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_UART1
     bool "Using uart1"
     select RT_USING_SERIAL

+ 2 - 0
bsp/swm320-lq100/Kconfig

@@ -20,6 +20,8 @@ source "$PKGS_DIR/Kconfig"
 
 config SOC_SWM320VET7
     bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 source "drivers/Kconfig"

+ 3 - 1
bsp/synopsys/emsk_em9d/Kconfig

@@ -8,7 +8,7 @@ config BSP_DIR
 config RTT_DIR
     string
     option env="RTT_ROOT"
-    default "../.."
+    default "../../.."
 
 config PKGS_DIR
     string
@@ -21,6 +21,8 @@ source "$PKGS_DIR/Kconfig"
 config SOC_EMSK
     bool
     select ARCH_ARC_EM
+    select RT_USING_COMPONENTS_INIT
+    # select RT_USING_USER_MAIN
     default y
 
 source "$BSP_DIR/drivers/Kconfig"

+ 6 - 0
bsp/tm4c129x/Kconfig

@@ -18,6 +18,12 @@ config PKGS_DIR
 source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 
+config SOC_TM4C129
+    bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y
+
 config RT_USING_UART0
     bool "Using RT_USING_UART0"
     default y    

+ 2 - 0
bsp/tms320f28379d/Kconfig

@@ -21,6 +21,8 @@ config PKGS_DIR
 config SOC_TMS320F28X
     bool
     select ARCH_TIDSP_C28X
+    select RT_USING_COMPONENTS_INIT
+    # select RT_USING_USER_MAIN
     default y
 
 source "$RTT_DIR/Kconfig"

+ 6 - 0
bsp/w60x/Kconfig

@@ -27,3 +27,9 @@ source "$RTT_DIR/Kconfig"
 source "$PKGS_DIR/Kconfig"
 source "$ENV_DIR/tools/scripts/cmds/Kconfig"
 source "$BSP_DIR/drivers/Kconfig"
+
+config SOC_W60X
+    bool
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
+    default y

+ 2 - 0
bsp/x1000/Kconfig

@@ -24,6 +24,8 @@ source "$PKGS_DIR/Kconfig"
 config BOARD_X1000_REALBOARD
     bool 
     select ARCH_MIPS_XBURST
+    select RT_USING_COMPONENTS_INIT
+    select RT_USING_USER_MAIN
     default y
 
 config RT_USING_HARD_FLOAT