mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-09-14 15:49:32 +02:00
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:
committed by
Naveen Saini
parent
5518ca2b2e
commit
86f09c2b4d
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user