mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-03 14:19:52 +00:00
ubi-utils-klibc: upgrade 2.3.0 -> 2.3.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
From e596ae99059c28fa9bb3461e03e7ecaacbf41727 Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Adami <andrea.adami@gmail.com>
|
||||
Date: Wed, 23 May 2018 15:34:59 +0200
|
||||
Subject: [PATCH] libmissing.h: fix klibc build when using glibc toolchain
|
||||
|
||||
klibc lacks execinfo.h so adda guard around it.
|
||||
Note: build with musl toolchain is ok even without this patch.
|
||||
|
||||
Fix build error:
|
||||
|
||||
| In file included from ../git/lib/execinfo.c:1:0:
|
||||
| ../git/include/libmissing.h:7:10: fatal error: execinfo.h:
|
||||
No such file or directory
|
||||
|
||||
Upstream-Status: Inappropriate [klibc specific]
|
||||
|
||||
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
|
||||
---
|
||||
include/libmissing.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/include/libmissing.h b/include/libmissing.h
|
||||
index 0196033..832c372 100644
|
||||
--- a/include/libmissing.h
|
||||
+++ b/include/libmissing.h
|
||||
@@ -1,9 +1,11 @@
|
||||
#ifndef LIBMISSING_H
|
||||
#define LIBMISSING_H
|
||||
|
||||
+#ifndef __KLIBC__
|
||||
#ifdef HAVE_EXECINFO_H
|
||||
#include <execinfo.h>
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#ifndef HAVE_EXECINFO_H
|
||||
int backtrace(void **buffer, int size);
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
From 884ec4c654f1d07a387fdc1dae5640606369f254 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Sat, 6 Feb 2021 10:56:36 -0800
|
||||
Subject: [PATCH] make: Add compiler includes in cflags
|
||||
|
||||
Fixes
|
||||
In file included from ../git/ubi-utils/ubiformat.c:47:
|
||||
| ../git/include/common.h:22:10: fatal error: 'stdbool.h' file not found
|
||||
| #include <stdbool.h>
|
||||
| ^~~~~~~~~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 5a6e77c..f0003d5 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -26,6 +26,7 @@ endif
|
||||
if WITH_CRYPTO
|
||||
AM_CPPFLAGS += -DWITH_CRYPTO
|
||||
endif
|
||||
+AM_CPPFLAGS += -I$(shell $(CC) -print-file-name=include)
|
||||
|
||||
sbin_PROGRAMS =
|
||||
sbin_SCRIPTS =
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
From 139d93bc405272a3261d57be26da842e737fe4d0 Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Adami <andrea.adami@gmail.com>
|
||||
Date: Sun, 28 Jan 2018 23:10:34 +0100
|
||||
Subject: [PATCH] Makefile.am: only build ubi-utils
|
||||
|
||||
We only target the ubi-utils, static, small.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
|
||||
---
|
||||
Makefile.am | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 5a6e77c..98715dd 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -46,9 +46,9 @@ EXTRA_DIST = COPYING CHANGELOG.md README.txt
|
||||
|
||||
include lib/Makemodule.am
|
||||
include ubi-utils/Makemodule.am
|
||||
-include misc-utils/Makemodule.am
|
||||
-include nand-utils/Makemodule.am
|
||||
-include nor-utils/Makemodule.am
|
||||
+#include misc-utils/Makemodule.am
|
||||
+#include nand-utils/Makemodule.am
|
||||
+#include nor-utils/Makemodule.am
|
||||
|
||||
if BUILD_UBIFS
|
||||
include ubifs-utils/Makemodule.am
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
From ae1cf6d0eb1833e46549328a4473222c259723d7 Mon Sep 17 00:00:00 2001
|
||||
From: Andrea Adami <andrea.adami@gmail.com>
|
||||
Date: Thu, 1 Feb 2018 00:25:00 +0100
|
||||
Subject: [PATCH] mtd-utils: common.h: no features.h for klibc builds
|
||||
|
||||
Add guard around features.h to fix missing include (here first error):
|
||||
|
||||
../git/include/common.h:29:10:
|
||||
fatal error: features.h: No such file or directory
|
||||
#include <features.h>
|
||||
^~~~~~~~~~~~
|
||||
compilation terminated
|
||||
|
||||
Upstream-Status: Submitted
|
||||
|
||||
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
|
||||
---
|
||||
include/common.h | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/include/common.h b/include/common.h
|
||||
index 642c212..f7c71fe 100644
|
||||
--- a/include/common.h
|
||||
+++ b/include/common.h
|
||||
@@ -26,7 +26,10 @@
|
||||
#include <string.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
+#if defined(__KLIBC__)
|
||||
+#else
|
||||
#include <features.h>
|
||||
+#endif
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/sysmacros.h>
|
||||
--
|
||||
2.7.4
|
||||
|
||||
Reference in New Issue
Block a user