add memtester
[openwrt/svn-archive/archive.git] / utils / memtester / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=memtester
12 PKG_VERSION:=4.0.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://pyropus.ca/software/memtester/old-versions/
17 PKG_MD5SUM:=a4971ed1ccaf5b2e2148fd66b0eb7363
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/memtester
22 SECTION:=utils
23 CATEGORY:=Utilities
24 TITLE:=Userspace utility for testing the memory subsystem for faults
25 URL:=http://pyropus.ca/software/memtester/
26 endef
27
28 define Package/memtester/description
29 A userspace utility for testing the memory subsystem for faults.
30 endef
31
32 define Build/Configure
33 $(SED) 's,cc -O2,$(TARGET_CC) $(TARGET_CFLAGS),' $(PKG_BUILD_DIR)/conf-cc
34 $(SED) "s,cc,$(TARGET_CC)," $(PKG_BUILD_DIR)/conf-ld
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) all
39 endef
40
41 define Package/memtester/install
42 $(INSTALL_DIR) $(1)/usr/sbin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/memtester $(1)/usr/sbin/
44 endef
45
46 $(eval $(call BuildPackage,memtester))