ssekar15 opened a new pull request, #21940:
URL: https://github.com/apache/nuttx/pull/21940
## Summary
Since #21549, TriCore no longer builds with make. The ARCH_HAVE_PPRS help in
arch/tricore/Kconfig starts with --help--, which kconfig-frontends rejects, and
the public irq.h includes the iLLD IfxCpu.h for CPU_PPRS, which the
applications cannot find on TC4xx. This PR fixes the Kconfig keyword and takes
PPRS from arch/csfr.h like the other core registers.
## Impact
TriCore only. Fixes the make builds of all TriCore configurations; no
functional change.
## Testing
I confirm that changes are verified on local setup and works as intended:
* Build Host(s): Linux x86_64, Debian GNU/Linux 12 (bookworm)
* Toolchains: AURIX GCC 11.3.1 (tricore-elf-gcc), TASKING VX-toolset v6.4r1
(TC3x), TASKING SmartCode v10.4r1 (TC4x)
* Build systems: make, cmake (Ninja)
* Target(s): a2g-tc397-5v-tft:nsh, triboard_tc4x9_com:nsh
* Hardware: TriBoard TC4x7 COM V3.0 for the triboard_tc4x9_com image
* Passes tools/checkpatch.sh.
Before, on master:
```
$ ./tools/configure.sh triboard_tc4x9_com:nsh
arch/tricore/Kconfig:154: syntax error
arch/tricore/Kconfig:153: unknown option "--help--"
make: *** [tools/Unix.mk:766: olddefconfig] Error 1
ERROR: failed to refresh
```
```
In file included from nuttx/include/arch/irq.h:50,
from nuttx/include/nuttx/irq.h:39,
from nuttx/include/errno.h:36,
from ./nsh_main.c:29:
.../iLLD/TC4xx/Tricore/Cpu/Std/IfxCpu.h:68:10: fatal error:
_Impl/IfxCpu_cfg.h: No such file or directory
```
After:
| Board | GCC make | GCC cmake | TASKING make | TASKING cmake |
|---|---|---|---|---|
| a2g-tc397-5v-tft:nsh | pass | pass | pass | pass |
| triboard_tc4x9_com:nsh | pass | pass | pass | pass |
ostest on the TriBoard TC4x7 (triboard_tc4x9_com:nsh, GCC), which uses the
PPRS path:
```
nsh> uname -a
NuttX 10.4.0 e59ea59f79d-dirty Nov 17 2026 13:54:57 tricore
triboard_tc4x9_com
nsh> ostest
...
ostest_main: Exiting with status 0
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]