[xtensa] why keeping old HAL files instead of pulling it from the xtensa tools install ? #71445
-
Xtensa HAL found at: exist in the xtensa tools install at: ./tools/RJ-2024.3-linux/XtensaTools/xtensa-elf/include/ Why not use files in the xtensa tools install instead of keeping an old copy at https://github.com/zephyrproject-rtos/hal_xtensa which does not build with recent xtensa tools ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi @henrikbrixandersen , could you help me direct this question to the proper channel or xtensa people ? |
Beta Was this translation helpful? Give feedback.
-
Errr... because if you build with Xtensa tools, hal_xtensa is not being used. And all those files are only used when building with GCC toolchains. |
Beta Was this translation helpful? Give feedback.
-
Coming by: note that the upstream llvm/clang work by Espressif doesn't include the HAL files at all, as it builds a single compiler for all Xtensa targets. I've had some success getting Zephyr to build and run with this compiler (and need to upstream the patches), so the need for the platform headers is going to be present long term regardless. If newer Cadence tools don't like these being on the include path at all, then please file a bug and/or submit a patch to the cmake integration to remove them when ZEPHYR_TOOLCHAIN_VARIANT=xt-clang |
Beta Was this translation helpful? Give feedback.
#77947