2016-05-13 00:13:01 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Xen
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-05-31 00:17:13 +02:00
|
|
|
XEN_VERSION = 4.10.1
|
2017-06-30 01:32:47 +02:00
|
|
|
XEN_SITE = https://downloads.xenproject.org/release/xen/$(XEN_VERSION)
|
2017-03-30 15:43:32 +02:00
|
|
|
XEN_LICENSE = GPL-2.0
|
2016-05-13 00:13:01 +02:00
|
|
|
XEN_LICENSE_FILES = COPYING
|
2017-05-24 22:30:30 +02:00
|
|
|
XEN_DEPENDENCIES = host-acpica host-python
|
2016-05-13 00:13:01 +02:00
|
|
|
|
|
|
|
# Calculate XEN_ARCH
|
|
|
|
ifeq ($(ARCH),aarch64)
|
|
|
|
XEN_ARCH = arm64
|
|
|
|
else ifeq ($(ARCH),arm)
|
|
|
|
XEN_ARCH = arm32
|
|
|
|
endif
|
|
|
|
|
2018-05-13 18:59:23 +02:00
|
|
|
XEN_CONF_OPTS = \
|
|
|
|
--disable-ocamltools \
|
|
|
|
--with-initddir=/etc/init.d
|
2016-08-13 00:30:05 +02:00
|
|
|
|
2017-07-05 13:14:19 +02:00
|
|
|
XEN_CONF_ENV = PYTHON=$(HOST_DIR)/bin/python2
|
2016-05-13 00:13:01 +02:00
|
|
|
XEN_MAKE_ENV = \
|
|
|
|
XEN_TARGET_ARCH=$(XEN_ARCH) \
|
|
|
|
CROSS_COMPILE=$(TARGET_CROSS) \
|
2017-04-12 16:54:13 +02:00
|
|
|
HOST_EXTRACFLAGS="-Wno-error" \
|
2016-05-13 00:13:01 +02:00
|
|
|
$(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
|
2018-01-18 22:52:30 +01:00
|
|
|
XEN_CONF_OPTS += --with-extra-qemuu-configure-args="--disable-sdl"
|
2016-05-13 00:13:01 +02:00
|
|
|
|
|
|
|
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))
|