-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_script
More file actions
executable file
·17 lines (12 loc) · 894 Bytes
/
build_script
File metadata and controls
executable file
·17 lines (12 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
idf.py all
$IDF_PATH/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate --outdir build/ nvs.csv nvs.bin 0x4000
espsecure.py encrypt_flash_data -k flash_encryption_key.bin -a 0x0 -o build/bootloader/bootloader-reflash-digest{_encrypted,}.bin
espsecure.py encrypt_flash_data -k flash_encryption_key.bin -a 0xF000 -o build/partition_table/partition-table{_encrypted,}.bin
espsecure.py encrypt_flash_data -k flash_encryption_key.bin -a 0x10000 -o build/nvs_enc{_encrypted,}.bin
esptool.py merge_bin -o build/nvs_enc_merged.bin -fm dio -fs 4MB -ff 80m \
0x0 build/bootloader/bootloader-reflash-digest_encrypted.bin \
0xF000 build/partition_table/partition-table_encrypted.bin \
0x10000 build/nvs_enc_encrypted.bin \
0x111000 build/nvs.bin
esptool.py -a no_reset write_flash -fm dio -fs 4MB -ff 80m -e --force 0x0 build/nvs_enc_merged.bin