mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
ufs-utils: upgrade 6.14.11 -> 7.14.11
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] 183e0deb28
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
d78a537ee8
commit
0ae2109bce
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user