1SUMMARY = "Userspace tools for MMC/SD devices"
2HOMEPAGE = "http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git/"
3DESCRIPTION = "${SUMMARY}"
4LICENSE = "GPLv2"
5LIC_FILES_CHKSUM = "file://mmc.c;beginline=1;endline=20;md5=fae32792e20f4d27ade1c5a762d16b7d"
6
7SRCBRANCH ?= "master"
8SRCREV = "73d6c59af8d1bcedf5de4aa1f5d5b7f765f545f5"
9
10PV = "0.1+git${SRCPV}"
11
12SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;branch=${SRCBRANCH} \
13           file://0001-mmc_cmd.c-Use-extra-braces-when-initializing-subobje.patch \
14           "
15UPSTREAM_CHECK_COMMITS = "1"
16
17S = "${WORKDIR}/git"
18
19CFLAGS_append_powerpc64 = " -D__SANE_USERSPACE_TYPES__"
20CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__"
21CFLAGS_append_mipsarchn32 = " -D__SANE_USERSPACE_TYPES__"
22
23do_install() {
24    install -d ${D}${bindir}
25    install -m 0755 mmc ${D}${bindir}
26}
27