diff mbox

[06/10] pciutils: install headers and libraries in STAGING_DIR

Message ID 51fc4647a457271fe2e6103b69108c3e1aafd24c.1338653505.git.thomas.petazzoni@free-electrons.com
State Accepted
Commit db44453a4536b6497fad4db259d3af0fa7c69cdd
Headers show

Commit Message

Thomas Petazzoni June 2, 2012, 4:13 p.m. UTC
There are some tools, like flashrom, that build against libraries of
pciutils.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/pciutils/pciutils.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Peter Korsgaard June 11, 2012, 8:43 p.m. UTC | #1
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> There are some tools, like flashrom, that build against libraries of
 Thomas> pciutils.

Committed, thanks.
diff mbox

Patch

diff --git a/package/pciutils/pciutils.mk b/package/pciutils/pciutils.mk
index 37a17c4..7de5fd7 100644
--- a/package/pciutils/pciutils.mk
+++ b/package/pciutils/pciutils.mk
@@ -6,6 +6,7 @@ 
 
 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
@@ -50,4 +51,11 @@  define PCIUTILS_INSTALL_TARGET_CMDS
 		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))