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>
This commit is contained in:
Bruce Ashfield 2019-12-17 18:07:33 -08:00 committed by Bruce Ashfield
parent 908807cea6
commit 73bfe0be32
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
PACKAGES_prepend_class-target = "${PN}-x86_64 \
${PN}-aarch64 \
${PN}-arm \
${PN}-i386 \
${PN}-system-i386 \
${PN}-microblaze \
${PN}-support \
${PN}-keymaps \
${PN}-firmware \
"
FILES_${PN}-x86_64_class-target = "${bindir}/qemu-system-x86_64 ${bindir}/qemu-x86_64"
RDEPENDS_${PN}-x86_64_append_class_target = "${PN}"
INSANE_SKIP_${PN}-x86_64_class-target = "file-rdeps"
FILES_${PN}-i386_class-target = "${bindir}/qemu-i386"
RDEPENDS_${PN}-i386_append_class-target = "${PN}"
INSANE_SKIP_${PN}-i386_class-target = "file-rdeps"
FILES_${PN}-system-i386_class-target = "${bindir}/qemu-system-i386"
RDEPENDS_${PN}-system-i386_append_class-target = "${PN}"
INSANE_SKIP_${PN}-system-i386_class-target = "file-rdeps"
FILES_${PN}-aarch64_class-target = "${bindir}/qemu-system-aarch64 ${bindir}/qemu-aarch64"
RDEPENDS_${PN}-aarch64_append_class-target = "${PN}"
INSANE_SKIP_${PN}-aarch64_class-target = "file-rdeps"
FILES_${PN}-arm_class-target = "${bindir}/qemu-system-arm ${bindir}/qemu-arm"
RDEPENDS_${PN}-arm_append_class-target = "${PN}"
INSANE_SKIP_${PN}-arm_class-target = "file-rdeps"
FILES_${PN}-microblaze_class-target = "${bindir}/qemu-system-microblaze* ${bindir}/qemu-microblaze*"
RDEPENDS_${PN}-microblaze_append_class-target = "${PN}"
INSANE_SKIP_${PN}-arm_class-target = "file-rdeps"
FILES_${PN}-support_class-target = "${bindir}/* ${libexecdir}/*"
RDEPENDS_${PN}-support_class-target = "${PN}"
FILES_${PN}-firmware_class-target = "${datadir}/${PN}/*.bin ${datadir}/${PN}/*.rom ${datadir}/${PN}/*.img ${datadir}/${PN}/openbios* ${datadir}/${PN}/*.dtb ${datadir}/${PN}/u-boot*"
RDEPENDS_${PN}-firmware_class-target = "${PN}"
INSANE_SKIP_${PN}-firmware_class-target = "arch"
FILES_${PN}-keymaps_class-target = "${datadir}/${PN}/keymaps/*"
RDEPENDS_${PN}-keymaps_class-target = "${PN}"

View File

@ -1 +1,3 @@
PACKAGECONFIG[xen] = "--enable-xen,--disable-xen,xen-tools,xen-tools-libxenstore xen-tools-libxenctrl xen-tools-libxenguest"
require ${@bb.utils.contains('DISTRO_FEATURES', 'vmsep', '${BPN}-package-split.inc', '', d)}