Skip to contentSkip to conversation

iproute2: tipc support needs 3.18+ headers

PATCH New Gustavo Zacarias 2 participants 2 messages Jun 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iproute2: tipc support needs 3.18+ headers

Fixes:
http://autobuild.buildroot.net/results/173/173c9dbed6422a3cc4f9d1f998bc25ce2e9538c7/

---
 package/iproute2/iproute2.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
package/iproute2/iproute2.mk +7 -1
index dabc8b4..b2627ec 100644
@@ -17,8 +17,13 @@ ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 IPROUTE2_DEPENDENCIES += busybox
 endif
 
-ifeq ($(BR2_PACKAGE_LIBMNL),y)
+# tipc support needs 3.18+ headers and libmnl
+ifeq ($(BR2_PACKAGE_LIBMNL)$(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18),yy)
 IPROUTE2_DEPENDENCIES += libmnl
+else
+define IPROUTE2_DISABLE_TIPC
+	$(SED) '/HAVE_MNL/d' $(@D)/Config
+endef
 endif
 
 # If we've got iptables enable xtables support for tc
@@ -57,6 +62,7 @@ define IPROUTE2_CONFIGURE_CMDS
 	cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure
 	$(IPROUTE2_DISABLE_ARPD)
 	$(IPROUTE2_WITH_IPTABLES)
+	$(IPROUTE2_DISABLE_TIPC)
 endef
 
 define IPROUTE2_BUILD_CMDS
Signature · 1 line
2.3.6
#1 lore raw

PATCH 1/1 iproute2: tipc support needs 3.18+ headers

Dear Gustavo Zacarias,

Quoted 7 lines · Gustavo Zacarias

Fixes:
http://autobuild.buildroot.net/results/173/173c9dbed6422a3cc4f9d1f998bc25ce2e9538c7/

---
 package/iproute2/iproute2.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com