package/numactl: add BR2_PACKAGE_NUMACTL_ARCH_SUPPORTS
authorBaruch Siach <baruch@tkos.co.il>
Thu, 4 Jun 2020 13:54:07 +0000 (16:54 +0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 4 Jun 2020 20:53:06 +0000 (22:53 +0200)
For use in other packages that select numactl.

Cc: Pierre-Jean Texier <pjtexier@koncepto.io>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/numactl/Config.in

index 8ea07bb856e8b97787cecff5d1ed871fd7e3069b..cd47f2f9a96709076fb180790b7d535eab0029c6 100644 (file)
@@ -1,9 +1,15 @@
-config BR2_PACKAGE_NUMACTL
-       bool "numactl"
+config BR2_PACKAGE_NUMACTL_ARCH_SUPPORTS
+       bool
        # numactl uses some system calls that are not available on all
        # architectures.
-       depends on BR2_aarch64 || BR2_i386 || BR2_mips || BR2_mipsel || \
-               BR2_mips64 || BR2_mips64el || BR2_powerpc || BR2_x86_64
+       default y if BR2_aarch64
+       default y if BR2_i386 || BR2_x86_64
+       default y if BR2_mips || BR2_mipsel ||  BR2_mips64 || BR2_mips64el
+       default y if BR2_powerpc
+
+config BR2_PACKAGE_NUMACTL
+       bool "numactl"
+       depends on BR2_PACKAGE_NUMACTL_ARCH_SUPPORTS
        help
          numactl allows you to run your application on specific cpus
          and memory nodes. It does this by supplying a NUMA memory