Skip to contentSkip to conversation

iproute2: backport version 4.9.0

PATCH New Jacob Stiffler 1 participant 2 messages Jul 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 iproute2: backport version 4.9.0

* Backport iproute2 4.9.0 from oe-core.
* Recipes were directly copied from commit
eac08770b1ea3ca6640941dc8fd03fc3fa5ff869

---
v2 changes: Place backport in meta-arago-extras

 .../recipes-connectivity/iproute2/iproute2.inc     |  48 ++++++++
 .../iproute2/0001-iproute2-de-bash-scripts.patch   |  64 ++++++++++
 .../iproute2/iproute2/configure-cross.patch        |  32 +++++
 .../iproute2/iproute2/iproute2-4.9.0-musl.patch    | 131 +++++++++++++++++++++
 .../iproute2/iproute2_4.9.0.bb                     |  14 +++
 5 files changed, 289 insertions(+)
 create mode 100644 meta-arago-extras/recipes-connectivity/iproute2/iproute2.inc
 create mode 100644 meta-arago-extras/recipes-connectivity/iproute2/iproute2/0001-iproute2-de-bash-scripts.patch
 create mode 100644 meta-arago-extras/recipes-connectivity/iproute2/iproute2/configure-cross.patch
 create mode 100644 meta-arago-extras/recipes-connectivity/iproute2/iproute2/iproute2-4.9.0-musl.patch
 create mode 100644 meta-arago-extras/recipes-connectivity/iproute2/iproute2_4.9.0.bb
