There are some tools, like flashrom, that build against libraries of
pciutils.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
PCIUTILS_VERSION = 3.1.9
PCIUTILS_SITE = ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci
+PCIUTILS_INSTALL_STAGING = YES
ifeq ($(BR2_PACKAGE_ZLIB),y)
PCIUTILS_ZLIB=yes
PCIUTILS_DEPENDENCIES += zlib
SHARED=$(PCIUTILS_SHARED) install-lib
endef
+define PCIUTILS_INSTALL_STAGING_CMDS
+ $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(STAGING_DIR)/usr \
+ SHARED=$(PCIUTILS_SHARED) install
+ $(MAKE) BUILDDIR=$(@D) -C $(@D) PREFIX=$(STAGING_DIR)/usr \
+ SHARED=$(PCIUTILS_SHARED) install-lib
+endef
+
$(eval $(call GENTARGETS))