Skip to content

Commit a28a7f1

Browse files
committed
Add default partition table and app selector bin to IDF
1 parent 09f5f72 commit a28a7f1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile.projbuild

+14
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1+
BOOT_APP_BIN_OFFSET := 0xe000
2+
BOOT_APP_BIN_ROOT := $(call dequote,$(COMPONENT_PATH))
3+
BOOT_APP_BIN_PATH := $(call dequote,$(abspath $(BOOT_APP_BIN_ROOT)/$(subst $(quote),,tools/partitions/boot_app0.bin)))
4+
5+
ifndef CONFIG_PARTITION_TABLE_CUSTOM
6+
PARTITION_TABLE_CSV_PATH = $(call dequote,$(abspath $(BOOT_APP_BIN_ROOT)/$(subst $(quote),,tools/partitions/default.csv)))
7+
endif
8+
9+
BOOT_APP_BIN_FLASH_CMD = $(ESPTOOLPY_SERIAL) write_flash $(BOOT_APP_BIN_OFFSET) $(BOOT_APP_BIN_PATH)
10+
ESPTOOL_ALL_FLASH_ARGS += $(BOOT_APP_BIN_OFFSET) $(BOOT_APP_BIN_PATH)
11+
12+
boot-app0:
13+
@echo "Rebooting to APP0"
14+
$(BOOT_APP_BIN_FLASH_CMD)
115

0 commit comments

Comments
 (0)