-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add CONFIG_APP_REPRODUCIBLE_BUILD menuconfig option to produce…
… reproducible binaries
- Loading branch information
Showing
8 changed files
with
63 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/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.defaults | ||
rm -f 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 | ||
done |