]> granicus.if.org Git - esp-idf/commitdiff
ci: check that custom bootloader overrides original
authorRenz Christian Bagaporo <renz@espressif.com>
Wed, 15 May 2019 06:49:51 +0000 (14:49 +0800)
committerRenz Christian Bagaporo <renz@espressif.com>
Fri, 17 May 2019 07:17:54 +0000 (15:17 +0800)
tools/ci/test_build_system_cmake.sh

index 7474eb8d985bdfd360fbbd6625fcdad112247e54..77abe9bac2a358eca7a1c45c626048a5d40f4321 100755 (executable)
@@ -411,6 +411,14 @@ endmenu\n" >> ${IDF_PATH}/Kconfig;
         || failure "ccache should not be used even when present if --no-ccache is specified"
     rm -f ccache
 
+    print_status "Custom bootloader overrides original"
+    clean_build_dir
+    (mkdir components && cd components && cp -r $IDF_PATH/components/bootloader .)
+    idf.py build
+    grep "$PWD/components/bootloader/subproject/main/bootloader_start.c" build/bootloader/compile_commands.json \
+        || failure "Custom bootloader source files should be built instead of the original's"
+    rm -rf components
+
     print_status "All tests completed"
     if [ -n "${FAILURES}" ]; then
         echo "Some failures were detected:"