mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
package/xmrig: introduce BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
This allows to avoid duplicating the list of architectures supported by xmrig. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
@@ -1,7 +1,14 @@
|
|||||||
|
# archs officially supported by upstream
|
||||||
|
config BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
||||||
|
bool
|
||||||
|
default y if BR2_ARM_CPU_ARMV7A
|
||||||
|
default y if BR2_aarch64
|
||||||
|
default y if BR2_x86_64
|
||||||
|
default y if BR2_i386
|
||||||
|
|
||||||
config BR2_PACKAGE_XMRIG
|
config BR2_PACKAGE_XMRIG
|
||||||
bool "xmrig"
|
bool "xmrig"
|
||||||
# archs officially supported by upstream
|
depends on BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
||||||
depends on BR2_ARM_CPU_ARMV7A || BR2_aarch64 || BR2_x86_64 || BR2_i386
|
|
||||||
depends on BR2_USE_MMU # libuv
|
depends on BR2_USE_MMU # libuv
|
||||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
|
||||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
|
||||||
@@ -16,7 +23,7 @@ config BR2_PACKAGE_XMRIG
|
|||||||
https://xmrig.com
|
https://xmrig.com
|
||||||
|
|
||||||
comment "xmrig needs a glibc or musl toolchain w/ NPTL, dynamic library, C++"
|
comment "xmrig needs a glibc or musl toolchain w/ NPTL, dynamic library, C++"
|
||||||
depends on BR2_ARM_CPU_ARMV7A || BR2_aarch64 || BR2_x86_64 || BR2_i386
|
depends on BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
||||||
depends on BR2_USE_MMU
|
depends on BR2_USE_MMU
|
||||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||||
|
|||||||
Reference in New Issue
Block a user