mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
canutils: Use update-alternatives
canutils provides applications which conflict with can-utils recipe. update-alternatives helps fix this when both are installed Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -12,4 +12,8 @@ PV = "2020.02.04"
|
|||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig update-alternatives
|
||||||
|
|
||||||
|
ALTERNATIVE_${PN} = "candump cansend"
|
||||||
|
ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
|
||||||
|
ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
|
||||||
|
|||||||
@@ -12,9 +12,16 @@ SRC_URI = "git://git.pengutronix.de/git/tools/canutils.git;protocol=git \
|
|||||||
file://0001-canutils-candump-Add-error-frame-s-handling.patch \
|
file://0001-canutils-candump-Add-error-frame-s-handling.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
inherit update-alternatives
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig
|
||||||
|
|
||||||
# Busybox ip doesn't support can interface configuration, use the real thing
|
# Busybox ip doesn't support can interface configuration, use the real thing
|
||||||
RDEPENDS_${PN} += "iproute2"
|
RDEPENDS_${PN} += "iproute2"
|
||||||
|
|
||||||
|
ALTERNATIVE_PRIORITY = "90"
|
||||||
|
ALTERNATIVE_${PN} = "candump cansend"
|
||||||
|
ALTERNATIVE_LINK_NAME[candump] = "${bindir}/candump"
|
||||||
|
ALTERNATIVE_LINK_NAME[cansend] = "${bindir}/cansend"
|
||||||
|
|||||||
Reference in New Issue
Block a user