mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
Add an option to build applications using the Zephyr SDK by specifying ZEPHYR_TOOLCHAIN_VARIANT="zephyr". This mode works with the zephyr or poky distros (TCMODE is ignored), allowing Zephyr applications to be built alongside a Linux stack. Provide a toolchain-specific inc file for the Zephyr SDK, which configures the dependencies and CMake appropriately. Add Zephyr toolchain variant to CI configuration for qemu-cortex-a53, qemu-cortex-m3 and qemu-x86. Update README.txt Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Tested-by: Jon Mason <jon.mason@arm.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
16 lines
582 B
PHP
16 lines
582 B
PHP
# Additional definitions to use the Zephyr SDK
|
|
|
|
# Configure usage of the Zephyr SDK
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
DEPENDS += "zephyr-sdk-native"
|
|
export ZEPHYR_SDK_INSTALL_DIR="${STAGING_DIR_NATIVE}${prefix}/zephyr-sdk"
|
|
OE_TERMINAL_EXPORTS += "ZEPHYR_SDK_INSTALL_DIR"
|
|
|
|
# The Zephyr SDK does not require a CMake toolchain file
|
|
EXTRA_OECMAKE:append = " -DCMAKE_TOOLCHAIN_FILE="
|
|
deltask generate_toolchain_file
|
|
|
|
# Provide a suitable location to store the toolchain capabilites cache
|
|
ZEPHYR_USER_CACHE_DIR = "${B}/.cache"
|
|
EXTRA_OECMAKE:append = " -DUSER_CACHE_DIR=${ZEPHYR_USER_CACHE_DIR}"
|