From f98ee40b8133f6ff8de6b8b9cec86e1d4a589745 Mon Sep 17 00:00:00 2001 From: Jeff H Date: Thu, 3 Jan 2019 18:00:36 -0800 Subject: [PATCH] changes for sdk3.x --- Makefile | 14 +++++++------- c_types-c99_sdk_3.patch | 43 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 7 deletions(-) create mode 100644 c_types-c99_sdk_3.patch diff --git a/Makefile b/Makefile index e38502f..4724c30 100644 --- a/Makefile +++ b/Makefile @@ -28,12 +28,13 @@ VENDOR_SDK = master ## master@4899e50 - 4671b17cc9fc6ed6787c2d310daf8accccf29c8d # ## master@4899e50 - 0e2308ff41578f6ad9a73f805ac4a441747d2a8e # ## master@cab958d - 779294b0a220a6bd72c73963d890c2f1d9116b5e # -## ------------------------- v2.2.0 release -------------------------- # -## master@fcdedd6 - f2c63854331c8d46f7ffe944f6697ab204a54379 <-- curr. # +## ------------------------- v2.2.x release -------------------------- # +## master@fcdedd6 - f2c63854331c8d46f7ffe944f6697ab204a54379 <-- 2.2.0 # +## master@fab6c58 - 3ea90190d3092131505c97ac0ddb41d5e8bedefc <-- 2.2.1 # ######################################################################## -REPO_TAG :=v2.2.1 -VENDOR_FULL_SHA :=3ea90190d3092131505c97ac0ddb41d5e8bedefc +REPO_TAG :=v3.0.0-1 +VENDOR_FULL_SHA :=b897db16d7a7a207b82334c7da8a8a6cd888b222 VENDOR_GIT_ZIP :="ESP8266_NONOS_SDK-$(VENDOR_FULL_SHA).zip" VENDOR_ZIP_DL_URI :="https://github.com/someburner/ESP8266_NONOS_SDK/releases/download/$(REPO_TAG)/$(VENDOR_GIT_ZIP)" @@ -233,7 +234,7 @@ postbuild: @cp -f $(TOP)/esp-open-lwip/include/lwipopts.h $(TOOLCHAIN)/xtensa-lx106-elf/sys-include/ @cp -Rf $(TOOLCHAIN)/xtensa-lx106-elf/usr/include/lwip $(TOOLCHAIN)/xtensa-lx106-elf/sys-include/ @cp -Rf $(TOOLCHAIN)/xtensa-lx106-elf/usr/include/arch $(TOOLCHAIN)/xtensa-lx106-elf/sys-include/ - @cp -Rf $(TOOLCHAIN)/xtensa-lx106-elf/usr/include/xtensa/* $(TOOLCHAIN)/xtensa-lx106-elf/sys-include/xtensa/ +# @cp -Rf $(TOOLCHAIN)/xtensa-lx106-elf/usr/include/xtensa/* $(TOOLCHAIN)/xtensa-lx106-elf/sys-include/xtensa/ @echo "Installing vendor SDK libs into sysroot" @cp -f $(TOOLCHAIN)/xtensa-lx106-elf/usr/lib/libhal.a $(TOOLCHAIN)/xtensa-lx106-elf/lib/libhal.a @@ -265,12 +266,11 @@ user_rf_cal_sector_set.o: user_rf_cal_sector_set.c $(TOOLCHAIN)/bin/xtensa-lx106 .sdk_dir_$(VENDOR_SDK): $(VENDOR_SDK_ZIP) -mv -f $(VENDOR_ZIP_DIR) $(VENDOR_SDK_DIR) - -mv License $(VENDOR_SDK_DIR) @touch $@ .sdk_patch_master: user_rf_cal_sector_set.o echo -e "#undef ESP_SDK_VERSION\n#define ESP_SDK_VERSION 020100" >>$(VENDOR_SDK_DIR)/include/esp_sdk_ver.h - $(PATCH) -d $(VENDOR_SDK_DIR) -p1 < c_types-c99_sdk_2.patch + $(PATCH) -d $(VENDOR_SDK_DIR) -p1 < c_types-c99_sdk_3.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 @touch $@ diff --git a/c_types-c99_sdk_3.patch b/c_types-c99_sdk_3.patch new file mode 100644 index 0000000..8e076f1 --- /dev/null +++ b/c_types-c99_sdk_3.patch @@ -0,0 +1,43 @@ +--- a/include/c_types.h.orig 2019-01-03 12:55:06.510555904 -0800 ++++ b/include/c_types.h 2019-01-03 12:57:30.682514496 -0800 +@@ -25,17 +25,19 @@ + #ifndef _C_TYPES_H_ + #define _C_TYPES_H_ + +-typedef unsigned char uint8_t; ++#include ++#include ++//typedef unsigned char uint8_t; + typedef signed char sint8_t; +-typedef signed char int8_t; +-typedef unsigned short uint16_t; ++//typedef signed char int8_t; ++//typedef unsigned short uint16_t; + typedef signed short sint16_t; +-typedef signed short int16_t; +-typedef unsigned int uint32_t; ++//typedef signed short int16_t; ++//typedef unsigned int uint32_t; + typedef signed int sint32_t; +-typedef signed int int32_t; ++//typedef signed int int32_t; + typedef signed long long sint64_t; +-typedef unsigned long long uint64_t; ++//typedef unsigned long long uint64_t; + typedef unsigned long long u_int64_t; + typedef float real32_t; + typedef double real64_t; +@@ -103,10 +105,10 @@ + #define STORE_ATTR __attribute__((aligned(4))) + + #ifndef __cplusplus +-typedef unsigned char bool; ++//typedef unsigned char bool; + #define BOOL bool +-#define true (1) +-#define false (0) ++//#define true (1) ++//#define false (0) + #define TRUE true + #define FALSE false +