package/xmrig: new package
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> [me: - introduce XMRIG_SUFFIX - extend comment about installation commands ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
dbc6e9e9f3
commit
6f70990ccf
@ -455,6 +455,7 @@ F: package/waylandpp/
|
|||||||
F: package/x11r7/
|
F: package/x11r7/
|
||||||
F: package/x264/
|
F: package/x264/
|
||||||
F: package/x265/
|
F: package/x265/
|
||||||
|
F: package/xmrig/
|
||||||
F: package/ytree/
|
F: package/ytree/
|
||||||
F: package/znc/
|
F: package/znc/
|
||||||
F: support/testing/tests/package/test_perl_html_parser.py
|
F: support/testing/tests/package/test_perl_html_parser.py
|
||||||
|
@ -2061,6 +2061,7 @@ menu "Miscellaneous"
|
|||||||
source "package/sunwait/Config.in"
|
source "package/sunwait/Config.in"
|
||||||
source "package/taskd/Config.in"
|
source "package/taskd/Config.in"
|
||||||
source "package/wine/Config.in"
|
source "package/wine/Config.in"
|
||||||
|
source "package/xmrig/Config.in"
|
||||||
source "package/xutil_util-macros/Config.in"
|
source "package/xutil_util-macros/Config.in"
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
22
package/xmrig/Config.in
Normal file
22
package/xmrig/Config.in
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
config BR2_PACKAGE_XMRIG
|
||||||
|
bool "xmrig"
|
||||||
|
# archs officially supported by upstream
|
||||||
|
depends on BR2_aarch64 || BR2_x86_64 || BR2_i386
|
||||||
|
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
|
||||||
|
select BR2_PACKAGE_LIBUV
|
||||||
|
help
|
||||||
|
RandomX, CryptoNight, AstroBWT and Argon2 CPU/GPU miner.
|
||||||
|
|
||||||
|
https://xmrig.com
|
||||||
|
|
||||||
|
comment "xmrig needs a glibc or musl toolchain w/ NPTL, dynamic library"
|
||||||
|
depends on BR2_aarch64 || BR2_x86_64 || BR2_i386
|
||||||
|
depends on BR2_USE_MMU
|
||||||
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||||
|
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \
|
||||||
|
BR2_TOOLCHAIN_USES_UCLIBC || BR2_STATIC_LIBS
|
3
package/xmrig/xmrig.hash
Normal file
3
package/xmrig/xmrig.hash
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Locally calculated
|
||||||
|
sha256 7570030c4b3e257bda190a100dc59f78b74c823af7561222a99b296f5e7b1ac2 xmrig-6.12.1.tar.gz
|
||||||
|
sha256 589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2 LICENSE
|
43
package/xmrig/xmrig.mk
Normal file
43
package/xmrig/xmrig.mk
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# xmrig
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
XMRIG_VERSION = 6.12.1
|
||||||
|
XMRIG_SITE = $(call github,xmrig,xmrig,v$(XMRIG_VERSION))
|
||||||
|
XMRIG_LICENSE = GPL-3.0+
|
||||||
|
XMRIG_LICENSE_FILES = LICENSE
|
||||||
|
XMRIG_DEPENDENCIES = libuv
|
||||||
|
XMRIG_CONF_OPTS = -DWITH_CUDA=OFF
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_HAS_LIBOPENCL),y)
|
||||||
|
XMRIG_CONF_OPTS += -DWITH_OPENCL=ON
|
||||||
|
XMRIG_DEPENDENCIES += libopencl
|
||||||
|
else
|
||||||
|
XMRIG_CONF_OPTS += -DWITH_OPENCL=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_HWLOC),y)
|
||||||
|
XMRIG_CONF_OPTS += -DWITH_HWLOC=ON
|
||||||
|
XMRIG_DEPENDENCIES += hwloc
|
||||||
|
else
|
||||||
|
XMRIG_CONF_OPTS += -DWITH_HWLOC=OFF
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||||
|
XMRIG_CONF_OPTS += -DWITH_TLS=ON
|
||||||
|
XMRIG_DEPENDENCIES += openssl
|
||||||
|
else
|
||||||
|
XMRIG_CONF_OPTS += -DWITH_TLS=OFF
|
||||||
|
XMRIG_SUFFIX = -notls
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Upstream provides no installation rule:
|
||||||
|
# *** No rule to make target 'install/fast'. Stop.
|
||||||
|
define XMRIG_INSTALL_TARGET_CMDS
|
||||||
|
$(INSTALL) -m 0755 -D $(@D)/xmrig$(XMRIG_SUFFIX) \
|
||||||
|
$(TARGET_DIR)/usr/bin/xmrig$(XMRIG_SUFFIX)
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(cmake-package))
|
Loading…
Reference in New Issue
Block a user