From 5ec5f5321ff662eeaca0e499001980e45c96f469 Mon Sep 17 00:00:00 2001 From: Dong Heng Date: Wed, 30 Jan 2019 17:21:31 +0800 Subject: [PATCH] fix(esp8266): Fix compile script global varible error --- components/esp8266/Makefile.projbuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/esp8266/Makefile.projbuild b/components/esp8266/Makefile.projbuild index d90d587bf..06498487a 100644 --- a/components/esp8266/Makefile.projbuild +++ b/components/esp8266/Makefile.projbuild @@ -91,8 +91,13 @@ OTA2_BIN := ./build/$(PROJECT_NAME).app2.bin OTA_V2_TO_V3_BIN := ./build/$(PROJECT_NAME).v2_to_v3.ota.bin -CONFIG_APP2_OFFSET ?= $(CONFIG_APP1_OFFSET) -CONFIG_APP2_SIZE ?= $(CONFIG_APP1_SIZE) +ifndef CONFIG_APP2_OFFSET +CONFIG_APP2_OFFSET := $(CONFIG_APP1_OFFSET) +endif + +ifndef CONFIG_APP2_SIZE +CONFIG_APP2_SIZE := $(CONFIG_APP1_SIZE) +endif OTA1_OFFSET := $(CONFIG_APP1_OFFSET) ifdef CONFIG_ESP8266_BOOT_COPY_APP