diff options
| -rw-r--r-- | meta-oe/recipes-extended/socketcan/can-utils_git.bb | 6 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/socketcan/canutils_4.0.6.bb | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/meta-oe/recipes-extended/socketcan/can-utils_git.bb b/meta-oe/recipes-extended/socketcan/can-utils_git.bb index 519368817f..e3ad04f598 100644 --- a/meta-oe/recipes-extended/socketcan/can-utils_git.bb +++ b/meta-oe/recipes-extended/socketcan/can-utils_git.bb | |||
| @@ -12,4 +12,8 @@ PV = "2020.02.04" | |||
| 12 | 12 | ||
| 13 | S = "${WORKDIR}/git" | 13 | S = "${WORKDIR}/git" |
| 14 | 14 | ||
| 15 | inherit autotools pkgconfig | 15 | inherit autotools pkgconfig update-alternatives |
| 16 | |||
| 17 | ALTERNATIVE_${PN} = "candump cansend" | ||
| 18 | ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump" | ||
| 19 | ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend" | ||
diff --git a/meta-oe/recipes-extended/socketcan/canutils_4.0.6.bb b/meta-oe/recipes-extended/socketcan/canutils_4.0.6.bb index e1508af857..aaa2653483 100644 --- a/meta-oe/recipes-extended/socketcan/canutils_4.0.6.bb +++ b/meta-oe/recipes-extended/socketcan/canutils_4.0.6.bb | |||
| @@ -12,9 +12,16 @@ SRC_URI = "git://git.pengutronix.de/git/tools/canutils.git;protocol=git \ | |||
| 12 | file://0001-canutils-candump-Add-error-frame-s-handling.patch \ | 12 | file://0001-canutils-candump-Add-error-frame-s-handling.patch \ |
| 13 | " | 13 | " |
| 14 | 14 | ||
| 15 | inherit update-alternatives | ||
| 16 | |||
| 15 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
| 16 | 18 | ||
| 17 | inherit autotools pkgconfig | 19 | inherit autotools pkgconfig |
| 18 | 20 | ||
| 19 | # Busybox ip doesn't support can interface configuration, use the real thing | 21 | # Busybox ip doesn't support can interface configuration, use the real thing |
| 20 | RDEPENDS_${PN} += "iproute2" | 22 | RDEPENDS_${PN} += "iproute2" |
| 23 | |||
| 24 | ALTERNATIVE_PRIORITY = "90" | ||
| 25 | ALTERNATIVE_${PN} = "candump cansend" | ||
| 26 | ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump" | ||
| 27 | ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend" | ||
