Skip to content

Xen: python3, wic, 4.12.2, tools separation

Christopher Clark yocto-meta-virtualization 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest22 patches 1 replyIn review
  2. v222 patches 0 repliesSuperseded
  3. v116 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- update the deploy tasks to ensure that the hypervisor and tools binaries are staged (addtask after do_populate_sysroot) prior to being deployed
- set executable permissions on the installed python2 scripts

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22seabios: upgrade to version 1.13.0 at official URI and switch to python3recipes-extended/seabios/seabios/python3.patch recipes-extended/seabios/seabios_1.13.0.bb+21 -50 replies
2/22ipxe: fix build with uprev to the latest git revisionrecipes-extended/ipxe/files/ipxe-fix-hostcc-nopie-cflags.patch recipes-extended/ipxe/ipxe_git.bb+7 -530 replies
3/22linux-yocto/xen.cfg: update Xen KConfig fragment entriesrecipes-kernel/linux/linux-yocto/xen.cfg+1 -20 replies
4/22xen: pass compiler flags via Xen-provided variablesrecipes-extended/xen/xen.inc+25 -100 replies
5/22xen: upgrade to 4.12.2recipes-extended/xen/xen_4.12.2.bb+2 -20 replies
6/22wic: add support for bootable pcbios partition with Xen hypervisor.gitignore scripts/lib/wic/plugins/source/bootimg-biosxen.py wic/directdisk-bootloader-xen.cfg +2 more+252 -00 replies
7/22xen: package the EFI hypervisor binary /boot/xen.efirecipes-extended/xen/xen.inc+1 -00 replies
8/22xen: add RDEPENDS for xen-pygrub and xen-python packagesrecipes-extended/xen/xen.inc+8 -00 replies
9/22xen: retire Qemu packaging from the Xen reciperecipes-extended/xen/xen.inc+0 -870 replies
10/22xen: separate recipes for hypervisor and tools; switch to git as sourcerecipes-devtools/qemu/qemu_%.bbappend recipes-extended/images/xen-image-minimal.bb recipes-extended/xen/xen-blktap.inc +6 more+946 -8610 replies
11/22xen-tools: move xentrace_setmask into the xentrace packagerecipes-extended/xen/xen-tools.inc+1 -10 replies
12/22xen: add seabios to RRECOMMENDS of xen-tools when HVM-enabledrecipes-extended/xen/xen-tools.inc+1 -00 replies
13/22xen-image-minimal: add kernel-module-tun for HVM guest networkingrecipes-extended/images/xen-image-minimal.bb+4 -00 replies
14/22xen-tools: change globbing to fix syntax highlightingrecipes-extended/xen/xen-tools.inc+3 -30 replies
15/22xen, xen-tools: update recipes for python3recipes-extended/xen/files/0001-python-pygrub-pass-DISTUTILS-xen.4.12.patch recipes-extended/xen/files/xen-tools-libxl-gentypes-py3.patch recipes-extended/xen/files/xen-tools-pygrub-change-tabs-into-spaces.patch +9 more+1344 -270 replies
16/22xen, xen-tools: separate COMPATIBLE_HOST for hypervisor and toolsrecipes-extended/xen/xen-hypervisor.inc recipes-extended/xen/xen-tools.inc recipes-extended/xen/xen.inc+5 -20 replies
17/22xen, xen-tools: remove stubs task and use multilib when necessaryrecipes-extended/xen/xen-tools.inc recipes-extended/xen/xen.inc+35 -170 replies
18/22xen, xen-tools: bug fix to post_patch taskrecipes-extended/xen/xen.inc+1 -10 replies
19/22xen: add contact to recipe README filerecipes-extended/xen/README+3 -10 replies
20/22xen-image-minimal: add a build dependency on the xen hypervisorrecipes-extended/images/xen-image-minimal.bb+4 -00 replies
21/22xen: add menuconfig instructions to the READMErecipes-extended/xen/README+9 -00 replies
22/22xen, xen-tools: updates to the deploy taskrecipes-extended/xen/xen-hypervisor.inc recipes-extended/xen/xen-tools.inc+31 -100 replies

Reviews trailers per patch

1 of 22 patches has a Reviewed-by or Acked-by.

PatchJason Andryuk
1/22
2/22
3/22
4/22R-b
5/22
6/22
7/22
8/22
9/22
10/22
11/22
12/22
13/22
14/22
15/22
16/22
17/22
18/22
19/22
20/22
21/22
22/22

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [meta-virtualization][PATCH v3 00/22] Xen: python3, wic, 4.12.2, tools separation

From: Christopher Clark <[email protected]>

Update the Xen recipes for python3 compatibility and separate recipes for the hypervisor, the tools and legacy python2 scripts. Refresh ipxe and seabios.

Changes since v2 of this series:
- update the deploy tasks to ensure that the hypervisor and tools binaries are staged (addtask after do_populate_sysroot) prior to being deployed
- set executable permissions on the installed python2 scripts

Upgrade Xen to latest point release of the same version and switch to git branch tracking for easier incorporation of security fixes. Multiple recipe fixes.

Separate recipes for the hypervisor and tools enables targetting different architectures and build configurations (ref: multiconfig) and improvements to build efficiency downstream.

Add wic support for building bootable images with Xen and dom0.

Remove the stubs task by satisfying the 32-bit dependencies when necessary using multilib.

