1 ################################################################################
5 ################################################################################
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
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
))
27 XVISOR_KCONFIG_EDITORS
= menuconfig
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
)
40 define XVISOR_INSTALL_IMAGES_CMDS
41 $(INSTALL
) -m
0644 -D
$(@D
)/build
/vmm.bin
$(BINARIES_DIR
)/vmm.bin
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
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
)
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
)
72 $(eval
$(kconfig-package
))