Selaa lähdekoodia

Add patch for SDK 2.0.0 (20160809).

Jeremy Drake 9 vuotta sitten
vanhempi
commit
e95cd3ae22
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -184,8 +184,10 @@ $(VENDOR_SDK_DIR_1.5.4)/.dir: $(VENDOR_SDK_ZIP_1.5.4)
 
 sdk_patch: $(VENDOR_SDK_DIR)/.dir .sdk_patch_$(VENDOR_SDK)
 
-.sdk_patch_2.0.0: user_rf_cal_sector_set.o
+.sdk_patch_2.0.0: ESP8266_NONOS_SDK_V2.0.0_patch_16_08_09.zip user_rf_cal_sector_set.o
 	echo -e "#undef ESP_SDK_VERSION\n#define ESP_SDK_VERSION 020000" >>$(VENDOR_SDK_DIR)/include/esp_sdk_ver.h
+	$(UNZIP) ESP8266_NONOS_SDK_V2.0.0_patch_16_08_09.zip
+	mv libmain.a libnet80211.a libpp.a $(VENDOR_SDK_DIR_2.0.0)/lib/
 	$(PATCH) -d $(VENDOR_SDK_DIR) -p1 < c_types-c99_sdk_2.patch
 	cd $(VENDOR_SDK_DIR)/lib; mkdir -p tmp; cd tmp; $(TOOLCHAIN)/bin/xtensa-lx106-elf-ar x ../libcrypto.a; cd ..; $(TOOLCHAIN)/bin/xtensa-lx106-elf-ar rs libwpa.a tmp/*.o
 	$(TOOLCHAIN)/bin/xtensa-lx106-elf-ar r $(VENDOR_SDK_DIR)/lib/libmain.a user_rf_cal_sector_set.o
@@ -406,6 +408,8 @@ lib_mem_optimize_150714.zip:
 	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=594"
 Patch01_for_ESP8266_NONOS_SDK_V1.5.2.zip:
 	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=1168"
+ESP8266_NONOS_SDK_V2.0.0_patch_16_08_09.zip:
+	wget --content-disposition "http://bbs.espressif.com/download/file.php?id=1654"
 
 clean-sdk:
 	rm -rf $(VENDOR_SDK_DIR)