This change renames many of the packages produced: most packages that had a "xen-" prefix now have a "xen-tools-" prefix instead, indicating the recipe that now produces them, so dependent recipes will need to update package references:
eg. xen-tools-hvmloader replaces xen-hvmloader
eg. xen-tools replaces xen-base
and recipe DEPENDS statements:
eg. DEPENDS="xen" changes to DEPENDS="xen-tools"
A temporary append is provided for qemu to handle the renaming while its recipe is updated in openembedded-core.

Christopher Clark (22):
seabios: upgrade to version 1.13.0 at official URI and switch to
python3
ipxe: fix build with uprev to the latest git revision linux-yocto/xen.cfg: update Xen KConfig fragment entries
xen: pass compiler flags via Xen-provided variables
xen: upgrade to 4.12.2
wic: add support for bootable pcbios partition with Xen hypervisor
xen: package the EFI hypervisor binary /boot/xen.efi
xen: add RDEPENDS for xen-pygrub and xen-python packages
xen: retire Qemu packaging from the Xen recipe
xen: separate recipes for hypervisor and tools; switch to git as
source
xen-tools: move xentrace_setmask into the xentrace package
xen: add seabios to RRECOMMENDS of xen-tools when HVM-enabled
xen-image-minimal: add kernel-module-tun for HVM guest networking
xen-tools: change globbing to fix syntax highlighting xen, xen-tools: update recipes for python3
xen, xen-tools: separate COMPATIBLE_HOST for hypervisor and tools xen, xen-tools: remove stubs task and use multilib when necessary xen, xen-tools: bug fix to post_patch task
xen: add contact to recipe README file
xen-image-minimal: add a build dependency on the xen hypervisor
xen: add menuconfig instructions to the README
xen, xen-tools: updates to the deploy task

 .gitignore                                    |   1 +
 recipes-devtools/qemu/qemu_%.bbappend         |   1 +
 recipes-extended/images/xen-image-minimal.bb  |  10 +-
 .../files/ipxe-fix-hostcc-nopie-cflags.patch  |  58 +-
 recipes-extended/ipxe/ipxe_git.bb             |   2 +-
 .../seabios/seabios/python3.patch             |  13 +
 .../{seabios_1.11.2.bb => seabios_1.13.0.bb}  |  13 +-
 recipes-extended/xen/README                   |  13 +-
 ...ython-pygrub-pass-DISTUTILS-xen.4.12.patch |   7 +-
 .../files/xen-tools-libxl-gentypes-py3.patch  | 140 +++
 ...tools-pygrub-change-tabs-into-spaces.patch |  40 +
 ...-python-scripts-work-with-2.6-and-up.patch | 529 ++++++++++
 .../xen/files/xen-tools-pygrub-py3.patch      | 233 +++++
 ...ls-python-fix-Wsign-compare-warnings.patch | 136 +++
 ...n-tools-update-python-scripts-to-py3.patch | 140 +++
 recipes-extended/xen/xen-blktap.inc           |  76 ++
 recipes-extended/xen/xen-hypervisor.inc       | 111 ++
 recipes-extended/xen/xen-python2.bb           |  68 ++
 recipes-extended/xen/xen-tools.inc            | 792 ++++++++++++++
 recipes-extended/xen/xen-tools_git.bb         |  24 +
 recipes-extended/xen/xen.inc                  | 970 +-----------------
 recipes-extended/xen/xen_4.12.0.bb            |  12 -
 recipes-extended/xen/xen_git.bb               |  19 +-
 recipes-kernel/linux/linux-yocto/xen.cfg      |   3 +-
 .../lib/wic/plugins/source/bootimg-biosxen.py | 212 ++++
 wic/directdisk-bootloader-xen.cfg             |  17 +
 wic/directdisk-bootloader-xen.wks             |  12 +
 wic/directdisk-xen.wks                        |  10 +
 28 files changed, 2642 insertions(+), 1020 deletions(-)
 create mode 100644 recipes-devtools/qemu/qemu_%.bbappend
 create mode 100644 recipes-extended/seabios/seabios/python3.patch
 rename recipes-extended/seabios/{seabios_1.11.2.bb => seabios_1.13.0.bb} (67%)
 create mode 100644 recipes-extended/xen/files/xen-tools-libxl-gentypes-py3.patch
 create mode 100644 recipes-extended/xen/files/xen-tools-pygrub-change-tabs-into-spaces.patch
 create mode 100644 recipes-extended/xen/files/xen-tools-pygrub-make-python-scripts-work-with-2.6-and-up.patch
 create mode 100644 recipes-extended/xen/files/xen-tools-pygrub-py3.patch
 create mode 100644 recipes-extended/xen/files/xen-tools-python-fix-Wsign-compare-warnings.patch
 create mode 100644 recipes-extended/xen/files/xen-tools-update-python-scripts-to-py3.patch
 create mode 100644 recipes-extended/xen/xen-blktap.inc
 create mode 100644 recipes-extended/xen/xen-hypervisor.inc
 create mode 100644 recipes-extended/xen/xen-python2.bb
 create mode 100644 recipes-extended/xen/xen-tools.inc
 create mode 100644 recipes-extended/xen/xen-tools_git.bb
 delete mode 100644 recipes-extended/xen/xen_4.12.0.bb
 create mode 100644 scripts/lib/wic/plugins/source/bootimg-biosxen.py
 create mode 100644 wic/directdisk-bootloader-xen.cfg
 create mode 100644 wic/directdisk-bootloader-xen.wks
 create mode 100644 wic/directdisk-xen.wks
Signature · 1 line
2.17.1