Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04c731c

Browse files
committed
feat(bootloader): Boot copy OTA is not depend on others
1 parent e634398 commit 04c731c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

components/spi_flash/component.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ endif
1010

1111
CFLAGS += -DPARTITION_QUEUE_HEADER=\"sys/queue.h\"
1212

13-
ifdef CONFIG_ESP8266_OTA_FROM_OLD
1413
ifdef IS_BOOTLOADER_BUILD
1514
COMPONENT_SRCDIRS += port
1615
COMPONENT_OBJS += port/port.o
1716
endif
18-
endif

components/spi_flash/port/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "sdkconfig.h"
1616

17-
#if defined(CONFIG_ESP8266_OTA_FROM_OLD) && defined(BOOTLOADER_BUILD)
17+
#if (defined(CONFIG_ESP8266_OTA_FROM_OLD) || defined(CONFIG_ESP8266_BOOT_COPY_APP)) && defined(BOOTLOADER_BUILD)
1818

1919
#include <string.h>
2020
#include <stdint.h>

0 commit comments

Comments
 (0)