Return-Path: Received: from www.twobit.us (www.twobit.us [50.19.210.51]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CCEB0E0161B for ; Fri, 4 Oct 2013 09:40:02 -0700 (PDT) Received: from c-76-24-20-220.hsd1.ma.comcast.net ([76.24.20.220] helo=longhaul.twobit.us) by www.twobit.us with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VS8Q4-0005vp-VY; Fri, 04 Oct 2013 16:40:01 +0000 Date: Fri, 4 Oct 2013 16:39:52 +0000 From: Philip Tricca To: meta-virtualization@yoctoproject.org Message-ID: <20131004163952.GA5669@longhaul.twobit.us> MIME-Version: 1.0 User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 76.24.20.220 X-SA-Exim-Mail-From: flihp@twobit.us X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on www.twobit.us X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:26:47 +0000) X-SA-Exim-Scanned: Yes (on www.twobit.us) Subject: [PATCH] Explicitly set CHECKPOLICY path to native sysroot. X-BeenThere: meta-virtualization@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Discussion of layer enabling hypervisor, virtualization tool stack, and cloud support" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 16:40:03 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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