Initial Commit
- initial default booting image
This commit is contained in:
35
package/xmrig/Config.in
Normal file
35
package/xmrig/Config.in
Normal file
@@ -0,0 +1,35 @@
|
||||
# archs officially supported by upstream
|
||||
config BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_ARM_CPU_ARMV7A
|
||||
default y if BR2_ARM_CPU_ARMV8A
|
||||
default y if BR2_aarch64
|
||||
default y if BR2_RISCV_64
|
||||
default y if BR2_x86_64
|
||||
default y if BR2_i386
|
||||
|
||||
config BR2_PACKAGE_XMRIG
|
||||
bool "xmrig"
|
||||
depends on BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
||||
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
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libuv
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
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, C++, gcc >= 4.9"
|
||||
depends on BR2_PACKAGE_XMRIG_ARCH_SUPPORTS
|
||||
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 || \
|
||||
!BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
|
||||
3
package/xmrig/xmrig.hash
Normal file
3
package/xmrig/xmrig.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally calculated
|
||||
sha256 5005144e78571f26586410c2b2ede2b0c72afe22f97f1708ea24cfb253c3939b xmrig-6.26.0.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.26.0
|
||||
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))
|
||||
Reference in New Issue
Block a user