memtester: fix rebuild
PATCH 1/1 memtester: fix rebuild
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
--- package/memtester/memtester.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/memtester/memtester.mk +1 -1
@@ -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
Signature · 1 line
2.1.0
PATCH 1/1 memtester: fix rebuild
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Baruch" == Baruch Siach <[email protected]> writes:
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':
Quoted 5 lines
./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 127Signed-off-by Baruch Siach <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard