Skip to contentSkip to conversation

xen: deploy efi binary, if present

PATCH In review Chris Patterson 2 participants 2 messages Mar 29, 2016 – Mar 31, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: deploy efi binary, if present

From: Chris Patterson <[email protected]>

---
 recipes-extended/xen/xen.inc | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-extended/xen/xen.inc +7 -0
index 9ae7c4e..de8c168 100644
@@ -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}
Signature · 1 line
2.1.4
#1 lore raw
Quoted 3 lines · Chris Patterson

From: Chris Patterson <[email protected]>

merged.

Bruce

Quoted 39 lines
---
 recipes-extended/xen/xen.inc | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-extended/xen/xen.inc +5 -0
index 9ae7c4e..de8c168 100644
@@ -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

recipes-extended/xen/xen.inc +2 -1
+    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}
--

2.1.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"