Files
meta-zephyr/meta-zephyr-core
Sandeep Gundlupet Raju 3c6b6a57b8 zephyr-toolchain-zephyr: Unexport Yocto toolchain variables
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>
2026-09-18 08:38:39 +08:00
..
2026-09-14 10:47:14 +08:00
2026-05-08 17:10:49 +08:00
2025-08-19 09:17:39 +08:00

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