Skip to contentSkip to conversation

xen: switch to updated download URL

PATCH In review Doug Goldstein 2 participants 14 messages Jan 3, 2017 – Jan 5, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 xen: switch to updated download URL

The Xen Project has changed the officially supported download URL to use xenproject.org. This changes to the officially supported URLs.

---
 recipes-extended/xen/xen_4.6.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/xen/xen_4.6.1.bb +1 -1
index 0adf8ad..c3ba3c8 100644
@@ -1,7 +1,7 @@
 require xen.inc
 
 SRC_URI = " \
-    http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \
+    https://downloads.xenproject.org/release/xen/${PV}/xen-${PV}.tar.gz \
     "
 
 SRC_URI[md5sum] = "df2d854c3c90ffeefaf71e7f868fb326"
Signature · 1 line
2.10.2
#1 lore raw

PATCH 2/5 xen: sync packages and fixes from master

Sync the latest list of packages and installed files from master along with a handful of compilation bug fixes.

---
 recipes-extended/xen/xen.inc | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)
recipes-extended/xen/xen.inc +19 -1
index de8c168..429a05a 100644
@@ -151,6 +151,7 @@ PACKAGES = "\
     ${PN}-base \
     ${PN}-blktap \
     ${PN}-console \
+    ${PN}-cpuid \
     ${PN}-dbg \
     ${PN}-dev \
     ${PN}-devd \
@@ -196,6 +197,7 @@ PACKAGES = "\
     ${PN}-libxenvchan-dev \
     ${PN}-libxlutil \
     ${PN}-libxlutil-dev \
+    ${PN}-livepatch \
     ${PN}-misc \
     ${PN}-pygrub \
     ${PN}-python \
@@ -369,6 +371,10 @@ FILES_${PN}-console = "\
     ${sbindir}/xenconsoled \
     "
 
+FILES_${PN}-cpuid = "\
+    ${bindir}/xen-cpuid \
+    "
+
 FILES_${PN}-devd = "\
     ${sysconfdir}/init.d/xendriverdomain \
     "
@@ -399,6 +405,10 @@ FILES_${PN}-kdd = "\
     ${sbindir}/kdd \
     "
 
+FILES_${PN}-livepatch += " \
+    ${sbindir}/xen-livepatch \
+    "
+
 FILES_${PN}-misc = "\
     ${bindir}/xencons \
     ${bindir}/xencov_split \
@@ -527,6 +537,7 @@ FILES_${PN}-remus = "\
     "
 
 FILES_${PN}-scripts-network = " \
+    ${sysconfdir}/xen/scripts/colo-proxy-setup \
     ${sysconfdir}/xen/scripts/network-bridge \
     ${sysconfdir}/xen/scripts/network-nat \
     ${sysconfdir}/xen/scripts/network-route \
@@ -544,6 +555,7 @@ FILES_${PN}-scripts-block = " \
     ${sysconfdir}/xen/scripts/blktap \
     ${sysconfdir}/xen/scripts/block \
     ${sysconfdir}/xen/scripts/block-common.sh \
+    ${sysconfdir}/xen/scripts/block-dummy \
     ${sysconfdir}/xen/scripts/block-enbd \
     ${sysconfdir}/xen/scripts/block-iscsi \
     ${sysconfdir}/xen/scripts/block-nbd \
@@ -667,6 +679,7 @@ FILES_${PN}-xm = "\
 FILES_${PN}-xencommons += "\
     ${sysconfdir}/default/xencommons \
     ${sysconfdir}/init.d/xencommons \
