logrotate: enable selinux support
[buildroot-gz.git] / package / xen / xen.mk
blob7d32e52702c1de91cc6ce6551e2b0bdf71e9aad9
1 ################################################################################
3 # Xen
5 ################################################################################
7 XEN_VERSION = 4.7.1
8 XEN_SITE = http://bits.xensource.com/oss-xen/release/$(XEN_VERSION)
9 XEN_LICENSE = GPLv2
10 XEN_LICENSE_FILES = COPYING
11 XEN_DEPENDENCIES = host-python
13 # Calculate XEN_ARCH
14 ifeq ($(ARCH),aarch64)
15 XEN_ARCH = arm64
16 else ifeq ($(ARCH),arm)
17 XEN_ARCH = arm32
18 endif
20 XEN_CONF_OPTS = --disable-ocamltools
22 XEN_CONF_ENV = PYTHON=$(HOST_DIR)/usr/bin/python2
23 XEN_MAKE_ENV = \
24 XEN_TARGET_ARCH=$(XEN_ARCH) \
25 CROSS_COMPILE=$(TARGET_CROSS) \
26 $(TARGET_CONFIGURE_OPTS)
28 ifeq ($(BR2_PACKAGE_XEN_HYPERVISOR),y)
29 XEN_MAKE_OPTS += dist-xen
30 XEN_INSTALL_IMAGES = YES
31 define XEN_INSTALL_IMAGES_CMDS
32 cp $(@D)/xen/xen $(BINARIES_DIR)
33 endef
34 else
35 XEN_CONF_OPTS += --disable-xen
36 endif
38 ifeq ($(BR2_PACKAGE_XEN_TOOLS),y)
39 XEN_DEPENDENCIES += dtc libaio libglib2 ncurses openssl pixman util-linux yajl
40 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
41 XEN_DEPENDENCIES += argp-standalone
42 endif
43 XEN_INSTALL_TARGET_OPTS += DESTDIR=$(TARGET_DIR) install-tools
44 XEN_MAKE_OPTS += dist-tools
46 define XEN_INSTALL_INIT_SYSV
47 mv $(TARGET_DIR)/etc/init.d/xencommons $(TARGET_DIR)/etc/init.d/S50xencommons
48 mv $(TARGET_DIR)/etc/init.d/xen-watchdog $(TARGET_DIR)/etc/init.d/S50xen-watchdog
49 mv $(TARGET_DIR)/etc/init.d/xendomains $(TARGET_DIR)/etc/init.d/S60xendomains
50 endef
51 else
52 XEN_INSTALL_TARGET = NO
53 XEN_CONF_OPTS += --disable-tools
54 endif
56 $(eval $(autotools-package))