]> granicus.if.org Git - esp-idf/commitdiff
ethernet: test apps can build with ethernet disabled
authorsuda-morris <362953310@qq.com>
Wed, 18 Sep 2019 10:28:18 +0000 (18:28 +0800)
committerbot <bot@espressif.com>
Wed, 25 Sep 2019 06:34:39 +0000 (06:34 +0000)
tools/ci/test_build_system_cmake.sh

index bbe299b92ff1d2953a601cd0a1bf2a836fbc81bc..d4117384ba7af72bc74841e57d49886deb7d8fb7 100755 (executable)
@@ -362,6 +362,19 @@ function run_tests()
     rm sdkconfig;
     rm sdkconfig.defaults;
 
+    print_status "can build with ethernet component disabled"
+    idf.py clean > /dev/null;
+    idf.py fullclean > /dev/null;
+    rm -f sdkconfig.defaults;
+    rm -f sdkconfig;
+    echo "CONFIG_ETH_USE_SPI_ETHERNET=" >> sdkconfig.defaults;
+    echo "CONFIG_ETH_USE_ESP32_EMAC=" >> sdkconfig.defaults;
+    idf.py reconfigure > /dev/null;
+    idf.py build || failure "Failed to build with ethernet component disabled"
+    assert_built ${APP_BINS} ${BOOTLOADER_BINS} ${PARTITION_BIN}
+    rm sdkconfig;
+    rm sdkconfig.defaults;
+
     print_status "Building a project with CMake library imported and PSRAM workaround, all files compile with workaround"
     # Test for libraries compiled within ESP-IDF
     rm -rf build