blob: 9987e3ceb20d2a10e03439736be00d8c166d9c82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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}"
|