apache / apache/nuttx

[BUG] esp-hal-3rdparty conflicts with unrelated things

Open
#16,770 3 comments 0 reactions 0 assignees View on GitHub
Arch: xtensa Area: Build system Area: Drivers OS: Mac Type: Bug
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

### Description / Steps to reproduce the issue

arch/xtensa/src/common/espressif/Wireless.mk seems to add a bunch of -I options to the cflags.
it conflicts with unrelated components.

for example, when i was trying to enable `CONFIG_ESPRESSIF_SHA_ACCELERATOR`, i observed the following error.
it seems that this `#include `
https://github.com/apache/nuttx/blob/da72df9ab6872a02a8cbb66ffc342c16cf4d881c/include/crypto/xform.h#L37
picked up arch/xtensa/src/chip/esp-hal-3rdparty/components/wpa_supplicant/src/crypto/md5.h.

```
CC: common/espressif/esp_crypto.c In file included from /Users/yamamoto/git/nut
tx/nuttx/include/crypto/xform.h:37,
from common/espressif/esp_crypto.c:32:
/Users/yamamoto/git/nuttx/nuttx/arch/xtensa/src/chip/esp-hal-3rdparty/components/wpa_supplicant/src/crypto/md5.h:14:27: error: unknown type name 'u8'
14 | int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
| ^~
/Users/yamamoto/git/nuttx/nuttx/arch/xtensa/src/chip/esp-hal-3rdparty/components/wpa_supplicant/src/crypto/md5.h:15:27: error: unknown type name 'u8'
15 | const u8 *addr[], const size_t *len, u8 *mac);
| ^~
```

### On which OS does this issue occur?

[OS: Mac]

### What is the version of your OS?

macOS 15.5

### NuttX Version

master

### Issue Architecture

[Arch: xtensa]

### Issue Area

[Area: Build System], [Area: Drivers]

### Host information

```
No matching array found.
```

### Verification

- [x] I have verified before submitting the report.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.