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>
This commit is contained in:
Bartosz Golaszewski
2022-02-09 10:05:10 +01:00
committed by Naveen Saini
parent 5518ca2b2e
commit 86f09c2b4d

View File

@@ -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"