2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pyropus.ca/software/memtester/old-versions/
16 PKG_MD5SUM:=a4971ed1ccaf5b2e2148fd66b0eb7363
18 include $(INCLUDE_DIR)/package.mk
20 define Package/memtester
23 TITLE:=Userspace utility for testing the memory subsystem for faults
24 URL:=http://pyropus.ca/software/memtester/
27 define Package/memtester/description
28 A userspace utility for testing the memory subsystem for faults.
31 define Build/Configure
32 $(SED) 's,cc -O2,$(TARGET_CC) $(TARGET_CFLAGS),' $(PKG_BUILD_DIR)/conf-cc
33 $(SED) "s,cc,$(TARGET_CC)," $(PKG_BUILD_DIR)/conf-ld
37 $(MAKE) -C $(PKG_BUILD_DIR) all
40 define Package/memtester/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_BUILD_DIR)/memtester $(1)/usr/sbin/
45 $(eval $(call BuildPackage,memtester))