xen: Ensure host Python2 is used
authorAlistair Francis <alistair.francis@xilinx.com>
Fri, 12 Aug 2016 22:30:05 +0000 (15:30 -0700)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 14 Aug 2016 14:15:29 +0000 (16:15 +0200)
To avoid Xen build issues ensure that host Python 2 is used.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/xen/xen.mk

index 759667af45d3293fc988997af2e2dddd9caf362c..e2abf2537c4ffacf2d02f0bb9730c1d73135999b 100644 (file)
@@ -8,6 +8,7 @@ XEN_VERSION = 4.6.0
 XEN_SITE = http://bits.xensource.com/oss-xen/release/$(XEN_VERSION)
 XEN_LICENSE = GPLv2
 XEN_LICENSE_FILES = COPYING
+XEN_DEPENDENCIES = host-python
 
 # Calculate XEN_ARCH
 ifeq ($(ARCH),aarch64)
@@ -17,6 +18,8 @@ XEN_ARCH = arm32
 endif
 
 XEN_CONF_OPTS = --disable-ocamltools
+
+XEN_CONF_ENV = PYTHON=$(HOST_DIR)/usr/bin/python2
 XEN_MAKE_ENV = \
        XEN_TARGET_ARCH=$(XEN_ARCH) \
        CROSS_COMPILE=$(TARGET_CROSS) \