366e42c2cf
The Xen configure scripts looks at the build host to decide where to install the Sys-V startup scripts, and that location differs between various distros. Force the location. Fixes: http://autobuild.buildroot.org/results/869/869829ab086e824d164c5c5ec7f087ed83993be6/ http://autobuild.buildroot.org/results/336/3360e5a9e3d007b4ed77345b5fe93b2dacb6ad49/ http://autobuild.buildroot.org/results/29e/29e308ce3cc9c83497ba1c1f98fcda3f48fd03c4/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Matt Weber <matthew.weber@rockwellcollins.com> Cc: Alistair Francis <alistair@alistair23.me> Reviewed-by: Alistair Francis <alistair@alistair23.me> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# Xen
|
|
#
|
|
################################################################################
|
|
|
|
XEN_VERSION = 4.10.0
|
|
XEN_SITE = https://downloads.xenproject.org/release/xen/$(XEN_VERSION)
|
|
XEN_LICENSE = GPL-2.0
|
|
XEN_LICENSE_FILES = COPYING
|
|
XEN_DEPENDENCIES = host-acpica host-python
|
|
|
|
# Calculate XEN_ARCH
|
|
ifeq ($(ARCH),aarch64)
|
|
XEN_ARCH = arm64
|
|
else ifeq ($(ARCH),arm)
|
|
XEN_ARCH = arm32
|
|
endif
|
|
|
|
XEN_CONF_OPTS = \
|
|
--disable-ocamltools \
|
|
--with-initddir=/etc/init.d
|
|
|
|
XEN_CONF_ENV = PYTHON=$(HOST_DIR)/bin/python2
|
|
XEN_MAKE_ENV = \
|
|
XEN_TARGET_ARCH=$(XEN_ARCH) \
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
|
HOST_EXTRACFLAGS="-Wno-error" \
|
|
$(TARGET_CONFIGURE_OPTS)
|
|
|
|
ifeq ($(BR2_PACKAGE_XEN_HYPERVISOR),y)
|
|
XEN_MAKE_OPTS += dist-xen
|
|
XEN_INSTALL_IMAGES = YES
|
|
define XEN_INSTALL_IMAGES_CMDS
|
|
cp $(@D)/xen/xen $(BINARIES_DIR)
|
|
endef
|
|
else
|
|
XEN_CONF_OPTS += --disable-xen
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XEN_TOOLS),y)
|
|
XEN_DEPENDENCIES += dtc libaio libglib2 ncurses openssl pixman util-linux yajl
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
|
XEN_DEPENDENCIES += argp-standalone
|
|
endif
|
|
XEN_INSTALL_TARGET_OPTS += DESTDIR=$(TARGET_DIR) install-tools
|
|
XEN_MAKE_OPTS += dist-tools
|
|
XEN_CONF_OPTS += --with-extra-qemuu-configure-args="--disable-sdl"
|
|
|
|
define XEN_INSTALL_INIT_SYSV
|
|
mv $(TARGET_DIR)/etc/init.d/xencommons $(TARGET_DIR)/etc/init.d/S50xencommons
|
|
mv $(TARGET_DIR)/etc/init.d/xen-watchdog $(TARGET_DIR)/etc/init.d/S50xen-watchdog
|
|
mv $(TARGET_DIR)/etc/init.d/xendomains $(TARGET_DIR)/etc/init.d/S60xendomains
|
|
endef
|
|
else
|
|
XEN_INSTALL_TARGET = NO
|
|
XEN_CONF_OPTS += --disable-tools
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|