mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
ci: check that custom bootloader overrides original
This commit is contained in:
@@ -238,16 +238,13 @@ EOF
|
|||||||
export PATH="$OLDPATH"
|
export PATH="$OLDPATH"
|
||||||
rm ./python
|
rm ./python
|
||||||
|
|
||||||
print_status "sdkconfig should have contents both files: sdkconfig and sdkconfig.defaults"
|
print_status "Custom bootloader overrides original"
|
||||||
idf.py clean > /dev/null;
|
clean_build_dir
|
||||||
idf.py fullclean > /dev/null;
|
(mkdir components && cd components && cp -r $IDF_PATH/components/bootloader .)
|
||||||
rm -f sdkconfig.defaults;
|
idf.py build
|
||||||
rm -f sdkconfig;
|
grep "$PWD/components/bootloader/subproject/main/bootloader_start.c" build/bootloader/compile_commands.json \
|
||||||
echo "CONFIG_PARTITION_TABLE_OFFSET=0x10000" >> sdkconfig.defaults;
|
|| failure "Custom bootloader source files should be built instead of the original's"
|
||||||
echo "CONFIG_PARTITION_TABLE_TWO_OTA=y" >> sdkconfig;
|
rm -rf components
|
||||||
idf.py reconfigure > /dev/null;
|
|
||||||
grep "CONFIG_PARTITION_TABLE_OFFSET=0x10000" sdkconfig || failure "The define from sdkconfig.defaults should be into sdkconfig"
|
|
||||||
grep "CONFIG_PARTITION_TABLE_TWO_OTA=y" sdkconfig || failure "The define from sdkconfig should be into sdkconfig"
|
|
||||||
|
|
||||||
print_status "All tests completed"
|
print_status "All tests completed"
|
||||||
if [ -n "${FAILURES}" ]; then
|
if [ -n "${FAILURES}" ]; then
|
||||||
|
Reference in New Issue
Block a user