From patchwork Tue Apr 1 16:09:57 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3894 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id F275D3F0CD for ; Tue, 1 Apr 2025 18:10:03 +0200 (CEST) Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-39ac9b0cb6asf3675707f8f.2 for ; Tue, 01 Apr 2025 09:10:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1743523803; cv=pass; d=google.com; s=arc-20240605; b=I4T9fCcDyAm+xkiOyamZaWvbjB/A2NMlksH4bPQ+aFfRmYp5lifbBcEJB9y7U8DLMR jdVSrpsDu9MQG7JF+CkWJfhkwgqRhbP5HLgercOmSEeuTjOONWOX6OzJz3J/0FDcNmQr HlbmvDnfMXwF/k+vtDzUy9IHulnXqPwuHwTyNe4H2j2tbigL1vEgksdpqUT2cRcVNnFO ggoY4ArCAnMsHicHlPLfjyC9s9+i2exOmoQvZ0eZd3NTabCGJRzib+y3vWTyepkwFizF hjRbHW88xW7RJpSElvOaTm9O/tUsSNswb+wRO1DUkcFoiBLNdzcAxYPLW9nobczewO1X kPmQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=o7c24CxcmCy7MfeM0shNAblrBYhaoWR9KNGk9ypAOR0=; fh=zjLu8RtGqZtfkeENCjIapI5yfvBjrWzW8QdKujBoSoY=; b=ahN91G1D9tv6DkgjdWSSaDxwz5WYml0GRy6ozNnV2VecNtB04r/QlT+ApJvmcu7she B3rtFtRWJvUTW/h6bkSzFc8LI9dkOZvBjN6z9H+nhykE8wTOiF6Y1eaVsamP5fLyt4j7 Qxs1sz8yYmaRVCpiSn5SsY1HBiNwESBcjpPViXy0t844kxfLzVZ8cqP2B34DIWH/UbiK VU2OeWKcVI1fVyr9w0J5vbVIFynUuj6ZD3CVPjG7ba+j6ory6WQTCk0DF7Yx576lsfxd A0G1kN4FOOHCTOPAP8Xo/739NrKr2qQhrE0b933k3UcG2e7b4tNXNwk/R6W2dV1dzG5H vvJw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QM5HrpPA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1743523803; x=1744128603; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=o7c24CxcmCy7MfeM0shNAblrBYhaoWR9KNGk9ypAOR0=; b=Ciuymhj+lF3K28vEc/PbvrLGmD4LFBr6VNEtvwKzJ4B9uxXuFACAch3hA2N3dVUaoH AQ6dpRlLZw5xy24LxbIibCPpceJySMINH94R4lU1MKuDzOYoqHUibwYvbjyVG6eVfVq2 pF4mQM8D9E0MFStAMBSko0WG5kz/1najD52lo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743523803; x=1744128603; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o7c24CxcmCy7MfeM0shNAblrBYhaoWR9KNGk9ypAOR0=; b=Q9Noo6asjJhQgBC4nqblHhMy+KzSWbEvwmsaJZgNOc/i1/Jtr0GZ39yMnPd4MD4KOH ALmWeCz0Vv4A9pi+ttqhndavDpnliUGxOMFhTKMH9MeN5j0XPjpcAMMKNAARsPal+kuu wLrMSG3/Xj2JsyBrAkW3lzlVngEkDuPQxrUOjrytkbRxA42S8uYMCbPHaL7fZ8o3BoqA FeaqEYW+8MJyWiAWK/a+VdVbKrR/x1dFg7bUBDX3vH3xxEMWR+6aFEa1pPcFLaVhIJ7i vBgx3aHHRDF5GQZo6ceCY89eUSg66wEKUTS4nbyTETHtcUq1j/359oCQkbaSSOSbdc7R 5GnQ== X-Forwarded-Encrypted: i=2; AJvYcCWPnThRVZJaKPHPmcQmscHHc9bf2/F3jFyHJcwOCSoABlF+aWxj0qMNVE/XYyW04nPj/dtkN9jPUD8rTlCT@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzYUEWfVwFZz5DWNcwGSXkcxmxJ21WHB2hYL9MTX/ZsGHHO2Aag czNLVa5Ec+QUgzlw6F+jAZF7sHQr/+cDZl7QVRlZ+NYP1ov2cqtF1ZE+yPfX35/agw== X-Google-Smtp-Source: AGHT+IFPaYkn3YvIsUB/2psf34KWXjdLmReAM0KX7lIGK/JL6x1oFNwgEetEAp7bO/e0n9Mpja/OxA== X-Received: by 2002:a5d:5f89:0:b0:39c:11c0:eba1 with SMTP id ffacd0b85a97d-39c120ded6amr11103216f8f.12.1743523803105; Tue, 01 Apr 2025 09:10:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPAJ3rtlCyh1J/rPJJLHoVWbjG2nEFunGzyVj3c9x+VBlfQ== Received: by 2002:a05:600c:578a:b0:43c:e3ef:1646 with SMTP id 5b1f17b1804b1-43d84e4c6ccls3739545e9.0.-pod-prod-02-eu; Tue, 01 Apr 2025 09:10:01 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWOqUz4uXLEsCtEDxAAwG4v8zjLoH7Yw5kL15o2ujAWCXssJi7T6r3Nm/o9mGV8ogwAW/s7bUQR2KKDzMJh@amarulasolutions.com X-Received: by 2002:a05:600c:a05:b0:439:9e13:2dd7 with SMTP id 5b1f17b1804b1-43ea77369d5mr32771055e9.2.1743523800687; Tue, 01 Apr 2025 09:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743523800; cv=none; d=google.com; s=arc-20240605; b=ga6Ls/yUAGLjcAcqQyhJ3uRYphdTY7xz+4+q6ahqway5Bu2It3zibGekR+tg1w/fUt HGQshSSzH0FMS0GALB7M8Zs9kZuZRwmJ5VW/4PHf6hmlCiiGbwFrX2BaqWHBp7wrLRy9 nmrQdeioG43M/K0NqtGx3JF46C90O8aoNmaPT2mGcDSn5pM9yY8POFYYxduwXkrznvSD g0vgyozFfei5NjnPdW+CYT6paffkcAvhshjs2+pVYPuBscZWh2zs8x/CH2SNO6keWanE el7u+akisPOuKPu9EUlvtscigNu7s8dE2Opmeetwn6dgWx8hhq+ftww+0ZBK0kPhyUzU ccfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=gvGxuzdYKPCb1F0ALpzPsoXPuhQQbQUt2bpfbvoWtew=; fh=p0gDnjmCNMhZvutxLG8WZxJ+v0/FWBH45yJ/jLhhx28=; b=NqaeMFmdk5dtDrKmLK0ihNF8pUhaiANRkQf+CJsepuz8/Je6I+hjlDMFJBFvZTdtWw sKxC8VuYA2xRfXyHeJOBL6Zzo+7HKoT8hE/vM4ukwSKR132RptC1A0cWgAhWL0N0TfFr p1aSkdaEElGc8Xby6p0WTxrymPzo8g32xOy+1XxqQzmlUDn4BEhGSpI8CrZD+C5+x8Hk 4TXta7iJAlLGxITAQky9FTC1UQXjcE1SrCb3EO1NluUWKlI1c3e/aeySMVhdORPw8IPB E2YvcpUpZoZO01Hg0meCj+dGMneuFt4LJO14sYP/aqTn+uC3ev6p2bgY//TeAndBinpG I1ZA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QM5HrpPA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-43ea56acbcbsor13679405e9.4.2025.04.01.09.10.00 for (Google Transport Security); Tue, 01 Apr 2025 09:10:00 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCViND6n/6TjpDjeqgFlGHTIERPgvvBZynckX/20p/S+r74psWpy9X3tt67KQJ4S7pRgctg28tgz3HC/gFsp@amarulasolutions.com X-Gm-Gg: ASbGncv9QqfccoTjBSxHuU3UzH+U/idfWlNMRdcXDbZCYpU0XOyaoodbIJ6fWsOfss+ dGg82IERRGa6pcxOXH6rgr9hSGrgToDAffl2RAZt+/pRRTaffcX/OX9SLr4skQHmbldCXjHW6Mi 9i95ECIjclmqy9FqV5CTBuy3bF5GPAhoFL13ZYRBl5uSwTeZ5jvyve2gqRG7gZCOS/+I5EHU5wt 1d3J1H2Q/mr4WSi67c/XMu+unGjw9Bt8uGl4MaHYMSFPLd1ojtentq96ODlO1BQqworX/+tvlAL Jj5IPkRgiLgi56zg10R+HydopzsmNXXJ7Z6j6K4GLrLapAZrMwVo7iC79xAUqKnbCsZMSD+2kfb SZ2d6plmZXw== X-Received: by 2002:a05:600c:198f:b0:43c:fb8e:aec0 with SMTP id 5b1f17b1804b1-43db61dffcamr96052425e9.1.1743523800124; Tue, 01 Apr 2025 09:10:00 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.230]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d90000a09sm159019715e9.35.2025.04.01.09.09.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 09:09:59 -0700 (PDT) From: Dario Binacchi To: buildroot@buildroot.org Cc: Dario Binacchi , Thomas Petazzoni , linux-amarula@amarulasolutions.com Subject: [PATCH 1/1] package/ufs-utils: new package Date: Tue, 1 Apr 2025 18:09:57 +0200 Message-ID: <20250401160957.4020794-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=QM5HrpPA; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , It's a tool to access UFS (Universal Flash Storage) devices from user space. Signed-off-by: Dario Binacchi --- 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 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 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))