From 319f18651fc831313071f08c25e246bfca0f10a7 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 8 Jan 2009 15:20:53 +0100 Subject: [PATCH] Fix format of the pciutils pci.ids.gz data file If ZLIB is present the filename of pci.ids is changed to pci.ids.gz but its not compressed, add a compressor to ensure its gzipped. svn revision 24647 (nkukard) --- package/pciutils/pciutils.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/pciutils/pciutils.mk b/package/pciutils/pciutils.mk index ae5964b..4c29459 100644 --- a/package/pciutils/pciutils.mk +++ b/package/pciutils/pciutils.mk @@ -18,9 +18,11 @@ PCIIDS_CAT:=$(BZCAT) ifeq ($(BR2_PACKAGE_ZLIB),y) PCIUTILS_HAVE_ZLIB=yes PCIIDS_FILE=pci.ids.gz +PCIIDS_COMPRESSOR=gzip -9 -c else PCIUTILS_HAVE_ZLIB=no PCIIDS_FILE=pci.ids +PCIIDS_COMPRESSOR=cat endif ifeq ($(BR2_ENABLE_SHARED),y) @@ -39,7 +41,7 @@ $(DL_DIR)/$(PCIIDS_SOURCE): $(PCIUTILS_DIR)/.unpacked: $(DL_DIR)/$(PCIUTILS_SOURCE) $(DL_DIR)/$(PCIIDS_SOURCE) $(PCIUTILS_CAT) $(DL_DIR)/$(PCIUTILS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - $(PCIIDS_CAT) $(DL_DIR)/$(PCIIDS_SOURCE) > $(PCIUTILS_DIR)/$(PCIIDS_FILE) + $(PCIIDS_CAT) $(DL_DIR)/$(PCIIDS_SOURCE) | $(PCIIDS_COMPRESSOR) > $(PCIUTILS_DIR)/$(PCIIDS_FILE) toolchain/patch-kernel.sh $(PCIUTILS_DIR) package/pciutils pciutils-$(PCIUTILS_VERSION)\*.patch #$(CONFIG_UPDATE) $(@D) $(SED) 's/uname -s/echo Linux/' \ -- 2.11.4.GIT