2005-09-30 22:41:41 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# memtester
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
MEMTESTER_VERSION:=4.0.6
|
|
|
|
MEMTESTER_SOURCE:=memtester-$(MEMTESTER_VERSION).tar.gz
|
2006-12-13 14:17:18 +01:00
|
|
|
MEMTESTER_SITE:=http://pyropus.ca/software/memtester/old-versions/
|
2007-07-11 16:06:06 +02:00
|
|
|
MEMTESTER_DIR:=$(BUILD_DIR)/memtester-$(MEMTESTER_VERSION)
|
2005-09-30 22:41:41 +02:00
|
|
|
MEMTESTER_BINARY:=memtester
|
|
|
|
MEMTESTER_TARGET_BINARY:=usr/bin/memtester
|
|
|
|
|
|
|
|
$(DL_DIR)/$(MEMTESTER_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(MEMTESTER_SITE),$(MEMTESTER_SOURCE))
|
2005-09-30 22:41:41 +02:00
|
|
|
|
|
|
|
memtester-source: $(DL_DIR)/$(MEMTESTER_SOURCE)
|
|
|
|
|
|
|
|
$(MEMTESTER_DIR)/.unpacked: $(DL_DIR)/$(MEMTESTER_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(MEMTESTER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-09-30 22:41:41 +02:00
|
|
|
#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)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(MEMTESTER_DIR)/$(MEMTESTER_BINARY)
|
2005-09-30 22:41:41 +02:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY): $(MEMTESTER_DIR)/$(MEMTESTER_BINARY)
|
|
|
|
$(INSTALL) -m 0755 -D $(MEMTESTER_DIR)/$(MEMTESTER_BINARY) $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
|
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
memtester: $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
|
2005-09-30 22:41:41 +02:00
|
|
|
|
|
|
|
memtester-clean:
|
|
|
|
rm -f $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
|
|
|
|
-$(MAKE) -C $(MEMTESTER_DIR) clean
|
|
|
|
|
|
|
|
memtester-dirclean:
|
|
|
|
rm -rf $(MEMTESTER_DIR)
|
|
|
|
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MEMTESTER),y)
|
2005-09-30 22:41:41 +02:00
|
|
|
TARGETS+=memtester
|
|
|
|
endif
|