deleted file mode 100644
@@ -1,40 +0,0 @@
-From 7f6a104a682d59f28f7df889129f4467cc45e912 Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Wed, 6 Nov 2019 19:55:42 -0800
-Subject: [PATCH] Depend on haveuint128.h for umult64.c
-
-This fixes parallel build issue e.g.
-mult/umult64.c:9:10: fatal error: 'haveuint128.h' file not found
- ^~~~~~~~~~~~~~~
-
-Upstream-Status: Pending
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- GNUmakefile | 2 +-
- Makefile | 2 +-
- 2 files changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/GNUmakefile b/GNUmakefile
---- a/GNUmakefile
-+++ b/GNUmakefile
-@@ -753,7 +753,7 @@
- range_strinbuf.o: mult/range_strinbuf.c rangecheck.h libowfat/compiler.h
- umult16.o: mult/umult16.c uint16.h
- umult32.o: mult/umult32.c uint32.h
--umult64.o: mult/umult64.c uint64.h
-+umult64.o: mult/umult64.c uint64.h haveuint128.h
- open_append.o: open/open_append.c open.h libowfat/compiler.h
- open_excl.o: open/open_excl.c open.h libowfat/compiler.h
- open_read.o: open/open_read.c open.h libowfat/compiler.h
-diff --git a/Makefile b/Makefile
---- a/Makefile
-+++ b/Makefile
-@@ -690,7 +690,7 @@
- range_strinbuf.o: mult/range_strinbuf.c rangecheck.h libowfat/compiler.h
- umult16.o: mult/umult16.c uint16.h
- umult32.o: mult/umult32.c uint32.h
--umult64.o: mult/umult64.c uint64.h
-+umult64.o: mult/umult64.c uint64.h haveuint128.h
- open_append.o: open/open_append.c open.h libowfat/compiler.h
- open_excl.o: open/open_excl.c open.h libowfat/compiler.h
- open_read.o: open/open_read.c open.h libowfat/compiler.h
deleted file mode 100644
@@ -1,60 +0,0 @@
-From 397d00cfd672f3782196e927d0a878ab1d800112 Mon Sep 17 00:00:00 2001
-From: "mark.yang" <mark.yang@lge.com>
-Date: Fri, 18 Apr 2025 17:30:48 +0900
-Subject: [PATCH] fix incompatible type error with gcc 15
-
- * fix following errors:
- ./select.h:13:12: error: conflicting types for 'select'; have 'int(void)'
- 13 | extern int select();
- | ^~~~~~
- In file included from TOPDIR/tmp/work/core2-64-oe-linux/libowfat/0.32/recipe-sysroot/usr/include/sys/types.h:179,
- from ./select.h:6:
- ./buffer.h:40:65: error: initialization of 'ssize_t (*)(void)' {aka 'long int (*)(void)'} from incompatible pointer type 'ssize_t (*)(int, char *, size_t)' {aka 'long int (*)(int, char *, long unsigned int)'} [-Wincompatible-pointer-types]
- 40 | #define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
- | ^
-Upstream-Status: Submitted [felix-libowfat@fefe.de]
-Signed-off-by: mark.yang <mark.yang@lge.com>
----
- buffer.h | 2 +-
- buffer/buffer_frombuf.c | 2 +-
- buffer/buffer_tosa.c | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/buffer.h b/buffer.h
-index 54bed5c..eaf7acb 100644
---- a/buffer.h
-+++ b/buffer.h
-@@ -37,7 +37,7 @@ typedef struct buffer {
- int fd; /* passed as first argument to op */
- } buffer;
-
--#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (op), NULL, NULL, (fd) }
-+#define BUFFER_INIT(op,fd,buf,len) { (char*)(buf), 0, 0, (len), (void*)(op), NULL, NULL, (fd) }
- #define BUFFER_INIT_FREE(op,fd,buf,len) { (buf), 0, 0, (len), (op), NULL, buffer_free, (fd) }
- #define BUFFER_INIT_READ(op,fd,buf,len) BUFFER_INIT(op,fd,buf,len) /*obsolete*/
- #define BUFFER_INSIZE 8192
-diff --git a/buffer/buffer_frombuf.c b/buffer/buffer_frombuf.c
-index 0c9d931..2aa27ca 100644
---- a/buffer/buffer_frombuf.c
-+++ b/buffer/buffer_frombuf.c
-@@ -14,6 +14,6 @@ void buffer_frombuf(buffer* b,const char* x,size_t l) {
- b->n=l;
- b->a=l;
- b->fd=0;
-- b->op=dummyreadwrite;
-+ b->op=(void*)dummyreadwrite;
- b->deinit=0;
- }
-diff --git a/buffer/buffer_tosa.c b/buffer/buffer_tosa.c
-index a10be4f..99111a9 100644
---- a/buffer/buffer_tosa.c
-+++ b/buffer/buffer_tosa.c
-@@ -21,7 +21,7 @@ int buffer_tosa(buffer* b,stralloc* sa) {
- b->n=0;
- b->a=1024;
- b->fd=0;
-- b->op=strallocwrite;
-+ b->op=(void*)strallocwrite;
- b->cookie=sa;
- b->deinit=0;
- return 0;
new file mode 100644
@@ -0,0 +1,34 @@
+From 7fbcf8dc9c8c874dd8eac1e49f17532510be9d71 Mon Sep 17 00:00:00 2001
+From: Khem Raj <khem.raj@oss.qualcomm.com>
+Date: Sat, 28 Nov 2026 13:50:07 -0800
+Subject: [PATCH] GNUmakefile: Build t.o after the library
+
+t.o has no dependency list, so it is built with the generic %.o rule
+as soon as make starts. t.c includes headers that are generated for the
+library, such as libowfat/io.h and haveepoll.h, so building t.o alone or
+early in a parallel build fails:
+
+ ./iob.h:16:10: fatal error: 'libowfat/io.h' file not found
+
+Make t.o depend on libowfat.a, which depends on all of them.
+
+Upstream-Status: Pending
+AI-Generated: Uses Claude Code
+Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+---
+ GNUmakefile | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/GNUmakefile b/GNUmakefile
+index 1ecd201..43812e1 100644
+--- a/GNUmakefile
++++ b/GNUmakefile
+@@ -667,6 +667,8 @@ CFLAGS_OPT+=-I.
+ t: t.o libowfat.a libsocket
+ $(DIET) $(CCC) -g -o $@ t.o libowfat.a `cat libsocket` -lpthread $(LDFLAGS)
+
++t.o: libowfat.a
++
+ .PHONY: all clean tar install rename
+ clean:
+ rm -f *.o *.obj *.a *.lib *.da *.bbg *.bb *.plist core t \
similarity index 63%
rename from meta-networking/recipes-support/ncp/libowfat_0.34.bb
rename to meta-networking/recipes-support/ncp/libowfat_git.bb
@@ -6,16 +6,14 @@ HOMEPAGE = "http://www.fefe.de/libowfat"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
-SRC_URI = "http://www.fefe.de/${BPN}/${BP}.tar.xz \
- file://0001-Depend-on-haveuint128.h-for-umult64.c.patch \
- file://0001-fix-incompatible-type-error-with-gcc-15.patch \
+SRC_URI = "git://github.com/gebi/libowfat;branch=master;protocol=https \
file://0001-GNUmakefile-build-json-helper-for-the-build-host.patch \
- "
-SRC_URI[sha256sum] = "d4330d373ac9581b397bc24a22ad1f7f5d58a7fe36d9d239fe352ceffc5d304b"
+ file://0002-GNUmakefile-Build-t.o-after-the-library.patch \
+ "
+SRCREV = "60da23b00a37fb2a5fff114eee5bb081d70cad62"
+PV = "0.34+git"
-# GCC 14+ promotes -Wincompatible-pointer-types to an error. libowfat 0.34
-# passes read()/write() directly where a typeless op pointer is expected.
-CFLAGS += "-Wno-error=incompatible-pointer-types"
+UPSTREAM_CHECK_COMMITS = "1"
EXTRA_OEMAKE = "\
DIET= \
@@ -23,6 +21,11 @@ EXTRA_OEMAKE = "\
CCC='${CC}' CFLAGS='${CFLAGS} -I.' CFLAGS_OPT='${CFLAGS} -I.' \
"
+# The object dependency lists miss some of the generated libowfat/ headers
+do_compile:prepend() {
+ oe_runmake headers
+}
+
do_install() {
make install \
DESTDIR=${D} \
www.fefe.de, which served the release tarballs, is not reachable. Fetch from the github.com/gebi/libowfat mirror of the upstream CVS repository instead and update to the tip of master (2025-05-14). It has no release tags; master holds the unreleased 0.35 changes: gcc 15 and C23 fixes to buffer.h, compiler attributes across the code base, ARM fixes for unsigned char and clamp.h. Drop the gcc 15 patch and the -Wno-error=incompatible-pointer-types workaround, which upstream addressed, and the umult64.c dependency patch, as GNUmakefile now lists haveuint128.h. Keep the json helper patch. Track new commits with UPSTREAM_CHECK_COMMITS. The object dependency lists in GNUmakefile miss some of the generated headers, so a parallel build can compile an object before its headers exist, e.g. ./iob.h:16:10: fatal error: 'libowfat/io.h' file not found Create the libowfat/ header links with the headers target first, and make t.o, which has no dependency list, depend on libowfat.a. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...epend-on-haveuint128.h-for-umult64.c.patch | 40 ------------- ...-incompatible-type-error-with-gcc-15.patch | 60 ------------------- ...makefile-Build-t.o-after-the-library.patch | 34 +++++++++++ .../ncp/{libowfat_0.34.bb => libowfat_git.bb} | 19 +++--- 4 files changed, 45 insertions(+), 108 deletions(-) delete mode 100644 meta-networking/recipes-support/ncp/libowfat/0001-Depend-on-haveuint128.h-for-umult64.c.patch delete mode 100644 meta-networking/recipes-support/ncp/libowfat/0001-fix-incompatible-type-error-with-gcc-15.patch create mode 100644 meta-networking/recipes-support/ncp/libowfat/0002-GNUmakefile-Build-t.o-after-the-library.patch rename meta-networking/recipes-support/ncp/{libowfat_0.34.bb => libowfat_git.bb} (63%)