summaryrefslogtreecommitdiffstats
path: root/package/memtester/memtester.mk
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-09-30 20:41:41 +0000
committerEric Andersen <andersen@codepoet.org>2005-09-30 20:41:41 +0000
commitf2a5ce4b9da5940604061294b2414e6d163ffc7b (patch)
tree2ad774b7cc900b93e52c025daee97a9c6beaf23a /package/memtester/memtester.mk
parent6628d4b2f68bdc61ac7e328c0d27b9affb43b4f0 (diff)
downloadbuildroot-novena-f2a5ce4b9da5940604061294b2414e6d163ffc7b.tar.gz
buildroot-novena-f2a5ce4b9da5940604061294b2414e6d163ffc7b.zip
Add iostat, ltt, xfsprogs, and memtester
Diffstat (limited to 'package/memtester/memtester.mk')
-rw-r--r--package/memtester/memtester.mk47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/memtester/memtester.mk b/package/memtester/memtester.mk
new file mode 100644
index 000000000..084e97f5e
--- /dev/null
+++ b/package/memtester/memtester.mk
@@ -0,0 +1,47 @@
+#############################################################
+#
+# memtester
+#
+#############################################################
+MEMTESTER_VER:=4.0.5
+MEMTESTER_SOURCE:=memtester-$(MEMTESTER_VER).tar.gz
+MEMTESTER_SITE:=http://pyropus.ca/software/memtester
+MEMTESTER_DIR:=$(BUILD_DIR)/memtester-$(MEMTESTER_VER)
+MEMTESTER_BINARY:=memtester
+MEMTESTER_TARGET_BINARY:=usr/bin/memtester
+
+$(DL_DIR)/$(MEMTESTER_SOURCE):
+ $(WGET) -P $(DL_DIR) $(MEMTESTER_SITE)/$(MEMTESTER_SOURCE)
+
+memtester-source: $(DL_DIR)/$(MEMTESTER_SOURCE)
+
+$(MEMTESTER_DIR)/.unpacked: $(DL_DIR)/$(MEMTESTER_SOURCE)
+ zcat $(DL_DIR)/$(MEMTESTER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ #toolchain/patch-kernel.sh $(MEMTESTER_DIR) package/memtester/ memtester\*.patch
+ $(SED) "s,cc,$(TARGET_CC)," $(MEMTESTER_DIR)/conf-*
+ touch $(MEMTESTER_DIR)/.unpacked
+
+$(MEMTESTER_DIR)/$(MEMTESTER_BINARY): $(MEMTESTER_DIR)/.unpacked
+ $(MAKE) -C $(MEMTESTER_DIR)
+ $(STRIP) $(MEMTESTER_DIR)/$(MEMTESTER_BINARY)
+
+$(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY): $(MEMTESTER_DIR)/$(MEMTESTER_BINARY)
+ $(INSTALL) -m 0755 -D $(MEMTESTER_DIR)/$(MEMTESTER_BINARY) $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
+
+memtester: uclibc $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
+
+memtester-clean:
+ rm -f $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
+ -$(MAKE) -C $(MEMTESTER_DIR) clean
+
+memtester-dirclean:
+ rm -rf $(MEMTESTER_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_MEMTESTER)),y)
+TARGETS+=memtester
+endif