summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/iproute2/iproute2_6.6.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/iproute2/iproute2_6.6.0.bb')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2_6.6.0.bb104
1 files changed, 104 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2_6.6.0.bb b/meta/recipes-connectivity/iproute2/iproute2_6.6.0.bb
new file mode 100644
index 0000000000..417702e627
--- /dev/null
+++ b/meta/recipes-connectivity/iproute2/iproute2_6.6.0.bb
@@ -0,0 +1,104 @@
1SUMMARY = "TCP / IP networking and traffic control utilities"
2DESCRIPTION = "Iproute2 is a collection of utilities for controlling \
3TCP / IP networking and traffic control in Linux. Of the utilities ip \
4and tc are the most important. ip controls IPv4 and IPv6 \
5configuration and tc stands for traffic control."
6HOMEPAGE = "http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2"
7SECTION = "base"
8LICENSE = "GPL-2.0-or-later"
9LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
10 "
11
12DEPENDS = "flex-native bison-native iptables libcap"
13
14SRC_URI = "${KERNELORG_MIRROR}/linux/utils/net/${BPN}/${BP}.tar.xz \
15 file://0001-libc-compat.h-add-musl-workaround.patch \
16 "
17
18SRC_URI[sha256sum] = "8738c804afd09f0bf756937f0c3de23117832a98d8cbbf50386cf5005cd613ce"
19
20inherit update-alternatives bash-completion pkgconfig
21
22PACKAGECONFIG ??= "tipc elf devlink"
23PACKAGECONFIG[tipc] = ",,libmnl,"
24PACKAGECONFIG[elf] = ",,elfutils,"
25PACKAGECONFIG[devlink] = ",,libmnl,"
26PACKAGECONFIG[rdma] = ",,libmnl,"
27PACKAGECONFIG[selinux] = ",,libselinux"
28
29IPROUTE2_MAKE_SUBDIRS = "lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc rdma', d)}"
30
31# CFLAGS are computed in Makefile and reference CCOPTS
32#
33EXTRA_OEMAKE = "\
34 CC='${CC}' \
35 KERNEL_INCLUDE=${STAGING_INCDIR} \
36 DOCDIR=${docdir}/iproute2 \
37 SUBDIRS='${IPROUTE2_MAKE_SUBDIRS}' \
38 SBINDIR='${base_sbindir}' \
39 CONF_USR_DIR='${libdir}/iproute2' \
40 LIBDIR='${libdir}' \
41 CCOPTS='${CFLAGS}' \
42"
43
44do_configure:append () {
45 sh configure ${STAGING_INCDIR}
46 # Explicitly disable ATM support
47 sed -i -e '/TC_CONFIG_ATM/d' config.mk
48}
49
50do_install () {
51 oe_runmake DESTDIR=${D} install
52 mv ${D}${base_sbindir}/ip ${D}${base_sbindir}/ip.iproute2
53 install -d ${D}${datadir}
54 mv ${D}/share/* ${D}${datadir}/ || true
55 rm ${D}/share -rf || true
56}
57
58# The .so files in iproute2-tc are modules, not traditional libraries
59INSANE_SKIP:${PN}-tc = "dev-so"
60
61IPROUTE2_PACKAGES =+ "\
62 ${PN}-devlink \
63 ${PN}-genl \
64 ${PN}-ifstat \
65 ${PN}-ip \
66 ${PN}-lnstat \
67 ${PN}-nstat \
68 ${PN}-routel \
69 ${PN}-rtacct \
70 ${PN}-ss \
71 ${PN}-tc \
72 ${PN}-tipc \
73 ${PN}-rdma \
74"
75
76PACKAGE_BEFORE_PN = "${IPROUTE2_PACKAGES}"
77RDEPENDS:${PN} += "${PN}-ip"
78
79FILES:${PN}-tc = "${base_sbindir}/tc* \
80 ${libdir}/tc/*.so"
81FILES:${PN}-lnstat = "${base_sbindir}/lnstat \
82 ${base_sbindir}/ctstat \
83 ${base_sbindir}/rtstat"
84FILES:${PN}-ifstat = "${base_sbindir}/ifstat"
85FILES:${PN}-ip = "${base_sbindir}/ip.* ${libdir}/iproute2"
86FILES:${PN}-genl = "${base_sbindir}/genl"
87FILES:${PN}-rtacct = "${base_sbindir}/rtacct"
88FILES:${PN}-nstat = "${base_sbindir}/nstat"
89FILES:${PN}-ss = "${base_sbindir}/ss"
90FILES:${PN}-tipc = "${base_sbindir}/tipc"
91FILES:${PN}-devlink = "${base_sbindir}/devlink"
92FILES:${PN}-rdma = "${base_sbindir}/rdma"
93FILES:${PN}-routel = "${base_sbindir}/routel"
94
95RDEPENDS:${PN}-routel = "python3-core"
96
97ALTERNATIVE:${PN}-ip = "ip"
98ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
99ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
100ALTERNATIVE_PRIORITY = "100"
101
102ALTERNATIVE:${PN}-tc = "tc"
103ALTERNATIVE_LINK_NAME[tc] = "${base_sbindir}/tc"
104ALTERNATIVE_PRIORITY_${PN}-tc = "100"