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.
This commit is contained in:
Paul Sokolovsky 2016-02-06 11:06:38 +02:00
parent 8c69c5da7e
commit fc69adf64b

View File

@ -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: