2017-02-11 23:27:18 +02:00
|
|
|
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
|
2018-04-07 09:45:18 +03:00
|
|
|
PARTITION_TABLE_CSV_PATH = $(call dequote,$(abspath $(BOOT_APP_BIN_ROOT)/$(subst $(quote),,tools/partitions/$(CONFIG_ARDUHAL_PARTITION_SCHEME).csv)))
|
2017-02-11 23:27:18 +02:00
|
|
|
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)
|
|
|
|
|
2018-07-15 10:20:01 +02:00
|
|
|
CPPFLAGS += -DARDUINO=10800 -DESP32=1 -DARDUINO_ARCH_ESP32=1 -DBOARD_HAS_PSRAM
|
2017-02-16 00:18:03 +02:00
|
|
|
|
2017-02-11 23:27:18 +02:00
|
|
|
boot-app0:
|
|
|
|
@echo "Rebooting to APP0"
|
|
|
|
$(BOOT_APP_BIN_FLASH_CMD)
|
2017-01-03 11:52:35 +02:00
|
|
|
|