[meta-virtualization] [PATCH 3/4] xen: resolve issue when using sstate cache

Doug Goldstein cardoe at cardoe.com
Fri Dec 11 13:58:31 PST 2015


When using an sstate cache xen/xen.gz was not being installed into the
image.

Signed-off-by: Doug Goldstein <cardoe at cardoe.com>
---
 recipes-extended/xen/xen.inc | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/recipes-extended/xen/xen.inc b/recipes-extended/xen/xen.inc
index 8598afc..1bb0e6a 100644
--- a/recipes-extended/xen/xen.inc
+++ b/recipes-extended/xen/xen.inc
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=e0f0f3ac55608719a82394cc353928df"
 
 COMPATIBLE_HOST = '(x86_64.*).*-linux|aarch64.*-linux'
 
-inherit autotools-brokensep gettext setuptools update-rc.d systemd
+inherit autotools-brokensep gettext setuptools update-rc.d systemd deploy
 
 require xen-arch.inc
 
@@ -786,14 +786,14 @@ pkg_postinst_${PN}-volatiles() {
     fi
 }
 
-sysroot_stage_all_append() {
-    sysroot_stage_dir ${D}/boot ${SYSROOT_DESTDIR}/kernel
-
-    install -d ${DEPLOY_DIR_IMAGE}
+do_deploy() {
+    install -d ${DEPLOYDIR}
     if [ -f ${D}/boot/xen ]; then
-        install -m 0644 ${D}/boot/xen ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}
+        install -m 0644 ${D}/boot/xen ${DEPLOYDIR}/xen-${MACHINE}
     fi
     if [ -f ${D}/boot/xen.gz ]; then
-        install -m 0644 ${D}/boot/xen.gz ${DEPLOY_DIR_IMAGE}/xen-${MACHINE}.gz
+        install -m 0644 ${D}/boot/xen.gz ${DEPLOYDIR}/xen-${MACHINE}.gz
     fi
 }
+
+addtask deploy after do_populate_sysroot
-- 
2.4.10



More information about the meta-virtualization mailing list