From 375aea434ef214a5022e0a3e54fcae3e5e965c9b Mon Sep 17 00:00:00 2001 From: Peter Hoyes Date: Fri, 16 Dec 2022 15:41:47 +0000 Subject: [PATCH] zephyr-core/zephyr-kernel: Inhibit packaging steps with the Zephyr SDK The packaging step includes post-processing of elf files using objcopy and strip from the Yocto toolchain. When using the Zephyr SDK, the Yocto toolchain is explicitly not built so it is not possible to run these steps. Therefore, inhibit them in zephyr-toolchain-zephyr.inc Signed-off-by: Peter Hoyes Signed-off-by: Naveen Saini --- .../recipes-kernel/zephyr-kernel/zephyr-toolchain-zephyr.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-toolchain-zephyr.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-toolchain-zephyr.inc index 9987e3c..a193314 100644 --- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-toolchain-zephyr.inc +++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-toolchain-zephyr.inc @@ -13,3 +13,7 @@ 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}" + +# Inhibit packaging steps that require the Yocto toolchain +INHIBIT_PACKAGE_DEBUG_SPLIT = "1" +INHIBIT_PACKAGE_STRIP = "1"