1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/cpu/esp32
bors[bot] 812c216f0c
Merge #19450 #19476
19450: cpu/esp32: fix compilation issues with GCC 12.2 r=benpicco a=gschorcht

### Contribution description

This PR provides the changes in `cpu/esp32` and `cpu/esp_common` to fix the compilation issues with GCC v12.2.  It is required as the first step in the preparation of the upgrade to ESP-IDF version 5.1.

**Please note**: Insead of fixing the ESP-IDF 4.4 code itself by a big bunch of patches to fix the compilation problems with GCC v12.2, it temporarily disables some warnings. The reason is that the ESP-IDF 5.1 requires GCC v12.2 and should be fixed for this compiler version by the vendor.

### Testing procedure

Green CI

The change were already tested with all ESP-specific modules like `esp_now`, `esp_wifi`, `esp_spi`  and `esp_ble` for all supported ESP platforms.

### Issues/PRs references

Prerequisite for https://github.com/RIOT-OS/riotdocker/pull/227
Fixes issue #19421

19476: native/syscalls: rename real_clock_gettime to clock_gettime r=benpicco a=Teufelchen1

### Contribution description

When compiling RIOT for native using a recent LLVM and enabling ASAN, one might encounter "Duplicated symbol".

This is due to a name clash with `real_clock_gettime()` in compiler-rt from [LLVM](f50246da65), I renamed RIOTs `real_clock_gettime` and just default to the posix function `clock_gettime`. The wrapper existed, most likely, for consistency only.

(The best solution would probably to convince the LLVM folks to declare their symbol as `static` and refactor a bit)

### Testing procedure

Passing CI should be enough.


Co-authored-by: Gunar Schorcht <gunar@schorcht.net>
Co-authored-by: Teufelchen1 <bennet.blischke@haw-hamburg.de>
2023-04-17 20:18:02 +00:00
..
bin cpu/esp32: compile bootloader from ESP-IDF v4.4 source 2022-06-01 13:31:00 +02:00
bootloader cpu/esp32: disable warnings in ESP-IDF for gcc 12.2 2023-04-17 07:32:48 +02:00
esp-ble-nimble cpu/esp32: add some debugging info in esp_ble_nimble 2022-08-24 09:05:25 +02:00
esp-eth Revert "esp32/eth: Don't overwrite queued event with RX packet" 2022-09-03 14:11:06 +02:00
esp-idf cpu/esp32: disable warnings in ESP-IDF for gcc 12.2 2023-04-17 07:32:48 +02:00
esp-idf-api cpu/esp32: remove ESP-IDF periph_ctrl interface API 2023-03-27 03:10:56 +02:00
freertos cpu/esp*: move freertos/task to cpu/esp_common 2020-02-21 09:09:34 +01:00
include Merge #19450 #19476 2023-04-17 20:18:02 +00:00
ld cpu/esp32: add flashpage support to linker scripts 2023-01-07 10:38:52 +01:00
periph cpu/esp32: fix compilation with gcc 12.2 2023-04-17 07:32:48 +02:00
stdio_usb_serial_jtag cpu/esp32: fix stdio_usb_serial_jtag for ESP32-C3 2023-03-22 00:35:49 +01:00
vendor/include cpu/esp32: add vendor header file for periph_usbdev 2022-09-27 01:00:57 +02:00
doc_esp32.txt cpu/esp32: split the doc into ESP32x and ESP32 parts 2022-07-18 16:16:26 +02:00
doc_esp32c3.txt cpu/esp32: add ESP32-C3 support in doc 2022-07-21 12:29:38 +02:00
doc_esp32s2.txt cpu/esp32: fix DAC documentation for ESP32-S2 2023-02-17 12:39:10 +01:00
doc_esp32s3.txt boards: add support for ESP32 ProS3 board 2023-02-06 16:19:11 +01:00
doc.txt Merge #19284 #19286 2023-02-17 17:00:56 +00:00
esp32.config cpu/esp32: model Kconfig 2021-12-10 18:54:07 +01:00
esp_ztimer.c cpu/esp32: platform-independent formatting in DEBUG 2022-07-18 13:51:33 +02:00
irq_arch.c cpu/esp32: add interrupt for RMT 2023-03-28 18:50:48 +02:00
Kconfig cpu/esp32: add RTM feature 2023-03-28 18:50:48 +02:00
Kconfig.common cpu/esp32: add BLE support for ESP32-C3 2022-08-26 17:10:42 +02:00
Kconfig.esp32 cpu/esp32: add RTM feature 2023-03-28 18:50:48 +02:00
Kconfig.esp32c3 cpu/esp32: add RTM feature 2023-03-28 18:50:48 +02:00
Kconfig.esp32s2 cpu/esp32: add RTM feature 2023-03-28 18:50:48 +02:00
Kconfig.esp32s3 cpu/esp32: add RTM feature 2023-03-28 18:50:48 +02:00
Makefile cpu/esp32: add esp-bootloader-reset 2023-02-02 10:56:40 +01:00
Makefile.default cpu: make pm_layered a DEFAULT_MODULE 2021-01-27 13:21:20 +01:00
Makefile.dep cpu/esp32: add esp-bootloader-reset 2023-02-02 10:56:40 +01:00
Makefile.features cpu/esp32: add RTM feature 2023-03-28 18:50:48 +02:00
Makefile.include cpu/esp32: fix compilation with gcc 12.2 2023-04-17 07:32:48 +02:00
startup.c cpu/esp32: fix compilation with gcc 12.2 2023-04-17 07:32:48 +02:00
syscalls.c cpu/esp32: fix compilation with gcc 12.2 2023-04-17 07:32:48 +02:00
usb_reset.c cpu/esp32: add esp-bootloader-reset 2023-02-02 10:56:40 +01:00