[Buildroot] [git commit branch/2022.02.x] package/openvmtools: refactor using BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS

Peter Korsgaard peter at korsgaard.com
Sun Nov 13 16:00:46 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=3514b6e094d75cfcde8b1ecf8b3f061987d16335
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit b05b6bb9faab4e611e65227a4c4e9800b1556590)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/openvmtools/Config.in | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/package/openvmtools/Config.in b/package/openvmtools/Config.in
index c866b36569..88cccd08af 100644
--- a/package/openvmtools/Config.in
+++ b/package/openvmtools/Config.in
@@ -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 || \



More information about the buildroot mailing list