1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp_common
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
..
esp-now esp-now: avoid explicit cast to netdev 2021-07-09 10:38:34 +02:00
esp-wifi esp-wifi: avoid explicit cast to netdev 2021-07-09 10:38:34 +02:00
freertos treewide: Remove excessive newlines 2021-08-13 19:50:38 +02:00
include cpu/esp*: fix doxygen grouping warnings 2021-09-11 12:45:15 +02:00
periph Merge pull request #15902 from maribu/spi-api-change-1 2021-09-02 08:50:56 +02:00
vendor cpu/esp*: move some vendor/esp code to cpu/esp_common 2020-02-21 09:09:34 +01:00
doc.txt cpu/esp_common: added for common files for ESP SoC 2018-12-27 17:28:46 +01:00
esp_events.c esp/esp*: move common code to cpu/esp_common 2020-02-21 09:09:34 +01:00
exceptions.c cpu/*: realign ENABLE_DEBUG 2020-10-23 00:46:26 +02:00
irq_arch.c cpu/esp_common: implement irq_is_enabled() 2021-08-25 08:01:05 +02:00
Kconfig treewide: model newlib as a FEATURE 2021-01-27 09:24:25 +01:00
lib_printf.c esp8266: Download Espressif RTOS SDK as a new RIOT PKG 2021-10-23 11:13:38 +00:00
Makefile cpu/esp8266: move esp_wifi to cpu/esp_common 2020-02-21 09:09:34 +01:00
Makefile.dep treewide: model newlib as a FEATURE 2021-01-27 09:24:25 +01:00
Makefile.features treewide: model newlib as a FEATURE 2021-01-27 09:24:25 +01:00
Makefile.include esp8266: Download Espressif RTOS SDK as a new RIOT PKG 2021-10-23 11:13:38 +00:00
syscalls.c cpu/esp_common: fix bootloop on ESP8266 2021-07-13 20:48:01 +02:00
thread_arch.c cpu/esp*: Fix cast alignment issues 2020-11-18 10:19:23 +01:00
tools.c esp/esp*: move common code to cpu/esp_common 2020-02-21 09:09:34 +01:00