blob: 12943b23a982bf22ad696b07060a08a1fb0808f7 [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
Patrick Williams213cb262021-08-07 19:21:33 -050019CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__ -D_GNU_SOURCE"
Brad Bishope42b3e32020-01-15 22:08:42 -050020
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
Patrick Williams213cb262021-08-07 19:21:33 -050031RPROVIDES:${PN} += "ufs-tool"
Brad Bishope42b3e32020-01-15 22:08:42 -050032