[1/1] package/ufs-utils: new package

Message ID 20250401160957.4020794-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/1] package/ufs-utils: new package
Related show

Commit Message

Dario Binacchi April 1, 2025, 4:09 p.m. UTC
It's a tool to access UFS (Universal Flash Storage) devices from user
space.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 DEVELOPERS                       |  1 +
 package/Config.in                |  1 +
 package/ufs-utils/Config.in      | 11 +++++++++++
 package/ufs-utils/ufs-utils.hash |  3 +++
 package/ufs-utils/ufs-utils.mk   | 20 ++++++++++++++++++++
 5 files changed, 36 insertions(+)
 create mode 100644 package/ufs-utils/Config.in
 create mode 100644 package/ufs-utils/ufs-utils.hash
 create mode 100644 package/ufs-utils/ufs-utils.mk

Comments

Julien Olivain April 1, 2025, 8 p.m. UTC | #1
On 01/04/2025 18:09, Dario Binacchi wrote:
> It's a tool to access UFS (Universal Flash Storage) devices from user
> space.
> 
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>

Applied to master, thanks.

To unsubscribe from this group and stop receiving emails from it, send an email to linux-amarula+unsubscribe@amarulasolutions.com.

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 44f7684c974c..e4b8085ca634 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -805,6 +805,7 @@  F:	package/babeld/
 F:	package/iana-assignments/
 F:	package/sscep/
 F:	package/tinyinit/
+F:	package/ufs-utils/
 F:	package/uuu/
 
 N:	Dario Binacchi <dariobin@libero.it>
diff --git a/package/Config.in b/package/Config.in
index 4b7e474cac68..eb22c81d1db7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -249,6 +249,7 @@  menu "Filesystem and flash utilities"
 	source "package/sshfs/Config.in"
 	source "package/sunxi-tools/Config.in"
 	source "package/udftools/Config.in"
+	source "package/ufs-utils/Config.in"
 	source "package/unionfs/Config.in"
 	source "package/xfsprogs/Config.in"
 	source "package/zerofree/Config.in"
diff --git a/package/ufs-utils/Config.in b/package/ufs-utils/Config.in
new file mode 100644
index 000000000000..438eeaf7a6fc
--- /dev/null
+++ b/package/ufs-utils/Config.in
@@ -0,0 +1,11 @@ 
+config BR2_PACKAGE_UFS_UTILS
+	bool "ufs-utils"
+	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
+	help
+	  UFS utils is a set of utilities for managing Universal
+	  Flash Storage (UFS) devices.
+
+	  https://github.com/SanDisk-Open-Source/ufs-utils.git
+
+comment "ufs-utils needs a toolchain w/ headers >= 5.1"
+	depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
diff --git a/package/ufs-utils/ufs-utils.hash b/package/ufs-utils/ufs-utils.hash
new file mode 100644
index 000000000000..c6ef91a025b1
--- /dev/null
+++ b/package/ufs-utils/ufs-utils.hash
@@ -0,0 +1,3 @@ 
+# Locally computed
+sha256  66259581b13e33edeccb08edd2389627121adf9b425ba4545f6a84d7292ef4fa  ufs-utils-4.13.5.tar.gz
+sha256  231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c  COPYING
diff --git a/package/ufs-utils/ufs-utils.mk b/package/ufs-utils/ufs-utils.mk
new file mode 100644
index 000000000000..504f87f375d6
--- /dev/null
+++ b/package/ufs-utils/ufs-utils.mk
@@ -0,0 +1,20 @@ 
+################################################################################
+#
+# ufs-utils
+#
+################################################################################
+
+UFS_UTILS_VERSION = 4.13.5
+UFS_UTILS_SITE = $(call github,SanDisk-Open-Source,ufs-utils,v$(UFS_UTILS_VERSION))
+UFS_UTILS_LICENSE = GPL-2.0
+UFS_UTILS_LICENSE_FILES = COPYING
+
+define UFS_UTILS_BUILD_CMDS
+	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
+endef
+
+define UFS_UTILS_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 $(@D)/ufs-utils $(TARGET_DIR)/usr/bin/ufs-utils
+endef
+
+$(eval $(generic-package))