flashrom: moved to github
[packages.git] / utils / memtester / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=memtester
11 PKG_VERSION:=4.1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pyropus.ca/software/memtester/old-versions/
16 PKG_MD5SUM:=e562451620cf5343016950462bc0dc38
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/memtester
21   SECTION:=utils
22   CATEGORY:=Utilities
23   TITLE:=Userspace utility for testing the memory subsystem for faults
24   URL:=http://pyropus.ca/software/memtester/
25 endef
26
27 define Package/memtester/description
28  A userspace utility for testing the memory subsystem for faults.
29 endef
30
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
34 endef
35
36 define Build/Compile
37         $(MAKE) -C $(PKG_BUILD_DIR) all
38 endef
39
40 define Package/memtester/install
41         $(INSTALL_DIR) $(1)/usr/sbin
42         $(INSTALL_BIN) $(PKG_BUILD_DIR)/memtester $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,memtester))