![Carlos Santos](/assets/img/avatar_default.png)
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>
30 lines
803 B
Makefile
30 lines
803 B
Makefile
################################################################################
|
|
#
|
|
# lshw
|
|
#
|
|
################################################################################
|
|
|
|
LSHW_VERSION = B.02.18
|
|
LSHW_SITE = http://ezix.org/software/files
|
|
LSHW_LICENSE = GPL-2.0
|
|
LSHW_LICENSE_FILES = COPYING
|
|
|
|
LSHW_MAKE_OPTS = CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" AR="$(TARGET_AR)" \
|
|
RPM_OPT_FLAGS="$(TARGET_CFLAGS)" all
|
|
LSHW_MAKE_ENV = \
|
|
$(TARGET_MAKE_ENV) \
|
|
LIBS=$(TARGET_NLS_LIBS)
|
|
LSHW_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
define LSHW_BUILD_CMDS
|
|
$(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src $(LSHW_MAKE_OPTS)
|
|
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))
|