1 #############################################################
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
13 $(DL_DIR
)/$(MEMTESTER_SOURCE
):
14 $(WGET
) -P
$(DL_DIR
) $(MEMTESTER_SITE
)/$(MEMTESTER_SOURCE
)
16 memtester-source
: $(DL_DIR
)/$(MEMTESTER_SOURCE
)
18 $(MEMTESTER_DIR
)/.unpacked
: $(DL_DIR
)/$(MEMTESTER_SOURCE
)
19 $(ZCAT
) $(DL_DIR
)/$(MEMTESTER_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
20 #toolchain/patch-kernel.sh $(MEMTESTER_DIR) package/memtester/ memtester\*.patch
21 $(SED
) "s,cc,$(TARGET_CC)," $(MEMTESTER_DIR
)/conf-
*
22 touch
$(MEMTESTER_DIR
)/.unpacked
24 $(MEMTESTER_DIR
)/$(MEMTESTER_BINARY
): $(MEMTESTER_DIR
)/.unpacked
25 $(MAKE
) -C
$(MEMTESTER_DIR
)
26 $(STRIPCMD
) $(MEMTESTER_DIR
)/$(MEMTESTER_BINARY
)
28 $(TARGET_DIR
)/$(MEMTESTER_TARGET_BINARY
): $(MEMTESTER_DIR
)/$(MEMTESTER_BINARY
)
29 $(INSTALL
) -m
0755 -D
$(MEMTESTER_DIR
)/$(MEMTESTER_BINARY
) $(TARGET_DIR
)/$(MEMTESTER_TARGET_BINARY
)
31 memtester
: uclibc
$(TARGET_DIR
)/$(MEMTESTER_TARGET_BINARY
)
34 rm -f
$(TARGET_DIR
)/$(MEMTESTER_TARGET_BINARY
)
35 -$(MAKE
) -C
$(MEMTESTER_DIR
) clean
38 rm -rf
$(MEMTESTER_DIR
)
40 #############################################################
42 # Toplevel Makefile options
44 #############################################################
45 ifeq ($(strip $(BR2_PACKAGE_MEMTESTER
)),y
)