[PATCH] update-pciids: fix PCI_COMPRESSED_IDS value when zlib is disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you build with zlib disabled, then PCI_COMPRESSED_IDS is not defined,
which generates the line in the update script:
	PCI_COMPRESSED_IDS=
which in turn causes the update script to warn:
	bash: [: : integer expression expected

So default it to 0 to avoid that logic.

Reported-by: AlphatPC@xxxxxxxxx
Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index d5ed7ac..86fb0c7 100644
--- a/Makefile
+++ b/Makefile
@@ -77,6 +77,7 @@ ls-map.o: ls-map.c $(LSPCIINC)
 setpci.o: setpci.c pciutils.h $(PCIINC)
 common.o: common.c pciutils.h $(PCIINC)
 
+PCI_COMPRESSED_IDS ?= 0
 update-pciids: update-pciids.sh
 	sed <$< >$@ "s@^DEST=.*@DEST=$(IDSDIR)/$(PCI_IDS)@;s@^PCI_COMPRESSED_IDS=.*@PCI_COMPRESSED_IDS=$(PCI_COMPRESSED_IDS)@"
 	chmod +x $@
-- 
1.7.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux