Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions utils/memtester/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#
# Copyright (C) 2007-2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=memtester
PKG_VERSION:=4.7.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
PKG_SOURCE_URL:=http://http.debian.net/debian/pool/main/m/memtester/
Comment thread
brucerry marked this conversation as resolved.
PKG_HASH:=e427de663f7bd22d1ebee8af12506a852c010bd4fcbca1e0e6b02972d298b5bb
PKG_MAINTAINER:=hashashin <gentoo.power@gmail.com>
PKG_LICENSE:=AGPL-3.0-or-later
PKG_LICENSE_FILES:=LICENSE
Comment thread
brucerry marked this conversation as resolved.

include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
Comment thread
brucerry marked this conversation as resolved.

define Package/memtester
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Userspace utility for testing the memory subsystem for faults
URL:=https://packages.debian.org/source/sid/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
Comment thread
brucerry marked this conversation as resolved.
endef

define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) all
endef

define Package/memtester/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/memtester $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,memtester))