summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/iproute2/iproute2.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/iproute2/iproute2.inc')
-rw-r--r--meta/recipes-connectivity/iproute2/iproute2.inc34
1 files changed, 23 insertions, 11 deletions
diff --git a/meta/recipes-connectivity/iproute2/iproute2.inc b/meta/recipes-connectivity/iproute2/iproute2.inc
index fc31b8444e..403d264308 100644
--- a/meta/recipes-connectivity/iproute2/iproute2.inc
+++ b/meta/recipes-connectivity/iproute2/iproute2.inc
@@ -15,12 +15,19 @@ inherit update-alternatives bash-completion pkgconfig
15 15
16CLEANBROKEN = "1" 16CLEANBROKEN = "1"
17 17
18PACKAGECONFIG ??= "tipc elf" 18PACKAGECONFIG ??= "tipc elf devlink"
19PACKAGECONFIG[tipc] = ",,libmnl," 19PACKAGECONFIG[tipc] = ",,libmnl,"
20PACKAGECONFIG[elf] = ",,elfutils," 20PACKAGECONFIG[elf] = ",,elfutils,"
21PACKAGECONFIG[devlink] = ",,libmnl,"
21 22
22EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip bridge misc genl \ 23EXTRA_OEMAKE = "\
23 ${@bb.utils.contains('PACKAGECONFIG', 'tipc', 'tipc', '', d)}' SBINDIR='${base_sbindir}' LIBDIR='${libdir}'" 24 CC='${CC}' \
25 KERNEL_INCLUDE=${STAGING_INCDIR} \
26 DOCDIR=${docdir}/iproute2 \
27 SUBDIRS='lib tc ip bridge misc genl ${@bb.utils.filter('PACKAGECONFIG', 'devlink tipc', d)}' \
28 SBINDIR='${base_sbindir}' \
29 LIBDIR='${libdir}' \
30"
24 31
25do_configure_append () { 32do_configure_append () {
26 sh configure ${STAGING_INCDIR} 33 sh configure ${STAGING_INCDIR}
@@ -39,14 +46,18 @@ do_install () {
39# The .so files in iproute2-tc are modules, not traditional libraries 46# The .so files in iproute2-tc are modules, not traditional libraries
40INSANE_SKIP_${PN}-tc = "dev-so" 47INSANE_SKIP_${PN}-tc = "dev-so"
41 48
42PACKAGES =+ "${PN}-tc \ 49PACKAGES =+ "\
43 ${PN}-lnstat \ 50 ${PN}-devlink \
44 ${PN}-ifstat \ 51 ${PN}-genl \
45 ${PN}-genl \ 52 ${PN}-ifstat \
46 ${PN}-rtacct \ 53 ${PN}-lnstat \
47 ${PN}-nstat \ 54 ${PN}-nstat \
48 ${PN}-ss \ 55 ${PN}-rtacct \
49 ${@bb.utils.contains('PACKAGECONFIG', 'tipc', '${PN}-tipc', '', d)}" 56 ${PN}-ss \
57 ${PN}-tc \
58 ${PN}-tipc \
59"
60
50FILES_${PN}-tc = "${base_sbindir}/tc* \ 61FILES_${PN}-tc = "${base_sbindir}/tc* \
51 ${libdir}/tc/*.so" 62 ${libdir}/tc/*.so"
52FILES_${PN}-lnstat = "${base_sbindir}/lnstat \ 63FILES_${PN}-lnstat = "${base_sbindir}/lnstat \
@@ -58,6 +69,7 @@ FILES_${PN}-rtacct = "${base_sbindir}/rtacct"
58FILES_${PN}-nstat = "${base_sbindir}/nstat" 69FILES_${PN}-nstat = "${base_sbindir}/nstat"
59FILES_${PN}-ss = "${base_sbindir}/ss" 70FILES_${PN}-ss = "${base_sbindir}/ss"
60FILES_${PN}-tipc = "${base_sbindir}/tipc" 71FILES_${PN}-tipc = "${base_sbindir}/tipc"
72FILES_${PN}-devlink = "${base_sbindir}/devlink"
61 73
62ALTERNATIVE_${PN} = "ip" 74ALTERNATIVE_${PN} = "ip"
63ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" 75ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}"