summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-06-02 06:13:56 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-11 22:40:07 +0200
commitdb44453a4536b6497fad4db259d3af0fa7c69cdd (patch)
treec7f1fdf6efd97a2577179e25a76bdc4d5035d0d1 /package
parentf83cd598907c5b8ac3a2b1bbb70c071d1ae929d8 (diff)
downloadbuildroot-novena-db44453a4536b6497fad4db259d3af0fa7c69cdd.tar.gz
buildroot-novena-db44453a4536b6497fad4db259d3af0fa7c69cdd.zip
pciutils: install headers and libraries in STAGING_DIR
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>
Diffstat (limited to 'package')
-rw-r--r--package/pciutils/pciutils.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/pciutils/pciutils.mk b/package/pciutils/pciutils.mk
index 37a17c475..7de5fd7b4 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))