[RFC,v3,27/30] package/pciutils: Enable host package.
diff mbox series

Message ID 20191120173944.130142-28-thomas.preston@codethink.co.uk
State Superseded
Headers show
Series
  • Add Chromium Embedded Framework library
Related show

Commit Message

Thomas Preston Nov. 20, 2019, 5:39 p.m. UTC
From: Michael Drake <michael.drake@codethink.co.uk>

Signed-off-by: Michael Drake <michael.drake@codethink.co.uk>
---
 package/pciutils/pciutils.mk | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Patch
diff mbox series

diff --git a/package/pciutils/pciutils.mk b/package/pciutils/pciutils.mk
index 30d429e75a..b4bdbceefb 100644
--- a/package/pciutils/pciutils.mk
+++ b/package/pciutils/pciutils.mk
@@ -19,6 +19,8 @@  PCIUTILS_MAKE_OPTS = \
 	AR=$(TARGET_AR) \
 	DNS=no
 
+HOST_PCIUTILS_MAKE_OPTS = HWDB=no ZLIB=no SHARED=no
+
 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 PCIUTILS_DEPENDENCIES += udev
 PCIUTILS_MAKE_OPTS += HWDB=yes
@@ -71,4 +73,21 @@  define PCIUTILS_INSTALL_STAGING_CMDS
 		install install-lib install-pcilib
 endef
 
+define HOST_PCIUTILS_CONFIGURE_CMDS
+	$(SED) 's/wget --no-timestamping/wget/' $(PCIUTILS_DIR)/update-pciids.sh
+	$(SED) 's/^STRIP/#STRIP/' $(PCIUTILS_DIR)/Makefile
+endef
+
+define HOST_PCIUTILS_BUILD_CMDS
+	$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_PCIUTILS_MAKE_OPTS) \
+		PREFIX=""
+endef
+
+define HOST_PCIUTILS_INSTALL_CMDS
+	$(HOST_MAKE_ENV) $(MAKE1) -C $(@D) $(HOST_PCIUTILS_MAKE_OPTS) \
+		PREFIX=$(HOST_DIR) SBINDIR=$(HOST_DIR)/bin \
+		install install-lib install-pcilib
+endef
+
 $(eval $(generic-package))
+$(eval $(host-generic-package))