diff options
| author | Scott Branden <scott.branden@broadcom.com> | 2020-02-19 12:41:03 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-21 09:39:00 +0000 |
| commit | 66830fa182f4b6bc1f20acdf61c6ba8acf14375c (patch) | |
| tree | 1fb52233d554974b1251ff55b88c83a1cc29948a | |
| parent | e89660d7d0f2da588f7e8be730582cfbe5f849ed (diff) | |
| download | poky-66830fa182f4b6bc1f20acdf61c6ba8acf14375c.tar.gz | |
iproute2: add devlink support to iproute2
Add devlink support to iproute2 recipe.
(From OE-Core rev: 00cc9773505b2afd002f9b2d72330e517af97d0c)
Signed-off-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-connectivity/iproute2/iproute2.inc | 34 |
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 | ||
| 16 | CLEANBROKEN = "1" | 16 | CLEANBROKEN = "1" |
| 17 | 17 | ||
| 18 | PACKAGECONFIG ??= "tipc elf" | 18 | PACKAGECONFIG ??= "tipc elf devlink" |
| 19 | PACKAGECONFIG[tipc] = ",,libmnl," | 19 | PACKAGECONFIG[tipc] = ",,libmnl," |
| 20 | PACKAGECONFIG[elf] = ",,elfutils," | 20 | PACKAGECONFIG[elf] = ",,elfutils," |
| 21 | PACKAGECONFIG[devlink] = ",,libmnl," | ||
| 21 | 22 | ||
| 22 | EXTRA_OEMAKE = "CC='${CC}' KERNEL_INCLUDE=${STAGING_INCDIR} DOCDIR=${docdir}/iproute2 SUBDIRS='lib tc ip bridge misc genl \ | 23 | EXTRA_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 | ||
| 25 | do_configure_append () { | 32 | do_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 |
| 40 | INSANE_SKIP_${PN}-tc = "dev-so" | 47 | INSANE_SKIP_${PN}-tc = "dev-so" |
| 41 | 48 | ||
| 42 | PACKAGES =+ "${PN}-tc \ | 49 | PACKAGES =+ "\ |
| 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 | |||
| 50 | FILES_${PN}-tc = "${base_sbindir}/tc* \ | 61 | FILES_${PN}-tc = "${base_sbindir}/tc* \ |
| 51 | ${libdir}/tc/*.so" | 62 | ${libdir}/tc/*.so" |
| 52 | FILES_${PN}-lnstat = "${base_sbindir}/lnstat \ | 63 | FILES_${PN}-lnstat = "${base_sbindir}/lnstat \ |
| @@ -58,6 +69,7 @@ FILES_${PN}-rtacct = "${base_sbindir}/rtacct" | |||
| 58 | FILES_${PN}-nstat = "${base_sbindir}/nstat" | 69 | FILES_${PN}-nstat = "${base_sbindir}/nstat" |
| 59 | FILES_${PN}-ss = "${base_sbindir}/ss" | 70 | FILES_${PN}-ss = "${base_sbindir}/ss" |
| 60 | FILES_${PN}-tipc = "${base_sbindir}/tipc" | 71 | FILES_${PN}-tipc = "${base_sbindir}/tipc" |
| 72 | FILES_${PN}-devlink = "${base_sbindir}/devlink" | ||
| 61 | 73 | ||
| 62 | ALTERNATIVE_${PN} = "ip" | 74 | ALTERNATIVE_${PN} = "ip" |
| 63 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" | 75 | ALTERNATIVE_TARGET[ip] = "${base_sbindir}/ip.${BPN}" |
