Skip to content

Commit 4dd9e0d

Browse files
authored
Merge pull request #744 from jepler/esp8266-sdk-fixes-2.x
Adapt to incompatible changes in the ESP8266 SDK (2.x version)
2 parents cfcbb36 + 1062e19 commit 4dd9e0d

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

esp8266/esp8266_common.ld

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ SECTIONS
7373
_irom0_text_start = ABSOLUTE(.);
7474
*(.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text)
7575

76+
/* Vendor SDK in v2.1.0-7-gb8fd588 started to build these with
77+
-ffunction-sections -fdata-sections, and require routing to
78+
irom via linker:
79+
https://github.com/espressif/ESP8266_NONOS_SDK/commit/b8fd588a33f0319dc135523b51655e97b483b205
80+
*/
81+
82+
*libcrypto.a:(.literal.* .text.*)
83+
*libnet80211.a:(.literal.* .text.*)
84+
*libwpa.a:(.literal.* .text.*)
85+
*libwpa2.a:(.literal.* .text.*)
86+
7687
/* we put some specific text in this section */
7788

7889
*common-hal/*.o*(.literal* .text*)

esp8266/etshal.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
// see http://esp8266-re.foogod.com/wiki/Random_Number_Generator
77
#define WDEV_HWRNG ((volatile uint32_t*)0x3ff20e44)
88

9-
void ets_delay_us();
109
void ets_intr_lock(void);
1110
void ets_intr_unlock(void);
1211
void ets_isr_mask(uint32_t mask);
1312
void ets_isr_unmask(uint32_t mask);
1413
void ets_isr_attach(int irq_no, void (*handler)(void *), void *arg);
1514
void ets_install_putc1();
16-
void uart_div_modify();
1715
void ets_set_idle_cb(void (*handler)(void *), void *arg);
1816

1917
void ets_timer_arm_new(os_timer_t *tim, uint32_t millis, bool repeat, bool is_milli_timer);
@@ -32,12 +30,6 @@ void MD5Init(MD5_CTX *context);
3230
void MD5Update(MD5_CTX *context, const void *data, unsigned int len);
3331
void MD5Final(unsigned char digest[16], MD5_CTX *context);
3432

35-
// These prototypes are for recent SDKs with "malloc tracking"
36-
void *pvPortMalloc(unsigned sz, const char *fname, int line);
37-
void *pvPortZalloc(unsigned sz, const char *fname, int line);
38-
void *pvPortRealloc(void *p, unsigned sz, const char *fname, int line);
39-
void vPortFree(void *p, const char *fname, int line);
40-
4133
uint32_t SPIRead(uint32_t offset, void *buf, uint32_t len);
4234
uint32_t SPIWrite(uint32_t offset, const void *buf, uint32_t len);
4335
uint32_t SPIEraseSector(int sector);

0 commit comments

Comments
 (0)