aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@huawei.com>2022-02-09 10:05:10 +0100
committerNaveen Saini <naveen.kumar.saini@intel.com>2022-02-11 14:03:28 +0800
commit86f09c2b4d45051ad681544278a8f00fb3cb733c (patch)
tree3f9aed983e5befdbb573a171b9606091e0ac4ebb
parent5518ca2b2e08e55794bba10698fcd7be9df379fa (diff)
downloadmeta-zephyr-86f09c2b4d45051ad681544278a8f00fb3cb733c.tar.gz
meta-zephyr-86f09c2b4d45051ad681544278a8f00fb3cb733c.tar.bz2
meta-zephyr-86f09c2b4d45051ad681544278a8f00fb3cb733c.zip
zephyr-image: unify the image generation for tests and samples
Reuse the same code that generates zephyr samples for building tests. This allows us to generate .bin files in all cases. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc9
1 files changed, 1 insertions, 8 deletions
diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
index c77692d..2d4c6ff 100644
--- a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-image.inc
@@ -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"