blob: e23c764a0347f8af9b34598fb76ea5db9b7faac7 [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
Brad Bishope42b3e32020-01-15 22:08:42 -05005BRANCH ?= "dev"
6
Andrew Geissler32b11992021-03-31 13:37:05 -05007SRCREV = "517c0b01e47d4441cc45be351509fb4c96843d5a"
Brad Bishope42b3e32020-01-15 22:08:42 -05008
9SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=git;branch=${BRANCH} \
Andrew Geissler32b11992021-03-31 13:37:05 -050010 file://0001-Use-asm-type.h-for-kernel-types.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050011"
12
Andrew Geissler82c905d2020-04-13 13:39:40 -050013UPSTREAM_CHECK_COMMITS = "1"
14
Brad Bishope42b3e32020-01-15 22:08:42 -050015S = "${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