1config BR2_PACKAGE_XVISOR_ARCH_SUPPORTS
2	bool
3	default y if BR2_aarch64
4	default y if BR2_cortex_a7 || BR2_cortex_a12 || BR2_cortex_a15 || BR2_cortex_a17
5	default y if BR2_riscv
6	default y if BR2_x86_64
7	depends on BR2_USE_MMU
8
9menuconfig BR2_PACKAGE_XVISOR
10	bool "xvisor"
11	depends on BR2_PACKAGE_XVISOR_ARCH_SUPPORTS
12	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
13	help
14	  Xvisor is an open-source type-1 hypervisor, which aims at
15	  providing a monolithic, light-weight, portable, and flexible
16	  virtualization solution.
17
18	  http://www.xhypervisor.org/
19
20if BR2_PACKAGE_XVISOR
21
22choice
23	prompt "Xvisor configuration"
24	default BR2_PACKAGE_XVISOR_USE_DEFCONFIG
25
26config BR2_PACKAGE_XVISOR_USE_DEFCONFIG
27	bool "Using an in-tree defconfig file"
28
29config BR2_PACKAGE_XVISOR_USE_CUSTOM_CONFIG
30	bool "Using a custom (def)config file"
31
32endchoice
33
34config BR2_PACKAGE_XVISOR_DEFCONFIG
35	string "Defconfig name"
36	default "generic-v7-ve" if BR2_ARM_CPU_ARMV7A
37	default "generic-v8" if BR2_aarch64
38	default "generic-32b" if BR2_RISCV_32
39	default "generic-64b" if BR2_RISCV_64
40	default "x86_64_generic" if BR2_x86_64
41	depends on BR2_PACKAGE_XVISOR_USE_DEFCONFIG
42	help
43	  Name of the Xvisor defconfig file to use, without the
44	  trailing -defconfig. The defconfig is located in
45	  arch/<arch>/configs in the source tree.
46
47config BR2_PACKAGE_XVISOR_CUSTOM_CONFIG_FILE
48	string "Configuration file path"
49	depends on BR2_PACKAGE_XVISOR_USE_CUSTOM_CONFIG
50	help
51	  Path to the Xvisor configuration file
52
53config BR2_PACKAGE_XVISOR_CREATE_UBOOT_IMAGE
54	bool "Create U-Boot image of Xvisor"
55	depends on BR2_arm
56	select BR2_PACKAGE_HOST_UBOOT_TOOLS
57	help
58	  Create an image file of Xvisor loadable from Das U-Boot.
59
60config BR2_PACKAGE_XVISOR_BUILD_TEST_DTB
61	bool "Build test device-tree blobs"
62	help
63	  Build test device-tree blobs for popular boards.
64
65endif
66
67comment "xvisor needs a toolchain w/ gcc >= 4.9"
68	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
69	depends on BR2_PACKAGE_XVISOR_ARCH_SUPPORTS
70