Skip to content

Commit 9ac6cbb

Browse files
committed
makefile: Update to build with new and updated libraries, add BT patch
1 parent db12e22 commit 9ac6cbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Firmware/RTK_Everywhere/makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ PARTITION_SRC_PATH=../$(PARTITION_CSV_FILE).csv
7474
PATCH_SRC_PATH=Patch/
7575

7676
# Linux patch destination paths
77+
BT_LIB_DEST_PATH=$(ESP_IDF_PATH)/$(ESP_IDF_VERSION)/esp32/lib/
7778
MBED_LIB_DEST_PATH=$(ESP_IDF_PATH)/$(ESP_IDF_VERSION)/esp32/lib/
7879
NET_EVENT_PATCH_PATH=$(HOME_BOARD_PATH)/hardware/esp32/$(ESP_CORE_VERSION)/libraries/Network/src/
7980
PARTITION_DST_PATH=$(HOME_BOARD_PATH)/hardware/esp32/$(ESP_CORE_VERSION)/tools/partitions/$(PARTITION_CSV_FILE).csv
@@ -165,9 +166,13 @@ $(MBED_LIB_DEST_PATH)libmbedcrypto.a: $(PATCH_SRC_PATH)libmbedcrypto.a
165166
$(MBED_LIB_DEST_PATH)libmbedx509.a: $(PATCH_SRC_PATH)libmbedx509.a
166167
$(COPY) $< $@
167168

169+
$(BT_LIB_DEST_PATH)libbt.a: $(PATCH_SRC_PATH)libbt.a
170+
$(COPY) $< $@
171+
168172
.PHONY: patch
169173

170174
patch:
175+
touch $(PATCH_SRC_PATH)libbt.a
171176
touch $(PATCH_SRC_PATH)libmbedtls.a
172177
touch $(PATCH_SRC_PATH)libmbedtls_2.a
173178
touch $(PATCH_SRC_PATH)libmbedcrypto.a
@@ -189,7 +194,7 @@ form.h: AP-Config/* AP-Config/src/* AP-Config/src/fonts/*
189194
python ../Tools/index_html_zipper.py AP-Config/index.html form.h
190195
python ../Tools/main_js_zipper.py AP-Config/src/main.js form.h
191196

192-
$(RTK_BIN_PATH): RTK_Everywhere.ino *.ino *.h makefile $(PARTITION_DST_PATH) $(MBED_LIB_DEST_PATH)libmbedtls.a $(MBED_LIB_DEST_PATH)libmbedtls_2.a $(MBED_LIB_DEST_PATH)libmbedcrypto.a $(MBED_LIB_DEST_PATH)libmbedx509.a
197+
$(RTK_BIN_PATH): RTK_Everywhere.ino *.ino *.h makefile $(PARTITION_DST_PATH) $(MBED_LIB_DEST_PATH)libmbedtls.a $(MBED_LIB_DEST_PATH)libmbedtls_2.a $(MBED_LIB_DEST_PATH)libmbedcrypto.a $(MBED_LIB_DEST_PATH)libmbedx509.a $(BT_LIB_DEST_PATH)libbt.a
193198
$(CLEAR)
194199
arduino-cli compile --fqbn "esp32:esp32:esp32":DebugLevel=$(DEBUG_LEVEL),PSRAM=enabled RTK_Everywhere.ino \
195200
--warnings default \

0 commit comments

Comments
 (0)