Sam Price created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1548

Project:Branches: TheSamPrice/rtems:esp32c3-chip-header-install to 
rtems/rtos/rtems:main
Author: Sam Price

`bspesp32c3db.yml` installs `chip_definitions.h` to 
`${BSP_INCLUDEDIR}/${ESPRESSIF_CHIP_VARIANT}`, but `ESPRESSIF_CHIP_VARIANT` is 
not defined anywhere. The header therefore lands in `${BSP_INCLUDEDIR}` itself. 
`<bsp/irq.h>` includes it as `c3/chip_definitions.h`, so any application that 
includes `<bsp/irq.h>` against the installed BSP fails to compile:

```
fatal error: c3/chip_definitions.h: No such file or directory
```

This MR adds the missing `ESPRESSIF_CHIP_VARIANT` option, set to `c3` for 
esp32c3db.

Tested by building and installing `riscv/esp32c3db` with and without the 
change, then compiling a file that includes `<bsp/irq.h>` against the installed 
BSP. Before the change, the header is installed as 
`lib/include/chip_definitions.h` and the include fails. After it, the header is 
at `lib/include/c3/chip_definitions.h` and the include compiles. Not tested on 
hardware.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1548
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-6nelyvahztggx70wpfz8px10g-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to