diff options
author | Bruce Ashfield <bruce.ashfield@xilinx.com> | 2019-12-17 18:07:33 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-03-11 12:20:42 -0400 |
commit | 73bfe0be321b7695a77c33cb0b53e1afc9f32899 (patch) | |
tree | 80db78e510b206229fb1d0e416c80774fc3c040f | |
parent | 908807cea6b7fe5d1ee3df7250c4bc225a366d66 (diff) | |
download | meta-virtualization-73bfe0be321b7695a77c33cb0b53e1afc9f32899.tar.gz |
qemu: change packaging when vmsep is enabled
When hosts are using VM separation features, they need qemu
on the target to launch guests (and for other purposes) .. but
they do not want *all* of the build qemu targets. To allow a
more fine grained installation off qemu components, this patch
splits packaging into:
- qemu-<arch>
- qemu-support
- qemu-keymaps
Signed-off-by: Bruce Ashfield <bruce.ashfield@xilinx.com>
-rw-r--r-- | recipes-devtools/qemu/qemu-package-split.inc | 44 | ||||
-rw-r--r-- | recipes-devtools/qemu/qemu_%.bbappend | 2 |
2 files changed, 46 insertions, 0 deletions
diff --git a/recipes-devtools/qemu/qemu-package-split.inc b/recipes-devtools/qemu/qemu-package-split.inc new file mode 100644 index 00000000..1cfc2cd4 --- /dev/null +++ b/recipes-devtools/qemu/qemu-package-split.inc | |||
@@ -0,0 +1,44 @@ | |||
1 | PACKAGES_prepend_class-target = "${PN}-x86_64 \ | ||
2 | ${PN}-aarch64 \ | ||
3 | ${PN}-arm \ | ||
4 | ${PN}-i386 \ | ||
5 | ${PN}-system-i386 \ | ||
6 | ${PN}-microblaze \ | ||
7 | ${PN}-support \ | ||
8 | ${PN}-keymaps \ | ||
9 | ${PN}-firmware \ | ||
10 | " | ||
11 | |||
12 | FILES_${PN}-x86_64_class-target = "${bindir}/qemu-system-x86_64 ${bindir}/qemu-x86_64" | ||
13 | RDEPENDS_${PN}-x86_64_append_class_target = "${PN}" | ||
14 | INSANE_SKIP_${PN}-x86_64_class-target = "file-rdeps" | ||
15 | |||
16 | FILES_${PN}-i386_class-target = "${bindir}/qemu-i386" | ||
17 | RDEPENDS_${PN}-i386_append_class-target = "${PN}" | ||
18 | INSANE_SKIP_${PN}-i386_class-target = "file-rdeps" | ||
19 | |||
20 | FILES_${PN}-system-i386_class-target = "${bindir}/qemu-system-i386" | ||
21 | RDEPENDS_${PN}-system-i386_append_class-target = "${PN}" | ||
22 | INSANE_SKIP_${PN}-system-i386_class-target = "file-rdeps" | ||
23 | |||
24 | FILES_${PN}-aarch64_class-target = "${bindir}/qemu-system-aarch64 ${bindir}/qemu-aarch64" | ||
25 | RDEPENDS_${PN}-aarch64_append_class-target = "${PN}" | ||
26 | INSANE_SKIP_${PN}-aarch64_class-target = "file-rdeps" | ||
27 | |||
28 | FILES_${PN}-arm_class-target = "${bindir}/qemu-system-arm ${bindir}/qemu-arm" | ||
29 | RDEPENDS_${PN}-arm_append_class-target = "${PN}" | ||
30 | INSANE_SKIP_${PN}-arm_class-target = "file-rdeps" | ||
31 | |||
32 | FILES_${PN}-microblaze_class-target = "${bindir}/qemu-system-microblaze* ${bindir}/qemu-microblaze*" | ||
33 | RDEPENDS_${PN}-microblaze_append_class-target = "${PN}" | ||
34 | INSANE_SKIP_${PN}-arm_class-target = "file-rdeps" | ||
35 | |||
36 | FILES_${PN}-support_class-target = "${bindir}/* ${libexecdir}/*" | ||
37 | RDEPENDS_${PN}-support_class-target = "${PN}" | ||
38 | |||
39 | FILES_${PN}-firmware_class-target = "${datadir}/${PN}/*.bin ${datadir}/${PN}/*.rom ${datadir}/${PN}/*.img ${datadir}/${PN}/openbios* ${datadir}/${PN}/*.dtb ${datadir}/${PN}/u-boot*" | ||
40 | RDEPENDS_${PN}-firmware_class-target = "${PN}" | ||
41 | INSANE_SKIP_${PN}-firmware_class-target = "arch" | ||
42 | |||
43 | FILES_${PN}-keymaps_class-target = "${datadir}/${PN}/keymaps/*" | ||
44 | RDEPENDS_${PN}-keymaps_class-target = "${PN}" | ||
diff --git a/recipes-devtools/qemu/qemu_%.bbappend b/recipes-devtools/qemu/qemu_%.bbappend index 150f92b6..998a4011 100644 --- a/recipes-devtools/qemu/qemu_%.bbappend +++ b/recipes-devtools/qemu/qemu_%.bbappend | |||
@@ -1 +1,3 @@ | |||
1 | PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen-tools,xen-tools-libxenstore xen-tools-libxenctrl xen-tools-libxenguest" | 1 | PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen-tools,xen-tools-libxenstore xen-tools-libxenctrl xen-tools-libxenguest" |
2 | |||
3 | require ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', '${BPN}-package-split.inc', '', d)} | ||