meta-arago-extras/recipes-connectivity/iproute2/iproute2.inc new file +48 -0
new file mode 100644
index 0000000..ce64888
@@ -0,0 +1,48 @@
+SUMMARY = "TCP / IP networking and traffic control utilities"
+DESCRIPTION = "Iproute2 is a collection of utilities for controlling \
+TCP / IP networking and traffic control in Linux.  Of the utilities ip \
+and tc are the most important.  ip controls IPv4 and IPv6 \
+configuration and tc stands for traffic control."
+HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
+SECTION = "base"
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
+                    file://ip/ip.c;beginline=3;endline=8;md5=689d691d0410a4b64d3899f8d6e31817"
+
+DEPENDS = "flex-native bison-native iptables elfutils"
+
+inherit update-alternatives bash-completion pkgconfig
+
+EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip bridge misc genl' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'"
+
+do_configure_append () {
+    sh configure ${STAGING_INCDIR}
+    # Explicitly disable ATM support
+    sed -i -e '/TC_CONFIG_ATM/d' Config
+}
+
+do_install () {
+    oe_runmake DESTDIR=${D} install
+    mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2
+    install -d ${D}${datadir}
+    mv ${D}/share/* ${D}${datadir}/ || true
+    rm ${D}/share -rf || true
+}
+
+# The .so files in iproute2-tc are modules, not traditional libraries
+INSANE_SKIP_${PN}-tc = "dev-so"
+
+PACKAGES =+ "${PN}-tc ${PN}-lnstat ${PN}-ifstat ${PN}-genl ${PN}-rtacct ${PN}-nstat ${PN}-ss"
+FILES_${PN}-tc = "${base_sbindir}/tc* \
+                  ${libdir}/tc/*.so"
+FILES_${PN}-lnstat = "${base_sbindir}/lnstat ${base_sbindir}/ctstat ${base_sbindir}/rtstat"
+FILES_${PN}-ifstat = "${base_sbindir}/ifstat"
+FILES_${PN}-genl = "${base_sbindir}/genl"
+FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
+FILES_${PN}-nstat = "${base_sbindir}/nstat"
+FILES_${PN}-ss = "${base_sbindir}/ss"
+
+ALTERNATIVE_${PN} = "ip"
+ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
+ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
+ALTERNATIVE_PRIORITY = "100"
meta-arago-extras/recipes-connectivity/iproute2/iproute2/0001-iproute2-de-bash-scripts.patch new file +64 -0

64 lines not on this page · raw message

meta-arago-extras/recipes-connectivity/iproute2/iproute2/configure-cross.patch new file +32 -0
new file mode 100644
index 0000000..866609c
@@ -0,0 +1,32 @@
+From 85b0589b4843c03e8e6fd9416d71ea449a73c5c0 Mon Sep 17 00:00:00 2001
+From: Koen Kooi <[email protected]>
+Date: Thu, 3 Nov 2011 10:46:16 +0100
+Subject: [PATCH] make configure cross compile safe
+
+According to Kevin Tian:
+Upstream-Status: Pending
+
+Signed-off-by: Koen Kooi <[email protected]>
+Signed-off-by: Shane Wang <[email protected]>
+
+Index: iproute2-3.7.0/configure
+===================================================================
+--- iproute2-3.7.0.orig/configure
++++ iproute2-3.7.0/configure
+@@ -2,6 +2,7 @@
+ # This is not an autconf generated configure
+ #
+ INCLUDE=${1:-"$PWD/include"}
++SYSROOT=$1
+ 
+ # Make a temp directory in build tree.
+ TMPDIR=$(mktemp -d config.XXXXXX)
+@@ -158,7 +159,7 @@ check_ipt_lib_dir()
+ 		return
+ 	fi
+ 
+-	for dir in /lib /usr/lib /usr/local/lib
++	for dir in $SYSROOT/lib $SYSROOT/usr/lib $SYSROOT/usr/local/lib
+ 	do
+ 		for file in $dir/{xtables,iptables}/lib*t_*so ; do
+ 			if [ -f $file ]; then
meta-arago-extras/recipes-connectivity/iproute2/iproute2/iproute2-4.9.0-musl.patch new file +131 -0

131 lines not on this page · raw message

meta-arago-extras/recipes-connectivity/iproute2/iproute2_4.9.0.bb new file +14 -0
new file mode 100644
index 0000000..808e550
@@ -0,0 +1,14 @@
+require iproute2.inc
+
+SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \
+           file://configure-cross.patch \
+           file://0001-iproute2-de-bash-scripts.patch \
+           file://iproute2-4.9.0-musl.patch \
+          "
+
+SRC_URI[md5sum] = "44a8371a4b2c40e48e4c9f98cbd41391"
+SRC_URI[sha256sum] = "c0f30f043f7767cc1b2cd2197b08d4e9b2392c95823fabe30bbce308c30116c4"
+
+# CFLAGS are computed in Makefile and reference CCOPTS
+#
+EXTRA_OEMAKE_append = " CCOPTS='${CFLAGS}'"
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 2/2 iproute2: add hsr/prp support

---
v2 changes: add bbappend in meta-arago-distro for hsr/prp support patches

 .../0001-ip-HSR-Fix-cut-and-paste-error.patch      |  27 +++
 .../0002-add-support-for-prp-similar-to-hsr.patch  | 221 +++++++++++++++++++++
 .../iproute2/iproute2_4.9.0.bbappend               |   8 +
 3 files changed, 256 insertions(+)
 create mode 100644 meta-arago-distro/recipes-connectivity/iproute2/iproute2/0001-ip-HSR-Fix-cut-and-paste-error.patch
 create mode 100644 meta-arago-distro/recipes-connectivity/iproute2/iproute2/0002-add-support-for-prp-similar-to-hsr.patch
 create mode 100644 meta-arago-distro/recipes-connectivity/iproute2/iproute2_4.9.0.bbappend
meta-arago-distro/recipes-connectivity/iproute2/iproute2/0001-ip-HSR-Fix-cut-and-paste-error.patch new file +27 -0
new file mode 100644
index 0000000..25249ab
@@ -0,0 +1,27 @@
+From 3f586aee3d617b1281d5c535caafd9f09d06f5fb Mon Sep 17 00:00:00 2001
+From: Ralf Baechle <[email protected]>
+Date: Mon, 6 Feb 2017 21:47:35 +0100
+Subject: [PATCH 1/2] ip: HSR: Fix cut and paste error
+
+Fixes: 5c0aec93a516 ("ip: Add HSR support")
+Signed-off-by: Ralf Baechle <[email protected]>
+---
+ ip/iplink_hsr.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ip/iplink_hsr.c b/ip/iplink_hsr.c
+index cb744eb..696b2c9 100644
+--- a/ip/iplink_hsr.c
++++ b/ip/iplink_hsr.c
+@@ -144,7 +144,7 @@ static void hsr_print_help(struct link_util *lu, int argc, char **argv,
+ 
+ struct link_util hsr_link_util = {
+ 	.id		= "hsr",
+-	.maxattr	= IFLA_VLAN_MAX,
++	.maxattr	= IFLA_HSR_MAX,
+ 	.parse_opt	= hsr_parse_opt,
+ 	.print_opt	= hsr_print_opt,
+ 	.print_help	= hsr_print_help,
+-- 
+1.9.1
+
meta-arago-distro/recipes-connectivity/iproute2/iproute2/0002-add-support-for-prp-similar-to-hsr.patch new file +221 -0

221 lines not on this page · raw message

meta-arago-distro/recipes-connectivity/iproute2/iproute2_4.9.0.bbappend new file +8 -0
new file mode 100644
index 0000000..65f5525
@@ -0,0 +1,8 @@
+PR_append = ".arago0"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append = " \
+           file://0001-ip-HSR-Fix-cut-and-paste-error.patch \
+           file://0002-add-support-for-prp-similar-to-hsr.patch \
+          "
Signature · 1 line
2.7.4