Skip to contentSkip to conversation

xen: use proper variable for /usr/share path

PATCH In review Doug Goldstein 3 participants 6 messages Dec 11, 2015 – Dec 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 xen: use proper variable for /usr/share path

Don't open code /usr/share but instead use ${datadir} which is more correct.

---
 recipes-extended/xen/xen.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-extended/xen/xen.inc +2 -2
index da8cfb9..6fe0cbf 100644
@@ -257,7 +257,7 @@ FILES_${PN}-libxenguest-dev = "${libdir}/libxenguest.so"
 FILES_${PN}-libxenlight = "${libdir}/libxenlight.so.*"
 FILES_${PN}-libxenlight-dev = " \
     ${libdir}/libxenlight.so \
-    /usr/share/pkgconfig/xenlight.pc \
+    ${datadir}/pkgconfig/xenlight.pc \
     "
 
 FILES_${PN}-libxenvchan = "${libdir}/libxenvchan.so.*"
@@ -269,7 +269,7 @@ FILES_${PN}-libxenctrl-dev = "${libdir}/libxenctrl.so"
 FILES_${PN}-libxlutil = "${libdir}/libxlutil.so.*"
 FILES_${PN}-libxlutil-dev = " \
     ${libdir}/libxlutil.so \
-    /usr/share/pkgconfig/xlutil.pc \
+    ${datadir}/pkgconfig/xlutil.pc \
     "
 
 FILES_${PN}-libvhd = "${libdir}/libvhd.so.*"
Signature · 1 line
2.4.10
#1 lore raw

PATCH 2/4 xen: move udev dependency to package that needs it

xen-base doesn't need udev but the xen-udev package which contains all the udev scripts does.

---
 recipes-extended/xen/xen.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +3 -1
index 6fe0cbf..8598afc 100644
@@ -54,7 +54,7 @@ DEPENDS = " \
 RDEPENDS_${PN} = ""
 
 RDEPENDS_${PN}-base = "\
-    libgcc udev bash perl xz \
+    libgcc bash perl xz \
     ${PN}-blktap \
     ${PN}-console \
     ${PN}-libblktapctl \
@@ -114,6 +114,8 @@ RDEPENDS_${PN}-scripts-network = "\
     ${PN}-volatiles \
     "
 
+RDEPENDS_${PN}-udev = "udev"
+
 RDEPENDS_${PN}-xencommons = "\
     bash \
     ${PN}-console \
Signature · 1 line
2.4.10
#2 lore raw

PATCH 3/4 xen: resolve issue when using sstate cache

In reply to Doug Goldstein

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

---
 recipes-extended/xen/xen.inc | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
recipes-extended/xen/xen.inc +7 -7
index 8598afc..1bb0e6a 100644
@@ -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
Signature · 1 line
2.4.10
#3 lore raw

PATCH 4/4 xen: move PR variable from include file

In reply to Doug Goldstein

It appears inapporpriate to have this variable in the include file and should live within the bitbake files themselves.

---
 recipes-extended/xen/xen.inc      | 1 -
 recipes-extended/xen/xen_4.5.0.bb | 1 +
 recipes-extended/xen/xen_git.bb   | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +0 -1
index 1bb0e6a..00f1823 100644
@@ -2,7 +2,6 @@ DESCRIPTION = "Xen hypervisor"
 HOMEPAGE = "http://xen.org"
 LICENSE = "GPLv2"
 SECTION = "console/tools"
-PR = "r0"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=e0f0f3ac55608719a82394cc353928df"
 
recipes-extended/xen/xen_4.5.0.bb +1 -0
index 6c17b90..73d01c4 100644
@@ -1,4 +1,5 @@
 require xen.inc
+PR = "r0"
 
 SRC_URI = " \
     http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \
recipes-extended/xen/xen_git.bb +1 -0
index 88145a3..4def3bf 100644
@@ -1,4 +1,5 @@
 require xen.inc
