summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/iproute2-4.2.0/0001-build-system-fixes.patch (renamed from patches/iproute2-3.18.0/0001-build-system-fixes.patch)0
-rw-r--r--patches/iproute2-4.2.0/series (renamed from patches/iproute2-3.18.0/series)0
-rw-r--r--rules/iproute2.in1
-rw-r--r--rules/iproute2.make11
4 files changed, 9 insertions, 3 deletions
diff --git a/patches/iproute2-3.18.0/0001-build-system-fixes.patch b/patches/iproute2-4.2.0/0001-build-system-fixes.patch
index 1d7a8fe10..1d7a8fe10 100644
--- a/patches/iproute2-3.18.0/0001-build-system-fixes.patch
+++ b/patches/iproute2-4.2.0/0001-build-system-fixes.patch
diff --git a/patches/iproute2-3.18.0/series b/patches/iproute2-4.2.0/series
index 630efcf86..630efcf86 100644
--- a/patches/iproute2-3.18.0/series
+++ b/patches/iproute2-4.2.0/series
diff --git a/rules/iproute2.in b/rules/iproute2.in
index 5c7112742..dadad038d 100644
--- a/rules/iproute2.in
+++ b/rules/iproute2.in
@@ -9,6 +9,7 @@ menuconfig IPROUTE2
select LIBC_RESOLV
select LIBC_PTHREAD if IPROUTE2_ARPD
select GCCLIBS_GCC_S if IPROUTE2_IP || IPROUTE2_TC
+ select LIBSELINUX if GLOBAL_SELINUX
help
Networking and traffic control tools
diff --git a/rules/iproute2.make b/rules/iproute2.make
index 0e7dd92ca..f7324b461 100644
--- a/rules/iproute2.make
+++ b/rules/iproute2.make
@@ -17,8 +17,8 @@ PACKAGES-$(PTXCONF_IPROUTE2) += iproute2
#
# Paths and names
#
-IPROUTE2_VERSION := 3.18.0
-IPROUTE2_MD5 := 6f6ad51a00007880460e103367b16057
+IPROUTE2_VERSION := 4.2.0
+IPROUTE2_MD5 := 51c54cc3245eff451154938fbc0f64f5
IPROUTE2 := iproute2-$(IPROUTE2_VERSION)
IPROUTE2_SUFFIX := tar.xz
IPROUTE2_URL := $(call ptx/mirror, KERNEL, utils/net/iproute2/$(IPROUTE2).$(IPROUTE2_SUFFIX))
@@ -40,13 +40,18 @@ $(STATEDIR)/iproute2.prepare:
@echo 'TC_CONFIG_ATM:=n' >> $(IPROUTE2_DIR)/Config
@echo 'TC_CONFIG_XT:=n' >> $(IPROUTE2_DIR)/Config
@echo 'IPT_LIB_DIR:=/usr/lib' >> $(IPROUTE2_DIR)/Config
+ @echo 'TC_CONFIG_ELF:=n' >> $(IPROUTE2_DIR)/Config
+ifndef PTXCONF_GLOBAL_SELINUX
+ @echo 'HAVE_SELINUX:=n' >> $(IPROUTE2_DIR)/Config
+endif
+ @echo 'HAVE_MNL:=n' >> $(IPROUTE2_DIR)/Config
ifdef PTXCONF_IPROUTE2_ARPD
@echo BUILD_ARPD=y >> $(IPROUTE2_DIR)/Config
endif
@$(call touch)
IPROUTE2_MAKE_OPT := \
- ROOTDIR=$(SYSROOT) \
+ DESTDIR=$(SYSROOT) \
LDFLAGS='-rdynamic' \
WFLAGS="-Wall"