memtester.mk 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #############################################################
  2. #
  3. # memtester
  4. #
  5. #############################################################
  6. MEMTESTER_VERSION:=4.0.6
  7. MEMTESTER_SOURCE:=memtester-$(MEMTESTER_VERSION).tar.gz
  8. MEMTESTER_SITE:=http://pyropus.ca/software/memtester/old-versions/
  9. MEMTESTER_DIR:=$(BUILD_DIR)/memtester-$(MEMTESTER_VERSION)
  10. MEMTESTER_BINARY:=memtester
  11. MEMTESTER_TARGET_BINARY:=usr/bin/memtester
  12. $(DL_DIR)/$(MEMTESTER_SOURCE):
  13. $(call DOWNLOAD,$(MEMTESTER_SITE),$(MEMTESTER_SOURCE))
  14. memtester-source: $(DL_DIR)/$(MEMTESTER_SOURCE)
  15. $(MEMTESTER_DIR)/.unpacked: $(DL_DIR)/$(MEMTESTER_SOURCE)
  16. $(ZCAT) $(DL_DIR)/$(MEMTESTER_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
  17. #toolchain/patch-kernel.sh $(MEMTESTER_DIR) package/memtester/ memtester\*.patch
  18. $(SED) "s,cc,$(TARGET_CC)," $(MEMTESTER_DIR)/conf-*
  19. touch $(MEMTESTER_DIR)/.unpacked
  20. $(MEMTESTER_DIR)/$(MEMTESTER_BINARY): $(MEMTESTER_DIR)/.unpacked
  21. $(MAKE) -C $(MEMTESTER_DIR)
  22. $(STRIPCMD) $(MEMTESTER_DIR)/$(MEMTESTER_BINARY)
  23. $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY): $(MEMTESTER_DIR)/$(MEMTESTER_BINARY)
  24. $(INSTALL) -m 0755 -D $(MEMTESTER_DIR)/$(MEMTESTER_BINARY) $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
  25. memtester: uclibc $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
  26. memtester-clean:
  27. rm -f $(TARGET_DIR)/$(MEMTESTER_TARGET_BINARY)
  28. -$(MAKE) -C $(MEMTESTER_DIR) clean
  29. memtester-dirclean:
  30. rm -rf $(MEMTESTER_DIR)
  31. #############################################################
  32. #
  33. # Toplevel Makefile options
  34. #
  35. #############################################################
  36. ifeq ($(BR2_PACKAGE_MEMTESTER),y)
  37. TARGETS+=memtester
  38. endif