11a3d2a472
The hwdata collection is hosted at GitHub now and provides additional databases, besides pci.ids and usb.ids: - Individual Address Block (IAB) and Organizationally Unique Identifier (OUI) databases, from IEEE Registration Authority - PNP ID database (from Microsoft) Install only pci.ids and usb.ids by default, to keep compatibility with previous versions. In the future we can make other packages (pciutils, lshw) use the common files instead of installing their own copies, thus saving some storage space. [Peter: drop BR2_PACKAGE_HWDATA_ANY and build time error, rework install step] Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
27 lines
826 B
Makefile
27 lines
826 B
Makefile
################################################################################
|
|
#
|
|
# hwdata
|
|
#
|
|
################################################################################
|
|
|
|
HWDATA_VERSION = v0.308
|
|
HWDATA_SITE = $(call github,vcrhonek,hwdata,$(HWDATA_VERSION))
|
|
HWDATA_LICENSE = GPL-2.0+, BSD-3-Clause, XFree86 1.0
|
|
HWDATA_LICENSE_FILES = COPYING LICENSE
|
|
|
|
HWDATA_FILES = \
|
|
$(if $(BR2_PACKAGE_HWDATA_IAB_OUI_TXT),iab.txt oui.txt) \
|
|
$(if $(BR2_PACKAGE_HWDATA_PCI_IDS),pci.ids) \
|
|
$(if $(BR2_PACKAGE_HWDATA_PNP_IDS),pnp.ids) \
|
|
$(if $(BR2_PACKAGE_HWDATA_USB_IDS),usb.ids)
|
|
|
|
ifneq ($(strip $(HWDATA_FILES)),)
|
|
define HWDATA_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -d -m 755 $(TARGET_DIR)/usr/share/hwdata
|
|
$(INSTALL) -m 644 -t $(TARGET_DIR)/usr/share/hwdata \
|
|
$(addprefix $(@D)/,$(HWDATA_FILES))
|
|
endef
|
|
endif
|
|
|
|
$(eval $(generic-package))
|