Browse Source

[action] add ci menuconfig check (#9961)

Supper Thomas 3 months ago
parent
commit
0cc4dc4a3d
2 changed files with 8 additions and 6 deletions
  1. 8 1
      .github/workflows/action_tools.yml
  2. 0 5
      components/drivers/usb/cherryusb/Kconfig

+ 8 - 1
.github/workflows/action_tools.yml

@@ -26,6 +26,8 @@ on:
       - '**/*.c'
       - '**/*.h'
       - '**/*.cpp'
+  workflow_dispatch:
+  repository_dispatch:
 
 permissions:
   contents: read # to fetch code (actions/checkout)
@@ -60,7 +62,12 @@ jobs:
 
     - name: Build Tools
       run: |
-        scons --pyconfig-silent -C $TEST_BSP_ROOT
+        scons --pyconfig-silent -C $TEST_BSP_ROOT 2>menuconfig.log
+        cat menuconfig.log
+        if grep -q "warning:" menuconfig.log; then
+          echo "Errors found in menuconfig, failing the build."
+          exit 1
+        fi
         scons -j$(nproc) -C $TEST_BSP_ROOT
 
     - name: Project generate Tools

+ 0 - 5
components/drivers/usb/cherryusb/Kconfig

@@ -229,7 +229,6 @@ if RT_USING_CHERRYUSB
             bool
             prompt "Enable usb cdc ecm driver"
             select RT_USING_LWIP
-            select RT_USING_LWIP212
             select CONFIG_USBHOST_PLATFORM_CDC_ECM
             default n
 
@@ -237,7 +236,6 @@ if RT_USING_CHERRYUSB
             bool
             prompt "Enable usb rndis driver"
             select RT_USING_LWIP
-            select RT_USING_LWIP212
             select CONFIG_USBHOST_PLATFORM_CDC_RNDIS
             default n
 
@@ -245,7 +243,6 @@ if RT_USING_CHERRYUSB
             bool
             prompt "Enable usb cdc ncm driver"
             select RT_USING_LWIP
-            select RT_USING_LWIP212
             select CONFIG_USBHOST_PLATFORM_CDC_NCM
             default n
 
@@ -268,7 +265,6 @@ if RT_USING_CHERRYUSB
             bool
             prompt "Enable usb asix driver"
             select RT_USING_LWIP
-            select RT_USING_LWIP212
             select CONFIG_USBHOST_PLATFORM_ASIX
             default n
 
@@ -276,7 +272,6 @@ if RT_USING_CHERRYUSB
             bool
             prompt "Enable usb rtl8152 driver"
             select RT_USING_LWIP
-            select RT_USING_LWIP212
             select CONFIG_USBHOST_PLATFORM_RTL8152
             default n