diff options
author | Bruce Ashfield <bruce.ashfield@xilinx.com> | 2019-12-17 18:07:33 -0800 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@xilinx.com> | 2019-12-17 18:07:33 -0800 |
commit | 0257d67a89246927fbbbde7629837f8ce5017b63 (patch) | |
tree | ad7517c49889a53aa5e95799093b7bd171a7f180 | |
parent | 4f3d9f478ff47be670e474d8696dd0e0a8f7ebf4 (diff) | |
download | meta-virtualization-vmsep.tar.gz |
qemu: change packaging when vmsep is enabledvmsep
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 | 1 |
2 files changed, 45 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 new file mode 100644 index 00000000..5cca9e1f --- /dev/null +++ b/recipes-devtools/qemu/qemu_%.bbappend | |||
@@ -0,0 +1 @@ | |||
require ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', '${BPN}-package-split.inc', '', d)} | |||