From f450b8619ebcd8dee94d175b2710f07e9884696d Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sat, 13 Oct 2012 02:33:35 +0200 Subject: inteltool: remove bashism from Makefile &> is a bashism to redirect both outward streams (stdout and stderr), but with other shells this introduces a race condition with the rm command after it, because the compiler execution is done in the background/ in parallel. Found and tested with dash. Change-Id: I08516494828c9f7af168f954f2df027372657867 Signed-off-by: Stefan Tauner Reviewed-on: http://review.coreboot.org/1573 Tested-by: build bot (Jenkins) Reviewed-by: Bernhard Urban Reviewed-by: Peter Stuge --- util/inteltool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/inteltool/Makefile') diff --git a/util/inteltool/Makefile b/util/inteltool/Makefile index d7540059be..af79b1edec 100644 --- a/util/inteltool/Makefile +++ b/util/inteltool/Makefile @@ -59,7 +59,7 @@ pciutils: printf "struct pci_access *pacc;\n"; \ printf "int main(int argc, char **argv)\n"; \ printf "{ pacc = pci_alloc(); return 0; }\n"; ) > .test.c ) - @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null && \ + @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) >/dev/null 2>&1 && \ printf "found.\n" || ( printf "not found.\n\n"; \ printf "Please install pciutils-devel and zlib-devel.\n"; \ printf "See README for more information.\n\n"; \ -- cgit v1.2.3