summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2017-02-23 19:33:33 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-04-07 14:33:01 +0200
commit70f6fdaf00b23093ac1dcf3c837410d17b1a7297 (patch)
tree302ddc0b977563cc0d416063a0397667eb48c7e1
parent753d3e4c4995729114d41e2aacb997821fb74091 (diff)
mmc-utils-cos: add update-alternative
With this both mmc-utils and mmc-utils-cos can be installed on a target, however mmc-utils will take precedence as it is not configured for an update-alternative. In that case the binary will only be available as mmc.mmc-utils-cos Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--recipes-devtools/mmc/mmc-utils-cos_git.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-devtools/mmc/mmc-utils-cos_git.bb b/recipes-devtools/mmc/mmc-utils-cos_git.bb
index 5cc27ad..f3148c7 100644
--- a/recipes-devtools/mmc/mmc-utils-cos_git.bb
+++ b/recipes-devtools/mmc/mmc-utils-cos_git.bb
@@ -3,6 +3,11 @@ HOMEPAGE = "http://chromium.googlesource.com/chromiumos/third_party/mmc-utils.gi
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://mmc.c;beginline=1;endline=17;md5=d7747fc87f1eb22b946ef819969503f0"
+inherit update-alternatives
+
+ALTERNATIVE_${PN} = "mmc"
+ALTERNATIVE_PRIORITY = "5"
+
SRCBRANCH ?= "master"
SRCREV = "bcc3e2e4246431be511be3959a11cd9733bedd29"