+PR = "r0"
 
 SRCREV = "68bd172e6fa565899c846eb72755c8ffd8562c8a"
 
Signature · 1 line
2.4.10
#4 lore raw

Re: [PATCH 4/4] xen: move PR variable from include file

Quoted 3 lines · Doug Goldstein

It appears inapporpriate to have this variable in the include file and should live within the bitbake files themselves.

Actually you should drop this completely, the PR server will take care of this for you.

Mark

recipes-extended/xen/

Quoted 21 lines
---
 recipes-extended/xen/xen.inc      | 1 -
 recipes-extended/xen/xen_4.5.0.bb | 1 +
 recipes-extended/xen/xen_git.bb   | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +0 -1
index 1bb0e6a..00f1823 100644
@@ -2,7 +2,6 @@ DESCRIPTION = "Xen hypervisor"
 HOMEPAGE = "http://xen.org"
 LICENSE = "GPLv2"
 SECTION = "console/tools"
-PR = "r0"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=e0f0f3ac55608719a82394cc353928df"
 
recipes-extended/xen/ renamed from recipes-extended/xen/xen_4.5.0.bb +0 -0

xen_4.5.0.bb

recipes-extended/xen/

Quoted 10 lines

index 6c17b90..73d01c4 100644

recipes-extended/xen/xen_4.5.0.bb +1 -0
@@ -1,4 +1,5 @@
 require xen.inc
+PR = "r0"
 
 SRC_URI = " \
     http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \
recipes-extended/xen/ renamed from recipes-extended/xen/xen_git.bb +0 -0

xen_git.bb

Quoted 17 lines

index 88145a3..4def3bf 100644

recipes-extended/xen/xen_git.bb +1 -1
@@ -1,4 +1,5 @@
 require xen.inc
+PR = "r0"
 
 SRCREV = "68bd172e6fa565899c846eb72755c8ffd8562c8a"
 
--

2.4.10

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

#5 lore raw

Re: [PATCH 4/4] xen: move PR variable from include file

Quoted 9 lines · Mark Asselstine
Quoted 3 lines · Doug Goldstein

It appears inapporpriate to have this variable in the include file and should live within the bitbake files themselves.

Actually you should drop this completely, the PR server will take care of this for you.

Indeed. I merged the first three patches, and modified this one to drop the PR
completely.

Cheers,

Bruce

Quoted 60 lines

Mark

recipes-extended/xen/

Quoted 21 lines
---
 recipes-extended/xen/xen.inc      | 1 -
 recipes-extended/xen/xen_4.5.0.bb | 1 +
 recipes-extended/xen/xen_git.bb   | 1 +
 3 files changed, 2 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +0 -1
index 1bb0e6a..00f1823 100644
@@ -2,7 +2,6 @@ DESCRIPTION = "Xen hypervisor"
 HOMEPAGE = "http://xen.org"
 LICENSE = "GPLv2"
 SECTION = "console/tools"
-PR = "r0"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=e0f0f3ac55608719a82394cc353928df"
 
recipes-extended/xen/ renamed from recipes-extended/xen/xen_4.5.0.bb +0 -0

xen_4.5.0.bb

recipes-extended/xen/

Quoted 10 lines

index 6c17b90..73d01c4 100644

recipes-extended/xen/xen_4.5.0.bb +1 -0
@@ -1,4 +1,5 @@
 require xen.inc
+PR = "r0"
 
 SRC_URI = " \
     http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \
recipes-extended/xen/ renamed from recipes-extended/xen/xen_git.bb +0 -0

xen_git.bb

Quoted 12 lines

index 88145a3..4def3bf 100644

recipes-extended/xen/xen_git.bb +1 -1
@@ -1,4 +1,5 @@
 require xen.inc
+PR = "r0"
 
 SRCREV = "68bd172e6fa565899c846eb72755c8ffd8562c8a"
 
--

2.4.10

Quoted 5 lines

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

--
_______________________________________________
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"