aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2021-07-07 15:22:19 +0800
committerNaveen Saini <naveen.kumar.saini@intel.com>2021-07-08 15:33:47 +0800
commit58b9d677f13bc07e3ac34bbc1d2244c7c7e22f64 (patch)
treedf28427ca53c3f99309780d94f37e19b905a0efe
parent50fd22800f93d00750df356631a13fd89a403ce5 (diff)
downloadmeta-zephyr-58b9d677f13bc07e3ac34bbc1d2244c7c7e22f64.tar.gz
meta-zephyr-58b9d677f13bc07e3ac34bbc1d2244c7c7e22f64.tar.bz2
meta-zephyr-58b9d677f13bc07e3ac34bbc1d2244c7c7e22f64.zip
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>
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc1
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-sample.inc6
2 files changed, 7 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
index 46f19e2..7d44b97 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-kernel-common.inc
@@ -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} \
diff --git a/recipes-kernel/zephyr-kernel/zephyr-sample.inc b/recipes-kernel/zephyr-kernel/zephyr-sample.inc
index 7b49611..77fa5ad 100644
--- a/recipes-kernel/zephyr-kernel/zephyr-sample.inc
+++ b/recipes-kernel/zephyr-kernel/zephyr-sample.inc
@@ -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