python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / xvisor / xvisor.mk
bloba9a5dbfaec43e29f003c6f953f4f1d2fa3589fdd
1 ################################################################################
3 # xvisor
5 ################################################################################
7 XVISOR_VERSION = 0.2.8
8 XVISOR_SITE = http://www.xhypervisor.org/tarball
9 XVISOR_LICENSE = GPLv2+
10 XVISOR_LICENSE_FILES = COPYING
11 XVISOR_INSTALL_IMAGES = YES
12 XVISOR_INSTALL_TARGET = NO
14 XVISOR_MAKE_TARGETS = all
16 ifeq ($(BR2_PACKAGE_XVISOR_BUILD_TEST_DTB),y)
17 XVISOR_MAKE_TARGETS += dtbs
18 endif
20 XVISOR_KCONFIG_DOTCONFIG = build/openconf/.config
22 ifeq ($(BR2_PACKAGE_XVISOR_USE_DEFCONFIG),y)
23 XVISOR_KCONFIG_DEFCONFIG = $(call qstrip,$(BR2_PACKAGE_XVISOR_DEFCONFIG))-defconfig
24 else ifeq ($(BR2_PACKAGE_XVISOR_USE_CUSTOM_CONFIG),y)
25 XVISOR_KCONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_XVISOR_CUSTOM_CONFIG_FILE))
26 endif
27 XVISOR_KCONFIG_EDITORS = menuconfig
29 XVISOR_MAKE_ENV = \
30 ARCH=$(if $(BR2_x86_64),x86,$(BR2_ARCH)) \
31 CROSS_COMPILE=$(TARGET_CROSS)
33 XVISOR_MAKE_OPTS = $(if $(VERBOSE),VERBOSE=1)
35 define XVISOR_BUILD_CMDS
36 $(TARGET_MAKE_ENV) $(XVISOR_MAKE_ENV) $(MAKE) $(XVISOR_MAKE_OPTS) \
37 -C $(@D) $(XVISOR_MAKE_TARGETS)
38 endef
40 define XVISOR_INSTALL_IMAGES_CMDS
41 $(INSTALL) -m 0644 -D $(@D)/build/vmm.bin $(BINARIES_DIR)/vmm.bin
42 endef
44 ifeq ($(BR2_PACKAGE_XVISOR_CREATE_UBOOT_IMAGE),y)
45 XVISOR_DEPENDENCIES += host-uboot-tools
46 define XVISOR_CREATE_UBOOT_IMAGE
47 $(MKIMAGE) -A $(MKIMAGE_ARCH) -O linux -T kernel -C none \
48 -a 0x00008000 -e 0x00008000 \
49 -n Xvisor -d $(BINARIES_DIR)/vmm.bin $(BINARIES_DIR)/uvmm.bin
50 endef
51 endif
53 XVISOR_POST_INSTALL_IMAGES_HOOKS += XVISOR_CREATE_UBOOT_IMAGE
55 # Checks to give errors that the user can understand
56 ifeq ($(BR_BUILDING),y)
58 ifeq ($(BR2_PACKAGE_XVISOR_USE_DEFCONFIG),y)
59 ifeq ($(call qstrip,$(BR2_PACKAGE_XVISOR_DEFCONFIG)),)
60 $(error No Xvisor defconfig name specified, check your BR2_PACKAGE_XVISOR_DEFCONFIG setting)
61 endif
62 endif
64 ifeq ($(BR2_PACKAGE_XVISOR_USE_CUSTOM_CONFIG),y)
65 ifeq ($(BR2_PACKAGE_XVISOR_CUSTOM_CONFIG_FILE),)
66 $(error No Xvisor configuration file specified, check your BR2_PACKAGE_XVISOR_CUSTOM_CONFIG_FILE setting)
67 endif
68 endif
70 endif
72 $(eval $(kconfig-package))