mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-01-29 21:58:41 +01:00
zephyr-kernel: install .efi image if available
EFI images are being generated for x86 platforms. Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
This commit is contained in:
@@ -13,6 +13,7 @@ ZEPHYR_SYSROOT="${STAGING_DIR_TARGET}"
|
||||
|
||||
ZEPHYR_MAKE_OUTPUT = "zephyr.elf"
|
||||
ZEPHYR_MAKE_BIN_OUTPUT = "zephyr.bin"
|
||||
ZEPHYR_MAKE_EFI_OUTPUT = "zephyr.efi"
|
||||
|
||||
EXTRA_OECMAKE = "\
|
||||
-DZEPHYR_BASE=${S} \
|
||||
|
||||
@@ -9,9 +9,15 @@ do_install[noexec] = "1"
|
||||
|
||||
do_deploy () {
|
||||
install -D ${B}/zephyr/${ZEPHYR_MAKE_OUTPUT} ${DEPLOYDIR}/${PN}.elf
|
||||
|
||||
if [ -f ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ]
|
||||
then
|
||||
install -D ${B}/zephyr/${ZEPHYR_MAKE_BIN_OUTPUT} ${DEPLOYDIR}/${PN}.bin
|
||||
fi
|
||||
|
||||
if [ -f ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ]
|
||||
then
|
||||
install -D ${B}/zephyr/${ZEPHYR_MAKE_EFI_OUTPUT} ${DEPLOYDIR}/${PN}.efi
|
||||
fi
|
||||
}
|
||||
addtask deploy after do_compile
|
||||
|
||||
Reference in New Issue
Block a user