1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp8266/vendor/esp-idf
iosabi 7b1f083cd8 esp8266: Download Espressif RTOS SDK as a new RIOT PKG
RIOT-OS uses part of Espressif ESP8266 RTOS SDK to build support for
this CPU. The SDK includes some vendor-provided closed source
pre-compiled libraries that we need to modify to adapt to RIOT-OS
usage. This library modifications was done once and uploaded to a fork
of the vendor repository and was provided as an environment variable.

This patch changes two things:

1. It installs the SDK as a RIOT PKG from the new pkg/esp8266_sdk
directory instead of requiring the user to download it separately.

2. It performs the library modifications (symbol renames) on the pkg
Makefile removing the need to use a fork with the modifications applied
and simplifying the SDK update and future modifications.

This change sets the SDK package version (git SHA) to the same one that
our fork was using as a parent in the vendor repository, meaning that
the output libraries are exactly the same as before.

Tested with
```
ESP8266_RTOS_SDK_DIR=/dev/null USEMODULE=esp_log_startup make -C tests/shell BOARD=esp8266-esp-12x flash
```

and verified that the program works. The boot message now includes:
```
ESP8266-RTOS-SDK Version v3.1-51-g913a06a9
```
confirming the SDK version used.

`/dev/null` in the test is just to make sure that no evaluation of
`ESP8266_RTOS_SDK_DIR` in make is affected by the environment variable
value which would be set to the SDK for people who followed the set up
instructions before this change.

Tested the checkout size:
```bash
$ du -hs build/pkg/esp8266_sdk/
124M	build/pkg/esp8266_sdk/
```
2021-10-23 11:13:38 +00:00
..
bootloader_support/include cpu/esp8266: required vendor RTOS SDK components added 2019-11-14 12:04:21 +01:00
esp8266 cpu/esp: Use API to access sched internals 2020-08-17 14:05:05 +02:00
heap cpu/*: replace #if ENABLE_DEBUG with IS_ACTIVE 2020-11-02 21:34:12 +01:00
log/include cpu/esp8266: required vendor RTOS SDK components added 2019-11-14 12:04:21 +01:00
nvs_flash cpu/esp8266: ESP8266_SDK_DIR renamed 2019-11-14 13:58:44 +01:00
spi_flash cpu/esp8266: ESP8266_SDK_DIR renamed 2019-11-14 13:58:44 +01:00
util/src cpu/esp8266: ESP8266_SDK_DIR renamed 2019-11-14 13:58:44 +01:00
wpa_supplicant esp8266: Download Espressif RTOS SDK as a new RIOT PKG 2021-10-23 11:13:38 +00:00
esp_funcs.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
Makefile cpu/esp8266: required vendor RTOS SDK components added 2019-11-14 12:04:21 +01:00
README.md cpu/esp8266: required vendor RTOS SDK components added 2019-11-14 12:04:21 +01:00
sdkconfig.h cpu/esp8266: required vendor RTOS SDK components added 2019-11-14 12:04:21 +01:00

The files in this directory and all subdirectories are from the ESP8266 RTOS SDK, the official development framework for ESP8266. All of these files are copyright of Espressif Systems (Shanghai) PTE LTD or their respective owners and licensed under the Apache License, Version 2.0. Please refer the copyright notice in these files for details.