Răsfoiți Sursa

Instead of "OPENSOURCE" option, use "STANDALONE" with inverted meaning.

STANDALONE is the default.
Paul Sokolovsky 10 ani în urmă
părinte
comite
1bbca16850
1 a modificat fișierele cu 5 adăugiri și 5 ștergeri
  1. 5 5
      Makefile

+ 5 - 5
Makefile

@@ -1,6 +1,6 @@
 TOP=$(PWD)
 TOP=$(PWD)
 TOOLCHAIN=$(TOP)/xtensa-lx106-elf
 TOOLCHAIN=$(TOP)/xtensa-lx106-elf
-OPENSOURCE=n
+STANDALONE=y
 
 
 all: sdk_patch $(TOOLCHAIN)/lib/libhal.a $(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc
 all: sdk_patch $(TOOLCHAIN)/lib/libhal.a $(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc
 	@echo
 	@echo
@@ -8,14 +8,14 @@ all: sdk_patch $(TOOLCHAIN)/lib/libhal.a $(TOOLCHAIN)/bin/xtensa-lx106-elf-gcc
 	@echo
 	@echo
 	@echo 'export PATH=$(TOOLCHAIN)/bin:$$PATH'
 	@echo 'export PATH=$(TOOLCHAIN)/bin:$$PATH'
 	@echo
 	@echo
-ifeq ($(OPENSOURCE),y)
+ifneq ($(STANDALONE),y)
 	@echo "Espressif ESP8266 SDK is installed. Toolchain contains only Open Source components"
 	@echo "Espressif ESP8266 SDK is installed. Toolchain contains only Open Source components"
 	@echo "To link external proprietary libraries add:"
 	@echo "To link external proprietary libraries add:"
 	@echo
 	@echo
 	@echo "xtensa-lx106-elf-gcc -I$(TOP)/sdk/include -L$(TOP)/sdk/lib"
 	@echo "xtensa-lx106-elf-gcc -I$(TOP)/sdk/include -L$(TOP)/sdk/lib"
 	@echo
 	@echo
 else
 else
-	@echo "Espressif ESP8266 SDK is installed, additional blobs are installed into the toolchain"
+	@echo "Espressif ESP8266 SDK is installed, its libraries and headers are merged with the toolchain"
 	@echo
 	@echo
 endif
 endif
 
 
@@ -56,10 +56,10 @@ toolchain: esp_iot_sdk_v0.9.2/.dir
 	sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
 	sed -r -i s%CT_INSTALL_DIR_RO=y%"#"CT_INSTALL_DIR_RO=y% .config
 	echo CT_STATIC_TOOLCHAIN=y >> .config
 	echo CT_STATIC_TOOLCHAIN=y >> .config
 	./ct-ng build
 	./ct-ng build
-ifneq ($(OPENSOURCE),y)
+ifeq ($(STANDALONE),y)
 	@echo "Installing additional SDK headers"
 	@echo "Installing additional SDK headers"
 	@cp -Rfv sdk/include/* $(TOOLCHAIN)/xtensa-lx106-elf/usr/include/
 	@cp -Rfv sdk/include/* $(TOOLCHAIN)/xtensa-lx106-elf/usr/include/
-	@echo "Installing additional SDK blobs"
+	@echo "Installing additional SDK libraries"
 	@cp -Rfv sdk/lib/* $(TOOLCHAIN)/xtensa-lx106-elf/lib/
 	@cp -Rfv sdk/lib/* $(TOOLCHAIN)/xtensa-lx106-elf/lib/
 endif
 endif