Hello,

>From time to time, flashrom build produces some errors. CC1 or GCC complain
about some missing file.

It comes from the pciutils rules :
steph-laptop:~/Work/Flashrom/flashrom> make pciutils

Checking for pciutils and zlib... found.
steph-laptop:~/Work/Flashrom/flashrom> make pciutils

Checking for pciutils and zlib... found.
steph-laptop:~/Work/Flashrom/flashrom> cc1: erreur: .test.c : Aucun fichier ou
dossier de ce type
make pciutils

Checking for pciutils and zlib... found.
steph-laptop:~/Work/Flashrom/flashrom> gcc: .test.c : Aucun fichier ou dossier
de ce type

Have a look to the .test.c compilation rule :
        @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null &&
which is understood like
        @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) & >/dev/null &&
but not like
        @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) >/dev/null 2>&1 &&
which looks more to be what was expected, initially.

Patch is below and attached.

Make good use of it.

  Stephan.

Signed-off-by: Stephan Guilloux <[email protected]>
Index: flashrom-patch-Makefile/Makefile
===================================================================
--- flashrom-patch-Makefile/Makefile    (révision 4171)
+++ flashrom-patch-Makefile/Makefile    (copie de travail)
@@ -65,7 +65,7 @@
                   echo "struct pci_access *pacc;";        \
                   echo "int main(int argc, char **argv)"; \
                   echo "{ pacc = pci_alloc(); return 0; }"; ) > .test.c )
-       @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null &&     \
+       @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) >/dev/null 2>&1 && \
                echo "found." || ( echo "not found."; echo;             \
                echo "Please install pciutils-devel and zlib-devel.";   \
                echo "See README for more information."; echo;          \
Index: flashrom-patch-Makefile/Makefile
===================================================================
--- flashrom-patch-Makefile/Makefile	(révision 4171)
+++ flashrom-patch-Makefile/Makefile	(copie de travail)
@@ -65,7 +65,7 @@
 		   echo "struct pci_access *pacc;";	   \
 		   echo "int main(int argc, char **argv)"; \
 		   echo "{ pacc = pci_alloc(); return 0; }"; ) > .test.c )
-	@$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) &>/dev/null &&	\
+	@$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) >/dev/null 2>&1 &&	\
 		echo "found." || ( echo "not found."; echo;		\
 		echo "Please install pciutils-devel and zlib-devel.";	\
 		echo "See README for more information."; echo;		\
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to