Skip to content

Commit d28a74d

Browse files
committed
Move certificate bundle and binary blob in the sketch build directory
1 parent bf71400 commit d28a74d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

combine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
partitionData = open("UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/UNOR4USBBridge.ino.partitions.bin", "rb").read()
77
bootApp = open("boot/boot_app0.bin", "rb").read()
88
appData = open("UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/UNOR4USBBridge.ino.bin", "rb").read()
9-
certsData = open("x509_crt_bundle", "rb").read()
9+
certsData = open("UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/x509_crt_bundle", "rb").read()
1010

1111
# 0x000000 bootloader
1212
# 0x008000 partitions
@@ -39,7 +39,7 @@
3939
outputData[0x3C0000 + i] = certsData[i]
4040

4141

42-
outputFilename = "S3.bin"
42+
outputFilename = "UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/S3.bin"
4343
if (len(sys.argv) > 1):
4444
outputFilename = sys.argv[1]
4545

export.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# modify esp32 platform.txt from g++11 to gcc+17
2-
rm -f S3.bin
3-
rm -f x509_crt_bundle
2+
rm -f UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/S3.bin
3+
rm -f UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/x509_crt_bundle
44
echo "Build Sketch"
55
./compile.sh
66
echo "Build certificates bundle"
77
python certificates/gen_crt_bundle.py -i certificates/certificates.pem
8+
mv x509_crt_bundle UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/x509_crt_bundle
89
echo "Combine binaries"
910
python combine.py
1011
echo "Done"

0 commit comments

Comments
 (0)