]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
lshw: use data files provided by hwdata
authorCarlos Santos <casantos@datacom.ind.br>
Sun, 28 Jan 2018 04:43:58 +0000 (02:43 -0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 26 Mar 2018 21:10:35 +0000 (23:10 +0200)
lshw is seldomly released, so its data files become easily
outdated. Instead, this commit makes use of the data files provided by
hwdata. This is easily possible because lshw looks for the files in
several directories, including /usr/share/hwdata, where the hwdata
collection is installed.

We remove the entire /usr/share/lshw directory, where the not very
up-to-date data files where installed. Four files were installed
there: pci.ids, usb.ids (which are now provided by hwdata), manuf.txt
and oui.txt (which are not used at run time).

Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
[Thomas:
 - rework commit log
 - replace patch by a simple removal of the /usr/share/lshw directory
 - add "runtime" comment in Config.in for the BR2_PACKAGE_LSHW
   dependency]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/lshw/Config.in
package/lshw/lshw.mk

index 3caac66c72cf661b2cc665b209ddf6935c6ff888..5e0e47b6e2e7666bb55dcbb5c909e2cc47d149dd 100644 (file)
@@ -2,6 +2,9 @@ config BR2_PACKAGE_LSHW
        bool "lshw"
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_USE_WCHAR
+       select BR2_PACKAGE_HWDATA # runtime
+       select BR2_PACKAGE_HWDATA_PCI_IDS
+       select BR2_PACKAGE_HWDATA_USB_IDS
        help
          lshw (Hardware Lister) is a small tool to provide
          detailed information on the hardware configuration of the
index 9b52b091675c595b62b8a2ab3599685f47f2c495..4195c073e2f9abd3b45bac611133071e1d64a1fe 100644 (file)
@@ -23,6 +23,7 @@ endef
 define LSHW_INSTALL_TARGET_CMDS
        $(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src DESTDIR=$(TARGET_DIR) \
                $(LSHW_MAKE_OPTS) install
+       $(RM) -rf $(TARGET_DIR)/usr/share/lshw
 endef
 
 $(eval $(generic-package))