From a28a7f12d51c055b0a3b21e4c558316b0e8babfb Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Sat, 11 Feb 2017 23:27:18 +0200 Subject: [PATCH] Add default partition table and app selector bin to IDF --- Makefile.projbuild | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.projbuild b/Makefile.projbuild index 8b137891..82c4263e 100644 --- a/Makefile.projbuild +++ b/Makefile.projbuild @@ -1 +1,15 @@ +BOOT_APP_BIN_OFFSET := 0xe000 +BOOT_APP_BIN_ROOT := $(call dequote,$(COMPONENT_PATH)) +BOOT_APP_BIN_PATH := $(call dequote,$(abspath $(BOOT_APP_BIN_ROOT)/$(subst $(quote),,tools/partitions/boot_app0.bin))) + +ifndef CONFIG_PARTITION_TABLE_CUSTOM +PARTITION_TABLE_CSV_PATH = $(call dequote,$(abspath $(BOOT_APP_BIN_ROOT)/$(subst $(quote),,tools/partitions/default.csv))) +endif + +BOOT_APP_BIN_FLASH_CMD = $(ESPTOOLPY_SERIAL) write_flash $(BOOT_APP_BIN_OFFSET) $(BOOT_APP_BIN_PATH) +ESPTOOL_ALL_FLASH_ARGS += $(BOOT_APP_BIN_OFFSET) $(BOOT_APP_BIN_PATH) + +boot-app0: + @echo "Rebooting to APP0" + $(BOOT_APP_BIN_FLASH_CMD)