xen/x86: fix QA errors

The xen version bump brought in these QA errors:

  ERROR: xen-tools-4.21+stable-r0 do_package: QA Issue: xen-tools: Files/directories were installed but not shipped in any package:
    /usr/lib/xen/tests/test_x86_emulator
    /usr/lib/xen/tests/test-cpu-policy
    /usr/lib/xen/tests/test-tsx
  Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
  xen-tools: 3 installed and not shipped files. [installed-vs-shipped]
  ERROR: xen-tools-4.21+stable-r0 do_package: Fatal QA errors were found, failing task.
  ERROR: Logfile of failure stored in: build/tmp/work/x86-64-v3-poky-linux/xen-tools/4.21+stable/temp/log.do_package.2597669
  ERROR: Task (meta-virtualization/recipes-extended/xen/xen-tools_4.21.bb:do_package) failed with exit code '1'
  NOTE: Tasks Summary: Attempted 4228 tasks of which 4210 didn't need to be rerun and 1 failed.

We package two of the new files, and delete one host-compiled tool that
isn't used.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Bruce Ashfield 2025-12-03 17:24:02 -05:00
parent 358452b4e5
commit 26e2b40b91

View File

@ -735,6 +735,8 @@ FILES:${PN}-test += "\
${libdir}/xen/tests/test_vpci \
${libdir}/xen/tests/test-pdx-offset \
${libdir}/xen/tests/test-pdx-mask \
${libdir}/xen/tests/test-cpu-policy \
${libdir}/xen/tests/test-tsx \
"
# test-xenstore and test-resource currently only exist in 4.16
@ -830,6 +832,9 @@ do_install() {
${localstatedir}/lib/xen \
"
# a host tool that is unused
rm -rf ${D}${libdir}/xen/tests/test_x86_emulator
# install volatiles using populate_volatiles mechanism
install -d ${D}${sysconfdir}/default/volatiles
for i in $VOLATILE_DIRS; do