summaryrefslogtreecommitdiff
path: root/ota-test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ota-test/Makefile')
-rw-r--r--ota-test/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/ota-test/Makefile b/ota-test/Makefile
index 19bd536..489289e 100644
--- a/ota-test/Makefile
+++ b/ota-test/Makefile
@@ -7,4 +7,14 @@ PROJECT_NAME := ota_test
IDF_PATH=../thirdparty/ESP8266_RTOS_SDK
+ifeq ($(APP),2)
+SDKCONFIG1 = $(PWD)/sdkconfig
+SDKCONFIG2 = $(BUILD_DIR_BASE)/sdkconfig-app2
+SDKCONFIG = $(SDKCONFIG2)
+endif
+
include $(IDF_PATH)/make/project.mk
+
+$(SDKCONFIG2): $(SDKCONFIG1) sdkconfig2
+ echo "Generating sdkconfig for app 2"
+ cat $(SDKCONFIG1) sdkconfig2 > $@