Commit e871d1ff authored by Ed Swierk's avatar Ed Swierk Committed by Uwe Hermann
Browse files

Note in makefile messages that zlib may be needed for libpci


Currently the flashrom Makefile tries to detect whether pciutils-devel
is installed, but the test also fails if zlib-devel is missing.

This patch changes the error message accordingly.

Corresponding to flashrom svn r90 and coreboot v2 svn r2553.
Signed-off-by: default avatarEd Swierk <eswierk@arastra.com>
Signed-off-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
Acked-by: default avatarUwe Hermann <uwe@hermann-uwe.de>
parent ce1041c1
......@@ -41,14 +41,14 @@ dep:
@$(CC) -MM *.c > .dependencies
pciutils:
@echo; echo -n "Checking for pciutils... "
@echo; echo -n "Checking for pciutils and zlib... "
@$(shell ( echo "#include <pci/pci.h>"; \
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 && \
echo "found." || ( echo "not found."; echo; \
echo "Please install pciutils and pciutils-devel."; \
echo "Please install pciutils-devel and zlib-devel."; \
echo "See README for more information."; echo; \
rm -f .test.c .test; exit 1)
@rm -f .test.c .test
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment