mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-09-19 12:49:31 +02:00
When ZEPHYR_TOOLCHAIN_VARIANT is "zephyr", INHIBIT_DEFAULT_DEPS is set and no Yocto cross toolchain is built for the recipe. BitBake still exports CC, LD, AR and friends into the task environment, where they reference aarch64-yocto-elf-* binaries that do not exist. Zephyr ignores these and uses the SDK, but external module build systems invoked from the Zephyr build do not. Trusted Firmware-A is built by its own Makefile, which prefers CC/LD/AR from the environment over the CROSS_COMPILE value pointing at the Zephyr SDK. Its tool detection then fails and expands a multi-line warning macro into the tool identifier variable, leaving embedded newlines that break a later conditional: lib/libfdt/libfdt.mk:16: *** invalid syntax in conditional. Stop. Set the unexport flag on the toolchain variables so they are unset in the task environment and TF-A falls back to CROSS_COMPILE. AI-Generated: GitHub Copilot (Claude Opus 5) Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
meta-zephyr-core
This layer enables Zephyr build metadata such as zephyr scripts, kernel include files, zephyr applications recipes and bitbake class to support qemu boot.
For more details see Building Instructions