summaryrefslogtreecommitdiff
path: root/recipes-devtools/mmc/mmc-utils-cos_git.bb
blob: f3148c796de5a3e6cc0317710d4e5a8bd8a1de2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
SUMMARY = "Userspace tools for MMC/SD devices (Downstream version of Chromium OS Project)"
HOMEPAGE = "http://chromium.googlesource.com/chromiumos/third_party/mmc-utils.git"
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"

PV = "0.1"

SRC_URI = "git://chromium.googlesource.com/chromiumos/third_party/mmc-utils.git;protocol=https;branch=${SRCBRANCH}"

S = "${WORKDIR}/git"

CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
CFLAGS_append_mips64 = " -D__SANE_USERSPACE_TYPES__"
CFLAGS_append_mips64n32 = " -D__SANE_USERSPACE_TYPES__"

do_install() {
    install -d ${D}${bindir}
    install -m 0755 mmc ${D}${bindir}
}