diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-08-30 13:51:23 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-08-31 08:30:19 -0700 |
commit | 7de0bbbbaa5064dbb72db769060a7a93ccf2d654 (patch) | |
tree | 2f77fe87f67b74836db6a36fc4eb07db45174484 /meta-oe/recipes-extended/socketcan/can-utils_git.bb | |
parent | 874a6c7a994c5ed8753fa51d746ccc5dc10d176c (diff) | |
download | meta-openembedded-contrib-7de0bbbbaa5064dbb72db769060a7a93ccf2d654.tar.gz |
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>
Diffstat (limited to 'meta-oe/recipes-extended/socketcan/can-utils_git.bb')
-rw-r--r-- | meta-oe/recipes-extended/socketcan/can-utils_git.bb | 6 |
1 files changed, 5 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" 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" |