Browse Source

package/openvmtools: refactor using BR2_PACKAGE_OPENVMTOOLS_ARCH_SUPPORTS

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit b05b6bb9faab4e611e65227a4c4e9800b1556590)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Thomas Petazzoni 3 years ago
parent
commit
3514b6e094
1 changed files with 7 additions and 2 deletions
  1. 7 2
      package/openvmtools/Config.in

+ 7 - 2
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 || \