mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
ea1005b740
add project property BUILD_COMPONENT_DIRS
34 lines
889 B
Bash
Executable File
34 lines
889 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo
|
|
|
|
for path in \
|
|
"examples/get-started/hello_world" \
|
|
"examples/bluetooth/nimble/blecent"; do
|
|
cd "${IDF_PATH}/${path}"
|
|
|
|
echo "CONFIG_APP_REPRODUCIBLE_BUILD=y" >sdkconfig
|
|
|
|
idf.py -B build_first fullclean build
|
|
idf.py -B build_second fullclean build
|
|
|
|
for item in \
|
|
"partition_table/partition-table.bin" \
|
|
"bootloader/bootloader.bin" \
|
|
"bootloader/bootloader.elf" \
|
|
"bootloader/bootloader.map" \
|
|
"*.bin" \
|
|
"*.elf" \
|
|
"*.map"; do
|
|
diff -s build_first/${item} build_second/${item} # use glob, don't use double quotes
|
|
done
|
|
|
|
# test gdb
|
|
rm -f gdb.txt
|
|
elf_file=$(find build_first -maxdepth 1 -iname '*.elf')
|
|
xtensa-esp32-elf-gdb -x build_first/prefix_map_gdbinit -ex 'set logging on' -ex 'set pagination off' -ex 'list' -ex 'quit' "$elf_file"
|
|
if grep "No such file or directory" gdb.txt; then
|
|
exit 1
|
|
fi
|
|
done
|