xen: deploy efi binary, if present

Signed-off-by: Chris Patterson <pattersonc@ainfosec.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Chris Patterson 2016-03-29 14:46:28 -04:00 committed by Bruce Ashfield
parent da65e83a39
commit 637adee284

View File

@ -901,12 +901,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}