[oe,meta-networking,3/3] libowfat: Fix parallel build

Message ID 20191106034904.2815791-3-raj.khem@gmail.com
State New
Headers show
Series
  • [oe,meta-oe,1/3] ifplugd: Include stdint.h for uintXX_t
Related show

Commit Message

Khem Raj Nov. 6, 2019, 3:49 a.m.
Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 .../ncp/libowfat/parallel_make.patch          | 20 +++++++++++++++++++
 .../recipes-support/ncp/libowfat_0.32.bb      |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)
 create mode 100644 meta-networking/recipes-support/ncp/libowfat/parallel_make.patch

-- 
2.24.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-networking/recipes-support/ncp/libowfat/parallel_make.patch b/meta-networking/recipes-support/ncp/libowfat/parallel_make.patch
new file mode 100644
index 0000000000..ea39c771c3
--- /dev/null
+++ b/meta-networking/recipes-support/ncp/libowfat/parallel_make.patch
@@ -0,0 +1,20 @@ 
+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
+#include "haveuint128.h"
+         ^~~~~~~~~~~~~~~
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/Makefile
++++ b/Makefile
+@@ -430,7 +430,7 @@ range_str4inbuf.o: mult/range_str4inbuf.
+ range_strinbuf.o: mult/range_strinbuf.c rangecheck.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
+ open_excl.o: open/open_excl.c open.h
+ open_read.o: open/open_read.c open.h
diff --git a/meta-networking/recipes-support/ncp/libowfat_0.32.bb b/meta-networking/recipes-support/ncp/libowfat_0.32.bb
index a5e2c21cf0..b668b0ed5f 100644
--- a/meta-networking/recipes-support/ncp/libowfat_0.32.bb
+++ b/meta-networking/recipes-support/ncp/libowfat_0.32.bb
@@ -6,7 +6,9 @@  HOMEPAGE = "http://www.fefe.de/libowfat"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
 
-SRC_URI = "https://www.fefe.de/${BPN}/${BP}.tar.xz"
+SRC_URI = "https://www.fefe.de/${BPN}/${BP}.tar.xz \
+           file://parallel_make.patch \
+          "
 SRC_URI[md5sum] = "ee015ccf45cb2bc61c942642038c2bdc"
 SRC_URI[sha256sum] = "f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1"