Skip to contentSkip to conversation

zephyr-image: unify the image generation for tests and samples

PATCH New Bartosz Golaszewski 1 participant 1 message Feb 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zephyr-image: unify the image generation for tests and samples

From: Bartosz Golaszewski <[email protected]>

Reuse the same code that generates zephyr samples for building tests. This allows us to generate .bin files in all cases.

---
 .../recipes-kernel/zephyr-kernel/zephyr-image.inc        | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc +1 -8
index c77692d..2d4c6ff 100644
@@ -1,17 +1,10 @@
-require zephyr-kernel-src.inc
-require zephyr-kernel-common.inc
-
+require zephyr-sample.inc
 inherit testimage
-inherit deploy
 
 QEMU_BIN_PATH = "${STAGING_BINDIR_NATIVE}"
 
 ZEPHYR_BASE = "${S}"
 OECMAKE_SOURCEPATH = "${S}/${ZEPHYR_SRC_DIR}"
 
-do_deploy () {
-    install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${ZEPHYR_IMAGENAME}
-}
-
 addtask deploy after do_compile
 do_install[noexec] = "1"
Signature · 1 line
2.30.1