Răsfoiți Sursa

Add support for SDK 1.0.1 release

Includes C99 patch (wish they'd accept that upstream!)

Doesn't need the SSL patch from the beta's
Simon John 10 ani în urmă
părinte
comite
941d14f821
1 a modificat fișierele cu 10 adăugiri și 1 ștergeri
  1. 10 1
      Makefile

+ 10 - 1
Makefile

@@ -1,12 +1,14 @@
 TOP = $(PWD)
 TOOLCHAIN = $(TOP)/xtensa-lx106-elf
-VENDOR_SDK = 1.0.0
+VENDOR_SDK = 1.0.1
 
 UNZIP = unzip -q -o
 
 VENDOR_SDK_ZIP = $(VENDOR_SDK_ZIP_$(VENDOR_SDK))
 VENDOR_SDK_DIR = $(VENDOR_SDK_DIR_$(VENDOR_SDK))
 
+VENDOR_SDK_ZIP_1.0.1 = esp_iot_sdk_v1.0.1_15_04_24.zip
+VENDOR_SDK_DIR_1.0.1 = esp_iot_sdk_v1.0.1
 VENDOR_SDK_ZIP_1.0.1b2 = esp_iot_sdk_v1.0.1_b2_15_04_10.zip
 VENDOR_SDK_DIR_1.0.1b2 = esp_iot_sdk_v1.0.1_b2
 VENDOR_SDK_ZIP_1.0.1b1 = esp_iot_sdk_v1.0.1_b1_15_04_02.zip
@@ -56,6 +58,10 @@ libcirom: $(TOOLCHAIN)/xtensa-lx106-elf/sysroot/lib/libcirom.a
 
 sdk_patch: .sdk_patch_$(VENDOR_SDK)
 
+.sdk_patch_1.0.1:
+	patch -d $(VENDOR_SDK_DIR_1.0.1) -p1 < c_types-c99.patch
+	@touch $@
+
 .sdk_patch_1.0.1b2: libssl.zip esp_iot_sdk_v1.0.1_b2/.dir
 	$(UNZIP) $<
 	mv libssl/libssl.a $(VENDOR_SDK_DIR_1.0.1b2)/lib/
@@ -122,6 +128,9 @@ $(VENDOR_SDK_DIR)/.dir: $(VENDOR_SDK_ZIP)
 	-mv License $(VENDOR_SDK_DIR)
 	touch $@
 
+esp_iot_sdk_v1.0.1_15_04_24.zip:
+	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=325"
+
 esp_iot_sdk_v1.0.1_b2_15_04_10.zip:
 	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=293"