Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | SUMMARY = "Tool to access UFS (Universal Flash Storage) devices" |
| 2 | LICENSE = "GPL-2.0-only" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" |
| 4 | |
| 5 | BRANCH ?= "dev" |
| 6 | |
| 7 | SRCREV = "18c0a8454ca1cf8969170049f8c628d88627beec" |
| 8 | |
| 9 | SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=https;branch=${BRANCH} \ |
| 10 | " |
| 11 | |
| 12 | UPSTREAM_CHECK_COMMITS = "1" |
| 13 | |
| 14 | S = "${WORKDIR}/git" |
| 15 | |
| 16 | EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" CFLAGS="${CFLAGS}"" |
| 17 | |
| 18 | CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__ -D_GNU_SOURCE" |
| 19 | |
| 20 | do_configure() { |
| 21 | sed -i -e "s|-static$||g" ${S}/Makefile |
| 22 | } |
| 23 | |
| 24 | do_install() { |
| 25 | install -D -m 755 ${S}/ufs-utils ${D}${bindir}/ufs-utils |
| 26 | } |
| 27 | |
| 28 | PROVIDES += "ufs-tool" |
| 29 | |
| 30 | RPROVIDES:${PN} += "ufs-tool" |
| 31 | |