diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2009-12-30 20:04:39 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2010-01-04 10:34:09 +0100 |
commit | c5c793da0de7f70e2ab697f149288614d324e292 (patch) | |
tree | a92e9c1bfd46fc208390d9803c9d08dfc90079d4 /rules/pciutils.make | |
parent | c1986dcfa62d776da82afef27721286fcd69c31c (diff) | |
download | ptxdist-c5c793da0de7f70e2ab697f149288614d324e292.tar.gz ptxdist-c5c793da0de7f70e2ab697f149288614d324e292.tar.xz |
[pciutils] cleanup targetinstall
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/pciutils.make')
-rw-r--r-- | rules/pciutils.make | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/rules/pciutils.make b/rules/pciutils.make index b8e0cbf2f..550c97259 100644 --- a/rules/pciutils.make +++ b/rules/pciutils.make @@ -78,10 +78,13 @@ $(STATEDIR)/pciutils.targetinstall: @$(call install_copy, pciutils, 0, 0, 0755, -, /usr/bin/lspci) @$(call install_copy, pciutils, 0, 0, 0755, -, /usr/bin/setpci) ifdef PTXCONF_PCIUTILS_COMPRESS - [ -f $(PCIUTILS_DIR)/pci.ids.gz ] || gzip --best -c $(PCIUTILS_DIR)/pci.ids > $(PCIUTILS_DIR)/pci.ids.gz - @$(call install_copy, pciutils, 0, 0, 0644, $(PCIUTILS_DIR)/pci.ids.gz, /usr/share/pci.ids.gz, n) + @$(call install_copy, pciutils, 0, 0, 0644, -, \ + /usr/share/pci.ids.gz, n) else - @$(call install_copy, pciutils, 0, 0, 0644, $(PCIUTILS_DIR)/pci.ids, /usr/share/pci.ids, n) + @gunzip -c $(PCIUTILS_PKGDIR)/usr/share/pci.ids.gz > \ + $(PCIUTILS_PKGDIR)/usr/share/pci.ids + @$(call install_copy, pciutils, 0, 0, 0644, -, \ + /usr/share/pci.ids, n) endif @$(call install_finish,pciutils) |