zyfeier opened a new pull request, #21188:
URL: https://github.com/apache/nuttx/pull/21188
## Summary
* Why: the TASKING cmake build of arch/tricore has never worked on master
-- the toolchain file, chip flags, link setup and library handling are all
incomplete or broken.
* What: 8 build fixes ported from a tree that builds TriCore with the
TASKING compilers daily: Ninja response file support, the link configuration,
the toolchain library lookup, the C++ toolchain integration, the TC4xx TASKING
flags, the link optimization scoping and the debug symbol level handling.
* How: each commit is a standalone fix; together they take the TASKING
cmake build from a configure failure to a full compile.
Depends on #21131 (the tc3xx pin map rename is needed to compile the iLLD
sources).
## Impact
* Is new feature added? Is existing feature changed? YES -- the TASKING
cmake toolchain build becomes functional.
* Impact on user (will user need to adapt to change)? NO
* Impact on build (will build process change)? YES -- arch/tricore TASKING
cmake builds now work; GNU builds are unchanged.
* Impact on hardware (will arch(s) / board(s) / driver(s) change)? YES --
arch/tricore only.
* Impact on documentation (is update required / provided)? NO
* Impact on security (any sort of implications)? NO
* Impact on compatibility (backward/forward/interoperability)? NO
## Testing
I confirm that changes are verified on local setup and works as intended:
* Build Host(s): Linux x86_64
* Toolchains: GCC 11.3.1 (tricore-elf-gcc), TASKING VX-toolset v6.3r1
(TC3x), TASKING SmartCode v10.4r1 (TC4x)
* Target(s): tricore, a2g-tc397-5v-tft:nsh and triboard_tc4x9_com:nsh
(GNU, defconfigs in tree)
Testing logs (GNU builds, both PASS):
```
tc397 nsh (a2g-tc397-5v-tft, tricore-elf-gcc 11.3.1, cmake+ninja):
Linking: nuttx, 4363212 bytes
tc4xx nsh (triboard_tc4x9_com, tricore-elf-gcc 11.3.1, cmake+ninja):
Linking: nuttx, 4673516 bytes
```
In addition, with a local nsh_tasking configuration (to be contributed in
a follow-up series), the TASKING build compiles through all translation units
of the nsh configuration on both TC3x (VX-toolset) and TC4x (SmartCode); the
final link needs the runtime library and linker script fixes of that follow-up
series.
--
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]