瀏覽代碼

SDK 1.5.0: Add backwards compatibility library augmentation.

1.5.0 factored out some crypto functions to libcrypto.a, but software built
with older SDK versions oftentimes doesn't link with that lib, so put related
objects back to a lib they were in previously, specifically merge libcrypto.a
content into libwpa.a.

Caveat: this may lead to further issues when using new libwpa2.a, so may need
tweaks in the future.
Paul Sokolovsky 9 年之前
父節點
當前提交
fc69adf64b
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Makefile

+ 1 - 0
Makefile

@@ -168,6 +168,7 @@ sdk_patch: .sdk_patch_$(VENDOR_SDK)
 .sdk_patch_1.5.0:
 	echo -e "#undef ESP_SDK_VERSION\n#define ESP_SDK_VERSION 010500" >>$(VENDOR_SDK_DIR)/include/esp_sdk_ver.h
 	$(PATCH) -d $(VENDOR_SDK_DIR) -p1 < c_types-c99.patch
+	cd $(VENDOR_SDK_DIR_1.5.0)/lib; mkdir -p tmp; cd tmp; ar x ../libcrypto.a; cd ..; ar rs libwpa.a tmp/*.o
 	@touch $@
 
 .sdk_patch_1.4.0: