ci: install Hexagon LLVM cross-toolchain for Zephyr CI builds#308
Open
androm3da wants to merge 1 commit into
Open
ci: install Hexagon LLVM cross-toolchain for Zephyr CI builds#308androm3da wants to merge 1 commit into
androm3da wants to merge 1 commit into
Conversation
androm3da
commented
Jun 24, 2026
dkalowsk
approved these changes
Jun 25, 2026
|
@stephanosio or @nashif can either of you trigger the workflow here? I do not have permissions to do so. |
dkalowsk
approved these changes
Jun 25, 2026
Author
|
Tsk - yeah, sorry: the arm toolchain contains the compiler/linker/binutils but no QEMU. Is that a blocker or does it suffice to provide build-only capability for arm? |
Install codelinaro Hexagon LLVM 22.1.8 cross-toolchain for x86_64 and aarch64. Install qemu runtime dependencies. Smoke-test both clang and qemu-system-hexagon during the build. Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Author
I can try building qemu from source in the arm container build, if that's required. I didn't jump at that option because it requires a lot of build dependencies but it's probably doable w/o much trouble. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Install the codelinaro Hexagon LLVM 22.1.8 cross-toolchain from artifacts.codelinaro.org for both x86_64 and aarch64 hosts.
On x86_64 the tarball extracts to x86_64-linux-gnu/; on aarch64 it extracts to aarch64-linux-musl/ and requires the musl package since the aarch64 clang binary links against musl libc. A host/ symlink is created in both cases so that ENV PATH can use a single static path (/opt/toolchains/hexagon/host/bin) regardless of host arch.
The toolchain is used with ZEPHYR_TOOLCHAIN_VARIANT=host and TOOLCHAIN_VARIANT_COMPILER=llvm to build Zephyr for the qemu_hexagon/qemu_hexagon_virt board target.