Skip to content

Commit e20b3cc

Browse files
committed
makefile: Support the copy of the partition file
1 parent 31d301f commit e20b3cc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Firmware/Tools/makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
# Builds the RTK support programs
55
######################################################################
66

7+
.ONESHELL:
8+
SHELL=/bin/bash
9+
710
##########
811
# Source files
912
##########
@@ -196,6 +199,14 @@ libraries:
196199
echo ----------------------------------
197200
~/Arduino/arduino-cli lib list
198201

202+
partition: ../app3M_fat9M_16MB.csv
203+
ESP_PATH=/home/$$USER/.arduino15/packages/esp32/hardware/esp32/*
204+
for file in $$ESP_PATH; do \
205+
ESP_VERSION_PATH=$${file}; \
206+
done
207+
ESP_VERSION=$$(basename $$ESP_VERSION_PATH)
208+
cp --verbose $< ~/.arduino15/packages/esp32/hardware/esp32/$$ESP_VERSION/tools/partitions/app3M_fat9M_16MB.csv
209+
199210
RTK: ../RTK_Surveyor/RTK_Surveyor.ino ../RTK_Surveyor/*.h
200211
~/Arduino/arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=$(DEBUG_LEVEL) ../RTK_Surveyor/RTK_Surveyor.ino --build-property build.partitions=app3M_fat9M_16MB --build-property upload.maximum_size=3145728 --build-property "compiler.cpp.extra_flags=\"-DPOINTPERFECT_TOKEN=$(POINTPERFECT_TOKEN)\" \"-DFIRMWARE_VERSION_MAJOR=$(FIRMWARE_VERSION_MAJOR)\" \"-DFIRMWARE_VERSION_MINOR=$(FIRMWARE_VERSION_MINOR)\" \"-DENABLE_DEVELOPER=$(ENABLE_DEVELOPER)\"" --export-binaries
201212

0 commit comments

Comments
 (0)