]> 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>
Mon, 27 May 2019 09:04:23 +0000 (17:04 +0800)
tools/ci/test_build_system_cmake.sh

index 75fb523c4a1080a61b375fb8910bbf275242d736..1c0b0b3e3465d1c44fce62ab401a8cec5c944c7e 100755 (executable)
@@ -365,6 +365,14 @@ EOF
     export PATH="$OLDPATH"
     rm ./python
 
+    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:"