diff options
author | Sinan Kaya <okaya@kernel.org> | 2020-12-17 19:24:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-01-12 17:44:16 +0000 |
commit | a4828f8fc91c71642ae1a02a825c238b40b1511a (patch) | |
tree | 0413ae78890785404c16b1e86fc65472945827fa /meta/recipes-connectivity | |
parent | 14ffca328e855f2ad108449ec8edd05a44574d40 (diff) | |
download | poky-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.inc | 9 |
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 |
49 | INSANE_SKIP_${PN}-tc = "dev-so" | 49 | INSANE_SKIP_${PN}-tc = "dev-so" |
50 | 50 | ||
51 | PACKAGES =+ "\ | 51 | IPROUTE2_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 | ||
64 | PACKAGE_BEFORE_PN = "${IPROUTE2_PACKAGES}" | ||
65 | RDEPENDS_${PN} += "${PN}-ip" | ||
66 | |||
63 | FILES_${PN}-tc = "${base_sbindir}/tc* \ | 67 | FILES_${PN}-tc = "${base_sbindir}/tc* \ |
64 | ${libdir}/tc/*.so" | 68 | ${libdir}/tc/*.so" |
65 | FILES_${PN}-lnstat = "${base_sbindir}/lnstat \ | 69 | FILES_${PN}-lnstat = "${base_sbindir}/lnstat \ |
66 | ${base_sbindir}/ctstat \ | 70 | ${base_sbindir}/ctstat \ |
67 | ${base_sbindir}/rtstat" | 71 | ${base_sbindir}/rtstat" |
68 | FILES_${PN}-ifstat = "${base_sbindir}/ifstat" | 72 | FILES_${PN}-ifstat = "${base_sbindir}/ifstat" |
73 | FILES_${PN}-ip = "${base_sbindir}/ip.${PN} ${sysconfdir}/iproute2" | ||
69 | FILES_${PN}-genl = "${base_sbindir}/genl" | 74 | FILES_${PN}-genl = "${base_sbindir}/genl" |
70 | FILES_${PN}-rtacct = "${base_sbindir}/rtacct" | 75 | FILES_${PN}-rtacct = "${base_sbindir}/rtacct" |
71 | FILES_${PN}-nstat = "${base_sbindir}/nstat" | 76 | FILES_${PN}-nstat = "${base_sbindir}/nstat" |
@@ -73,7 +78,7 @@ FILES_${PN}-ss = "${base_sbindir}/ss" | |||
73 | FILES_${PN}-tipc = "${base_sbindir}/tipc" | 78 | FILES_${PN}-tipc = "${base_sbindir}/tipc" |
74 | FILES_${PN}-devlink = "${base_sbindir}/devlink" | 79 | FILES_${PN}-devlink = "${base_sbindir}/devlink" |
75 | 80 | ||
76 | ALTERNATIVE_${PN} = "ip" | 81 | ALTERNATIVE_${PN}-ip = "ip" |
77 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" | 82 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" |
78 | ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip" | 83 | ALTERNATIVE_LINK_NAME[ip] = "${base_sbindir}/ip" |
79 | ALTERNATIVE_PRIORITY = "100" | 84 | ALTERNATIVE_PRIORITY = "100" |