mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-27 15:33:28 +08:00
4308c270a7
Signed-off-by: Kadambini Nema <kadambini.nema@gmail.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
43 lines
1.3 KiB
Makefile
43 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# hwdata
|
|
#
|
|
################################################################################
|
|
|
|
HWDATA_VERSION = 0.379
|
|
HWDATA_SITE = $(call github,vcrhonek,hwdata,v$(HWDATA_VERSION))
|
|
HWDATA_LICENSE = GPL-2.0+, BSD-3-Clause, XFree86 1.0
|
|
HWDATA_LICENSE_FILES = COPYING LICENSE
|
|
HWDATA_INSTALL_STAGING = YES
|
|
|
|
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)
|
|
|
|
define HWDATA_CONFIGURE_CMDS
|
|
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure)
|
|
endef
|
|
|
|
define HWDATA_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) hwdata.pc
|
|
endef
|
|
|
|
ifneq ($(strip $(HWDATA_FILES)),)
|
|
define HWDATA_INSTALL_STAGING_CMDS
|
|
$(INSTALL) -D -m 0644 $(@D)/hwdata.pc \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/hwdata.pc
|
|
$(INSTALL) -d -m 755 $(STAGING_DIR)/usr/share/hwdata
|
|
$(INSTALL) -m 644 -t $(STAGING_DIR)/usr/share/hwdata \
|
|
$(addprefix $(@D)/,$(HWDATA_FILES))
|
|
endef
|
|
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))
|