Skip to content

Commit 5ec5f53

Browse files
committed
fix(esp8266): Fix compile script global varible error
1 parent b4e5477 commit 5ec5f53

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

components/esp8266/Makefile.projbuild

+7-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,13 @@ OTA2_BIN := ./build/$(PROJECT_NAME).app2.bin
9191

9292
OTA_V2_TO_V3_BIN := ./build/$(PROJECT_NAME).v2_to_v3.ota.bin
9393

94-
CONFIG_APP2_OFFSET ?= $(CONFIG_APP1_OFFSET)
95-
CONFIG_APP2_SIZE ?= $(CONFIG_APP1_SIZE)
94+
ifndef CONFIG_APP2_OFFSET
95+
CONFIG_APP2_OFFSET := $(CONFIG_APP1_OFFSET)
96+
endif
97+
98+
ifndef CONFIG_APP2_SIZE
99+
CONFIG_APP2_SIZE := $(CONFIG_APP1_SIZE)
100+
endif
96101

97102
OTA1_OFFSET := $(CONFIG_APP1_OFFSET)
98103
ifdef CONFIG_ESP8266_BOOT_COPY_APP

0 commit comments

Comments
 (0)