[meta-virtualization] [PATCH] Explicitly set CHECKPOLICY path to native sysroot.

Philip Tricca flihp at twobit.us
Fri Oct 4 09:39:52 PDT 2013


This prevents the Xen 'configure' script from using the
checkpolicy binary from the host system if it's installed.
---
 recipes-extended/xen/xen_4.3.0.bb |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/recipes-extended/xen/xen_4.3.0.bb b/recipes-extended/xen/xen_4.3.0.bb
index 2e1a29f..5d26000 100644
--- a/recipes-extended/xen/xen_4.3.0.bb
+++ b/recipes-extended/xen/xen_4.3.0.bb
@@ -557,6 +557,9 @@ export CROSS_COMPILE="${TARGET_PREFIX}"
 # overide LDFLAGS to allow xen to build without: "x86_64-oe-linux-ld: unrecognized option '-Wl,-O1'"
 export LDFLAGS=""
 
+# use checkpolicy from  sysroot
+export CHECKPOLICY="${STAGING_DIR_NATIVE}${bindir}/checkpolicy"
+
 do_configure() {
     # fixup qemu-xen-traditional pciutils check hardcoded to test ${includedir}/pci
     sed -i 's/\/usr\/include\/pci/$(STAGING_INCDIR)\/pci/g' ${S}/tools/qemu-xen-traditional/xen-hooks.mak
-- 
1.7.10.4




More information about the meta-virtualization mailing list