Skip to content

makefile: Support the copy of the partition file #753

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Firmware/Tools/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# Builds the RTK support programs
######################################################################

.ONESHELL:
SHELL=/bin/bash

##########
# Source files
##########
Expand Down Expand Up @@ -196,6 +199,14 @@ libraries:
echo ----------------------------------
~/Arduino/arduino-cli lib list

partition: ../app3M_fat9M_16MB.csv
ESP_PATH=/home/$$USER/.arduino15/packages/esp32/hardware/esp32/*
for file in $$ESP_PATH; do \
ESP_VERSION_PATH=$${file}; \
done
ESP_VERSION=$$(basename $$ESP_VERSION_PATH)
cp --verbose $< ~/.arduino15/packages/esp32/hardware/esp32/$$ESP_VERSION/tools/partitions/app3M_fat9M_16MB.csv

RTK: ../RTK_Surveyor/RTK_Surveyor.ino ../RTK_Surveyor/*.h
~/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

Expand Down