2022-05-30 22:20:48 +02:00
|
|
|
# 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
|
|
|
|
|
2021-05-24 14:29:01 +02:00
|
|
|
config BR2_PACKAGE_XMRIG
|
|
|
|
bool "xmrig"
|
2022-05-30 22:20:48 +02:00
|
|
|
depends on BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
2021-05-24 14:29:01 +02:00
|
|
|
depends on BR2_USE_MMU # libuv
|
|
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # libuv
|
|
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # libuv
|
|
|
|
# xmrig needs fenv.h which is not provided by uclibc
|
|
|
|
depends on !BR2_TOOLCHAIN_USES_UCLIBC
|
|
|
|
depends on !BR2_STATIC_LIBS # libuv
|
2022-04-03 18:17:51 +02:00
|
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
2021-05-24 14:29:01 +02:00
|
|
|
select BR2_PACKAGE_LIBUV
|
|
|
|
help
|
|
|
|
RandomX, CryptoNight, AstroBWT and Argon2 CPU/GPU miner.
|
|
|
|
|
|
|
|
https://xmrig.com
|
|
|
|
|
2022-04-03 18:17:51 +02:00
|
|
|
comment "xmrig needs a glibc or musl toolchain w/ NPTL, dynamic library, C++"
|
2022-05-30 22:20:48 +02:00
|
|
|
depends on BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
2021-05-24 14:29:01 +02:00
|
|
|
depends on BR2_USE_MMU
|
|
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
|
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
2022-04-03 18:17:51 +02:00
|
|
|
BR2_TOOLCHAIN_USES_UCLIBC || BR2_STATIC_LIBS || \
|
|
|
|
!BR2_INSTALL_LIBSTDCPP
|