From 2e74fb085b2d0a41a90e4d96459f8833a99d0ab8 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Tue, 29 Mar 2016 14:46:28 -0400 Subject: [PATCH] xen: deploy efi binary, if present Signed-off-by: Chris Patterson Signed-off-by: Bruce Ashfield --- recipes-extended/xen/xen.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc index 1e953b68..354566db 100644 --- a/recipes-extended/xen/xen.inc +++ b/recipes-extended/xen/xen.inc @@ -895,12 +895,19 @@ pkg_postinst_${PN}-volatiles() { do_deploy() { install -d ${DEPLOYDIR} + if [ -f ${D}/boot/xen ]; then install -m 0644 ${D}/boot/xen ${DEPLOYDIR}/xen-${MACHINE} fi + if [ -f ${D}/boot/xen.gz ]; then install -m 0644 ${D}/boot/xen.gz ${DEPLOYDIR}/xen-${MACHINE}.gz fi + + if [ -f ${D}/usr/lib64/efi/xen.efi ]; then + install -m 0644 ${D}/usr/lib64/efi/xen.efi ${DEPLOYDIR}/xen-${MACHINE}.efi + fi + # Install the flask policy in the deploy directory if it exists if [ -f ${D}/boot/${FLASK_POLICY_FILE} ]; then install -m 0644 ${D}/boot/${FLASK_POLICY_FILE} ${DEPLOYDIR}