summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorSinan Kaya <okaya@kernel.org>2020-12-17 19:24:04 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-12 17:44:16 +0000
commita4828f8fc91c71642ae1a02a825c238b40b1511a (patch)
tree0413ae78890785404c16b1e86fc65472945827fa /meta/recipes-connectivity
parent14ffca328e855f2ad108449ec8edd05a44574d40 (diff)
downloadpoky-a4828f8fc91c71642ae1a02a825c238b40b1511a.tar.gz
iproute2: split ip to individual package
Move the ip tool into its own package. Useful for size constrained systems that only want the ip tool. (From OE-Core rev: 938fe58625e2285ee529ee589908bb0d54810f01) Signed-off-by: Sinan Kaya <okaya@kernel.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2.inc9
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index 7a22fe9252..6a5dafaa35 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -48,10 +48,11 @@ do_install () {
48# The .so files in iproute2-tc are modules, not traditional libraries 48# The .so files in iproute2-tc are modules, not traditional libraries
49INSANE_SKIP_${PN}-tc = "dev-so" 49INSANE_SKIP_${PN}-tc = "dev-so"
50 50
51PACKAGES =+ "\ 51IPROUTE2_PACKAGES =+ "\
52 ${PN}-devlink \ 52 ${PN}-devlink \
53 ${PN}-genl \ 53 ${PN}-genl \
54 ${PN}-ifstat \ 54 ${PN}-ifstat \
55 ${PN}-ip \
55 ${PN}-lnstat \ 56 ${PN}-lnstat \
56 ${PN}-nstat \ 57 ${PN}-nstat \
57 ${PN}-rtacct \ 58 ${PN}-rtacct \
@@ -60,12 +61,16 @@ PACKAGES =+ "\
60 ${PN}-tipc \ 61 ${PN}-tipc \
61" 62"
62 63
64PACKAGE_BEFORE_PN = "${IPROUTE2_PACKAGES}"
65RDEPENDS_${PN} += "${PN}-ip"
66
63FILES_${PN}-tc = "${base_sbindir}/tc* \ 67FILES_${PN}-tc = "${base_sbindir}/tc* \
64 ${libdir}/tc/*.so" 68 ${libdir}/tc/*.so"
65FILES_${PN}-lnstat = "${base_sbindir}/lnstat \ 69FILES_${PN}-lnstat = "${base_sbindir}/lnstat \
66 ${base_sbindir}/ctstat \ 70 ${base_sbindir}/ctstat \
67 ${base_sbindir}/rtstat" 71 ${base_sbindir}/rtstat"
68FILES_${PN}-ifstat = "${base_sbindir}/ifstat" 72FILES_${PN}-ifstat = "${base_sbindir}/ifstat"
73FILES_${PN}-ip = "${base_sbindir}/ip.${PN} ${sysconfdir}/iproute2"
69FILES_${PN}-genl = "${base_sbindir}/genl" 74FILES_${PN}-genl = "${base_sbindir}/genl"
70FILES_${PN}-rtacct = "${base_sbindir}/rtacct" 75FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
71FILES_${PN}-nstat = "${base_sbindir}/nstat" 76FILES_${PN}-nstat = "${base_sbindir}/nstat"
@@ -73,7 +78,7 @@ FILES_${PN}-ss = "${base_sbindir}/ss"
73FILES_${PN}-tipc = "${base_sbindir}/tipc" 78FILES_${PN}-tipc = "${base_sbindir}/tipc"
74FILES_${PN}-devlink = "${base_sbindir}/devlink" 79FILES_${PN}-devlink = "${base_sbindir}/devlink"
75 80
76ALTERNATIVE_${PN} = "ip" 81ALTERNATIVE_${PN}-ip = "ip"
77ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" 82ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"
78ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip" 83ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip"
79ALTERNATIVE_PRIORITY = "100" 84ALTERNATIVE_PRIORITY = "100"