+    ${sysconfdir}/xen/scripts/launch-xenstore \
     ${systemd_unitdir}/modules-load.d/xen.conf \
     ${systemd_unitdir}/system/proc-xen.mount \
     ${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service \
@@ -744,9 +757,11 @@ export XEN_OS = "Linux"
 
 # this is used for the header (#!${bindir}/python) of the install python scripts
 export PYTHONPATH="${bindir}/python"
+export ac_cv_path_PYTHONPATH="${bindir}/python"
 
-# seabios forcefully sets HOSTCC to CC - fixup to allow it to build native conf executable
+# xen and seabios require HOSTCC and HOSTCXX set to cross-compile
 export HOSTCC="${BUILD_CC}"
+export HOSTCXX="${BUILD_CXX}"
 
 # make xen requires CROSS_COMPILE set by hand as it does not abide by ./configure
 export CROSS_COMPILE="${TARGET_PREFIX}"
@@ -837,6 +852,9 @@ do_configure() {
 }
 
 do_compile() {
+    # workaround for build bug when CFLAGS is exported
+    # https://www.mail-archive.com/[email protected]/msg67822.html
+    unset CFLAGS
     oe_runmake
 }
 
Signature · 1 line
2.10.2
#2 lore raw

PATCH 3/5 xen: add gnu-efi to DEPENDS

In reply to Doug Goldstein

Allow Xen to build the EFI loader by including the required dependency.

---
 recipes-extended/xen/xen.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/xen/xen.inc +1 -0
index 429a05a..0d156dc 100644
@@ -52,6 +52,7 @@ DEPENDS = " \
     xz \
     yajl \
     zlib \
+	gnu-efi \
     "
 
 # inherit setuptools adds python to RDEPENDS, override it
Signature · 1 line
2.10.2
#3 lore raw

Re: [meta-virtualization (krogoth)][PATCH 3/5] xen: add gnu-efi to DEPENDS

Quoted 13 lines · Doug Goldstein

Allow Xen to build the EFI loader by including the required dependency.

---
 recipes-extended/xen/xen.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/xen/xen.inc +0 -0
index 429a05a..0d156dc 100644

recipes-extended/xen/xen.inc DEPENDS = " \ · line 58

Quoted 7 lines
recipes-extended/xen/xen.inc +1 -0
@@ -52,6 +52,7 @@ DEPENDS = " \
     xz \
     yajl \
     zlib \
+	gnu-efi \
     "
 
 # inherit setuptools adds python to RDEPENDS, override it

I screwed up the whitespace. I can resend.

This patch should also be applied to morty and master.

Signature · 1 line
Doug Goldstein
#4 lore raw

PATCH 3/5 xen: add gnu-efi to DEPENDS

In reply to Doug Goldstein

Allow Xen to build the EFI loader by including the required dependency.

---
 recipes-extended/xen/xen.inc | 1 +
 1 file changed, 1 insertion(+)
recipes-extended/xen/xen.inc +1 -0
index 429a05a..c9ed73f 100644
@@ -52,6 +52,7 @@ DEPENDS = " \
     xz \
     yajl \
     zlib \
+    gnu-efi \
     "
 
 # inherit setuptools adds python to RDEPENDS, override it
Signature · 1 line
2.10.2
#5 lore raw

PATCH 4/5 xen: make it easy to override hypervisor config

In reply to Doug Goldstein

The hypervisor is now configured with Kconfig like busybox and the kernel. This makes Xen behave like the busybox recipe by taking a defconfig if the user has one provided with a bbappend.

---
 recipes-extended/xen/xen.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-extended/xen/xen.inc +8 -0
index 0d156dc..38922dc 100644
@@ -841,6 +841,9 @@ do_stubs() {
 
 addtask stubs after do_configure before do_compile
 
+# Allow all hypervisor settings in a defconfig
+EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y"
+
 do_configure() {
 
     #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually
@@ -848,6 +851,11 @@ do_configure() {
         echo "XSM_ENABLE := y" > ${S}/.config
     fi
 
+    if [ -f "${WORKDIR}/defconfig" ]; then
+        cp "${WORKDIR}/defconfig" "${B}/xen/.config" || \
+        bbfatal "Unable to copy defconfig to .config"
+    fi
+
     # do configure
     oe_runconf
 }
Signature · 1 line
2.10.2
#6 lore raw

Re: [meta-virtualization (krogoth)][PATCH 4/5] xen: make it easy to override hypervisor config

Quoted 26 lines · Doug Goldstein

The hypervisor is now configured with Kconfig like busybox and the kernel. This makes Xen behave like the busybox recipe by taking a defconfig if the user has one provided with a bbappend.

---
 recipes-extended/xen/xen.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-extended/xen/xen.inc +3 -0
index 0d156dc..38922dc 100644
@@ -841,6 +841,9 @@ do_stubs() {
 
 addtask stubs after do_configure before do_compile
 
+# Allow all hypervisor settings in a defconfig
+EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y"
+
 do_configure() {
 
     #./configure --enable-xsmpolicy does not set XSM_ENABLE must be done manually
@@ -848,6 +851,11 @@ do_configure() {
         echo "XSM_ENABLE := y" > ${S}/.config

recipes-extended/xen/xen.inc do_configure() { · line 861

Quoted 10 lines
recipes-extended/xen/xen.inc +5 -0
     fi
 
+    if [ -f "${WORKDIR}/defconfig" ]; then
+        cp "${WORKDIR}/defconfig" "${B}/xen/.config" || \
+        bbfatal "Unable to copy defconfig to .config"
+    fi
+
     # do configure
     oe_runconf
 }

This should also be applied to morty and master.

Signature · 1 line
Doug Goldstein
#7 lore raw

PATCH 5/5 xen: ensure we build release builds

In reply to Doug Goldstein

Don't build with asserts on. This is the default for release tarballs but if someone bbappends patches in we should ensure they don't shoot themselves.

---
 recipes-extended/xen/xen.inc | 4 ++++
 1 file changed, 4 insertions(+)
recipes-extended/xen/xen.inc +4 -0
index 38922dc..d9490fe 100644
@@ -843,6 +843,10 @@ addtask stubs after do_configure before do_compile
 
 # Allow all hypervisor settings in a defconfig
 EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y"
+# Build release versions always. Technically since we track release
+# tarballs this always happens but occasionally people pull in patches
+# from staging that reverts this
+EXTRA_OEMAKE += "debug=n"
 
 do_configure() {
 
Signature · 1 line
2.10.2
#8 lore raw

Re: [meta-virtualization (krogoth)][PATCH 5/5] xen: ensure we build release builds

Quoted 15 lines · Doug Goldstein

Don't build with asserts on. This is the default for release tarballs but if someone bbappends patches in we should ensure they don't shoot themselves.

---
 recipes-extended/xen/xen.inc | 4 ++++
 1 file changed, 4 insertions(+)
recipes-extended/xen/xen.inc +0 -0
index 38922dc..d9490fe 100644

recipes-extended/xen/xen.inc addtask stubs after do_configure before do_compile · line 852

Quoted 10 lines
recipes-extended/xen/xen.inc +4 -0
@@ -843,6 +843,10 @@ addtask stubs after do_configure before do_compile
 
 # Allow all hypervisor settings in a defconfig
 EXTRA_OEMAKE += "XEN_CONFIG_EXPERT=y"
+# Build release versions always. Technically since we track release
+# tarballs this always happens but occasionally people pull in patches
+# from staging that reverts this
+EXTRA_OEMAKE += "debug=n"
 
 do_configure() {
 

This patch should also be applied to morty and master.

Signature · 1 line
Doug Goldstein
#9 lore raw
In reply to Doug Goldstein

You didn't follow up to patch 1 and 2, I assume these are for the same branches
as patches 3 -> 5 ?

Bruce

Quoted 31 lines · Doug Goldstein

The Xen Project has changed the officially supported download URL to use xenproject.org. This changes to the officially supported URLs.

---
 recipes-extended/xen/xen_4.6.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-extended/xen/ renamed from recipes-extended/xen/xen_4.6.1.bb +0 -0

xen_4.6.1.bb
index 0adf8ad..c3ba3c8 100644

recipes-extended/xen/xen_4.6.1.bb +1 -2
@@ -1,7 +1,7 @@
 require xen.inc
 
 SRC_URI = " \
-    http://bits.xensource.com/oss-xen/release/${PV}/xen-${PV}.tar.gz \
+    https://downloads.xenproject.org/release/xen/${PV}/xen-${PV}.tar.gz \
     "
 
 SRC_URI[md5sum] = "df2d854c3c90ffeefaf71e7f868fb326"
--

2.10.2

--
_______________________________________________
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"
#10 lore raw
Quoted 5 lines · Bruce Ashfield

You didn't follow up to patch 1 and 2, I assume these are for the same branches
as patches 3 -> 5 ?

Bruce

No. Actually 1 and 2 are only for krogoth. Sorry for all the confusion. I realize I should have sent this differently for better clarity.

Signature · 1 line
Doug Goldstein
#11 lore raw
Quoted 10 lines · Doug Goldstein
Quoted 5 lines · Bruce Ashfield

You didn't follow up to patch 1 and 2, I assume these are for the same branches
as patches 3 -> 5 ?

Bruce

No. Actually 1 and 2 are only for krogoth. Sorry for all the confusion. I realize I should have sent this differently for better clarity.

hah. Now that you said that, I see the krogoth in the subject. Post holiday brain! :D

Bruce

Quoted 5 lines

--
Doug Goldstein

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

All the xen patches should now be merged. Let me know if I managed to muck up the branches.

cheers,

Bruce

Quoted 32 lines · Bruce Ashfield
Quoted 10 lines · Doug Goldstein
Quoted 5 lines · Bruce Ashfield

You didn't follow up to patch 1 and 2, I assume these are for the same branches
as patches 3 -> 5 ?

Bruce

No. Actually 1 and 2 are only for krogoth. Sorry for all the confusion. I realize I should have sent this differently for better clarity.

hah. Now that you said that, I see the krogoth in the subject. Post holiday brain! :D

Bruce

Quoted 5 lines

--
Doug Goldstein

--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
#13 lore raw
Quoted 3 lines · Bruce Ashfield

All the xen patches should now be merged. Let me know if I managed to muck up the branches.

Looks good Bruce. Thanks!

Signature · 1 line
Doug Goldstein