package/openvmtools: refactor using BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni 2022-08-02 00:24:05 +02:00
parent eda5590fa9
commit b05b6bb9fa

View File

@ -1,6 +1,11 @@
config BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS
bool
default y if BR2_i386
default y if BR2_x86_64
config BR2_PACKAGE_OPENVMTOOLS
bool "openvmtools"
depends on BR2_i386 || BR2_x86_64
depends on BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS
depends on BR2_USE_MMU # libglib2
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
@ -51,7 +56,7 @@ comment "resolutionkms needs udev, a toolchain w/ threads"
endif
comment "openvmtools needs a glibc or musl toolchain w/ wchar, threads, locale"
depends on BR2_i386 || BR2_x86_64
depends on BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_ENABLE_LOCALE || \