mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-09-14 06:49:32 +02:00
classes: build zephyr-kernel-test-all for non-qemu boards
Machines not inheriting zephyr-qemuboot did not have IMGDEPLOYDIR variable set, which is required for building zephyr-kernel-test-all. The build was fine for qemu-xxx machines, but for physical boards it failed somewhere inside python code when .join() got an empty argument incoming from IMGDEPLOYDIR. Move IMGDEPLOYDIR to zephyr class, so it's defined for qemu and non-qemu machines. Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com> Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
committed by
Naveen Saini
parent
b74dee01fc
commit
4814135be3
@@ -11,9 +11,6 @@ IMAGE_LINK_NAME = "${PN}-image-${MACHINE}"
|
||||
# Create a link with "-image-" in the name just to keep runqemu happy
|
||||
QEMU_IMAGE_LINK = "${DEPLOY_DIR_IMAGE}/${PN}-image-${MACHINE}.elf"
|
||||
|
||||
# qemuboot writes into IMGDEPLOYDIR, force to write to DEPLOY_DIR_IMAGE
|
||||
IMGDEPLOYDIR = "${DEPLOY_DIR_IMAGE}"
|
||||
|
||||
CLEANFUNCS += "bootconf_clean"
|
||||
|
||||
python bootconf_clean() {
|
||||
|
||||
@@ -10,6 +10,9 @@ TERMINFO = "${STAGING_DATADIR_NATIVE}/terminfo"
|
||||
KCONFIG_CONFIG_COMMAND ??= "menuconfig"
|
||||
ZEPHYR_BOARD ?= "${MACHINE}"
|
||||
|
||||
# qemuboot writes into IMGDEPLOYDIR, force to write to DEPLOY_DIR_IMAGE
|
||||
IMGDEPLOYDIR = "${DEPLOY_DIR_IMAGE}"
|
||||
|
||||
python () {
|
||||
# Translate MACHINE into Zephyr BOARD
|
||||
# Zephyr BOARD is basically our MACHINE, except we must use "-" instead of "_"
|
||||
|
||||
Reference in New Issue
Block a user