memtester: fix rebuild
authorBaruch Siach <baruch@tkos.co.il>
Tue, 16 Sep 2014 19:37:00 +0000 (22:37 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 16 Sep 2014 20:09:57 +0000 (22:09 +0200)
Do the edit of conf-* files only when 'cc' appears at the beginning of line,
i.e. the files has not been edited. Otherwise, the 'cc' part of the cross
toolchain gets expanded, leading to the following error on 'make
memtester-rebuild':

./compile: line 3: /home/baruch/git/buildroot/output/host/usr/bin/i686-pc-linux-gnu-g/home/baruch/git/buildroot/output/host/usr/bin/i686-pc-linux-gnu-gcc: No such file or directory
Makefile:82: recipe for target 'memtester.o' failed
make[1]: *** [memtester.o] Error 127

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/memtester/memtester.mk

index 900c10d2b2f371f5d1d68721858d6c4efe226a59..d12babca30749b168a9744abff5875156f71a52d 100644 (file)
@@ -12,7 +12,7 @@ MEMTESTER_LICENSE_FILES = COPYING
 MEMTESTER_TARGET_INSTALL_OPTS = INSTALLPATH=$(TARGET_DIR)/usr
 
 define MEMTESTER_BUILD_CMDS
-       $(SED) "s,cc,$(TARGET_CC)," $(@D)/conf-*
+       $(SED) "s,^cc,$(TARGET_CC)," $(@D)/conf-*
        $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
 endef