From patchwork Thu Dec 5 17:15:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Drake X-Patchwork-Id: 1204732 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47TNG50nwGz9sPJ for ; Fri, 6 Dec 2019 04:37:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BE35A88C50; Thu, 5 Dec 2019 17:37:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8fFS6LFT3yaf; Thu, 5 Dec 2019 17:37:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 269AC88C39; Thu, 5 Dec 2019 17:37:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id AB5E11BF5AA for ; Thu, 5 Dec 2019 17:37:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A8C7387509 for ; Thu, 5 Dec 2019 17:37:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5qTiFA51N67n for ; Thu, 5 Dec 2019 17:37:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from imap2.colo.codethink.co.uk (imap2.colo.codethink.co.uk [78.40.148.184]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 2CCC287503 for ; Thu, 5 Dec 2019 17:37:23 +0000 (UTC) Received: from [167.98.27.226] (helo=ts007-build.ts007.codethink.co.uk) by imap2.colo.codethink.co.uk with esmtpsa (Exim 4.92 #3 (Debian)) id 1icuiz-0007Yj-Em; Thu, 05 Dec 2019 17:15:33 +0000 From: Michael Drake To: buildroot@busybox.net Date: Thu, 5 Dec 2019 17:15:14 +0000 Message-Id: <20191205171517.96639-28-michael.drake@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191205171517.96639-1-michael.drake@codethink.co.uk> References: <20191205171517.96639-1-michael.drake@codethink.co.uk> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v1 27/30] package/pciutils: Enable host package. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Drake , Thomas Preston Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Michael Drake Signed-off-by: Thomas Preston --- package/pciutils/pciutils.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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))