memtester: (APP-3632, PR #896) add memtester package

I've used this a couple of time for Artini, and thought it
may as well sit in morse_feed if we need it. I'm not planning
to put it into any of the board configs.


Approved-by: Sophronia Koilpillai
Approved-by: Arien Judge
Approved-by: Evan Benn
This commit is contained in:
James Haggerty 2024-10-25 00:04:26 +00:00 committed by Arien Judge
parent 9478e3360e
commit b828bedc50

40
utils/memtester/Makefile Normal file
View File

@ -0,0 +1,40 @@
# From https://github.com/openwrt/packages/pull/21625/
include $(TOPDIR)/rules.mk
PKG_NAME:=memtester
PKG_VERSION:=4.6.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=https://deb.debian.org/debian/pool/main/m/memtester
#https://pyropus.ca./software/memtester/old-versions/
PKG_HASH:=c9fe4eb7e80c8cef5202f9065c4c0682f5616647c0455e916a5700f98e3dbb2e
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Morse Micro
include $(INCLUDE_DIR)/package.mk
define Package/memtester
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Userspace utility for testing the memory subsystem for faults
URL:=https://pyropus.ca./software/memtester/
endef
define Package/memtester/description
A userspace utility for testing the memory subsystem for faults.
endef
define Build/Configure
$(SED) 's|cc -O2|$(TARGET_CC) $(TARGET_CFLAGS)|' $(PKG_BUILD_DIR)/conf-cc
$(SED) 's|cc|$(TARGET_CC)|' $(PKG_BUILD_DIR)/conf-ld
endef
define Package/memtester/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/memtester $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,memtester))