blob: 5fdd089aef9a9ec9c4bdc005706a98484fb2b36e [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001SUMMARY = "Tool to access UFS (Universal Flash Storage) devices"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
4
5PV = "1.6+git${SRCPV}"
6
7BRANCH ?= "dev"
8
9SRCREV = "a3cf93b66f4606a46354cf884d24aa966661f848"
10
11SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=git;branch=${BRANCH} \
12 file://0001-Replace-u_intXX_t-with-kernel-typedefs.patch \
13"
14
15S = "${WORKDIR}/git"
16
17EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" CFLAGS="${CFLAGS}""
18
19CFLAGS_append_mipsarchn64 = " -D__SANE_USERSPACE_TYPES__ -D_GNU_SOURCE"
20
21do_configure() {
22 sed -i -e "s|-static$||g" ${S}/Makefile
23}
24
25do_install() {
26 install -D -m 755 ${S}/ufs-utils ${D}${bindir}/ufs-utils
27}
28
29PROVIDES += "ufs-tool"
30
31RPROVIDES_${PN} += "ufs-tool"
32