mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 2/2] net-snmp: explicitly en/disable PCI support
Date: Wed, 20 Nov 2019 15:24:37 +0100	[thread overview]
Message-ID: <20191120142437.15771-2-s.hauer@pengutronix.de> (raw)
In-Reply-To: <20191120142437.15771-1-s.hauer@pengutronix.de>

net-snmp is built with PCI support if PCIUTILS_LIBPCI is already built
or without PCI support otherwise. Add a switch to explicitly enable
PCI support and make sure it is built without PCI support when this
switch is not enabled.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 rules/net-snmp.in   | 6 ++++++
 rules/net-snmp.make | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/rules/net-snmp.in b/rules/net-snmp.in
index 413c862ee..0fd249aa3 100644
--- a/rules/net-snmp.in
+++ b/rules/net-snmp.in
@@ -9,6 +9,8 @@ menuconfig NET_SNMP
 	select LM_SENSORS	if NET_SNMP_MIB_MODULES_LM_SENSORS
 	select OPENSSL		if NET_SNMP_SHA_AES
 	select NET_SNMP_PRIVACY	if NET_SNMP_SHA_AES || NET_SNMP_DES
+	select PCIUTILS		if NET_SNMP_PCI
+	select PCIUTILS_LIBPCI	if NET_SNMP_PCI
 
 if NET_SNMP
 
@@ -195,6 +197,10 @@ config NET_SNMP_MIB_LOADING
 	bool
 	prompt "include code that parses and manipulates mib files"
 
+config NET_SNMP_PCI
+	bool
+	prompt "Compile with PCI support"
+
 config NET_SNMP_SNMPV1
 	bool
 	prompt "support for SNMPv1"
diff --git a/rules/net-snmp.make b/rules/net-snmp.make
index 243b84fe5..f90e0004e 100644
--- a/rules/net-snmp.make
+++ b/rules/net-snmp.make
@@ -38,6 +38,10 @@ NET_SNMP_MIB_MODULES-$(PTXCONF_NET_SNMP_MIB_MODULES_AGENTX) += agentx
 NET_SNMP_MIB_MODULES-$(PTXCONF_NET_SNMP_MIB_MODULES_UCD_SNMP) += ucd_snmp
 NET_SNMP_MIB_MODULES-$(PTXCONF_NET_SNMP_MIB_MODULES_LM_SENSORS) += ucd-snmp/lmsensorsMib
 
+ifndef PTXCONF_NET_SNMP_PCI
+NET_SNMP_ENV := $(CROSS_ENV) netsnmp_cv_func_pci_lookup_name_LMIBLIBS=no
+endif
+
 #
 # autoconf
 #
-- 
2.24.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      reply	other threads:[~2019-11-20 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-20 14:24 [ptxdist] [PATCH 1/2] net-snmp: version bump v5.7.3 -> v5.8 Sascha Hauer
2019-11-20 14:24 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191120142437.15771-2-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox