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:
Khem Raj committed 2020-08-31 08:30:19 -07:00
1 parent 874a6c7a99
commit 7de0bbbbaa
2 files changed
+12 -1

No files matched your search

@@ -12,4 +12,8 @@ PV = "2020.02.04"
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"