From 0ae2109bce71d8cb2dee4a176a784e39f893501b Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Sun, 13 Jul 2025 09:37:46 +0200 Subject: [PATCH] ufs-utils: upgrade 6.14.11 -> 7.14.11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extending _GNU_SOURCE to the CFGLAS of all platforms, not just mipsarchn64, was necessary to fix the following error raised during the compilation of the new version: ufs_emon.c: In function ‘do_emon’: ufs_emon.c:455:51: error: ‘O_DIRECT’ undeclared (first use in this function); did you mean ‘O_DIRECTORY’? 455 | fill_data_fd = open("fill_file", O_RDWR | O_DIRECT | O_CREAT, | ^~~~~~~~ | O_DIRECTORY ufs_emon.c:455:51: note: each undeclared identifier is reported only once for each function it appears in This _GNU_SOURCE define was added upstream in commit [1] in the Makefile default CFLAGS, but since Yocto redefines those it needs to be added back. Release notes: https://github.com/SanDisk-Open-Source/ufs-utils/releases/tag/v7.14.11 [1] https://github.com/SanDisk-Open-Source/ufs-utils/commit/183e0deb28f13cfb3caf161fc6d0f3cd1edb05c2 Signed-off-by: Dario Binacchi Signed-off-by: Khem Raj --- .../ufs-utils/{ufs-utils_6.14.11.bb => ufs-utils_7.14.11.bb} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename meta-filesystems/recipes-utils/ufs-utils/{ufs-utils_6.14.11.bb => ufs-utils_7.14.11.bb} (80%) diff --git a/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_6.14.11.bb b/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.11.bb similarity index 80% rename from meta-filesystems/recipes-utils/ufs-utils/ufs-utils_6.14.11.bb rename to meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.11.bb index a22e54e24c..50b6b5a16c 100644 --- a/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_6.14.11.bb +++ b/meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.11.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" BRANCH ?= "dev" -SRCREV = "5539a8ad8e1a9b7ea8b62213ed72eb939c5381b7" +SRCREV = "92c8e4d732c34f8d0754d0e076879ca7008bace4" SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=https;branch=${BRANCH} \ " @@ -14,7 +14,8 @@ UPSTREAM_CHECK_COMMITS = "1" EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" CFLAGS="${CFLAGS}"" -CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__ -D_GNU_SOURCE" +CFLAGS:append = " -D_GNU_SOURCE" +CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" do_configure() { sed -i -e "s|-static$||g" ${S}/Makefile