diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-02-06 11:01:24 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-02-06 11:16:23 -0800 |
commit | b178b1a11d905734ba3ed82b075ffdb3fe563c02 (patch) | |
tree | a3914a3b202e458182e01ba72f51ba8ff894e709 /meta-initramfs | |
parent | 31e9791350a34e25d1ece43856210da3c1f6662c (diff) | |
download | meta-openembedded-b178b1a11d905734ba3ed82b075ffdb3fe563c02.tar.gz |
ubi-utils-klibc: Fix build with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-make-Add-compiler-includes-in-cflags.patch | 32 | ||||
-rw-r--r-- | meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-make-Add-compiler-includes-in-cflags.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-make-Add-compiler-includes-in-cflags.patch new file mode 100644 index 000000000..778d83012 --- /dev/null +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/0001-make-Add-compiler-includes-in-cflags.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 884ec4c654f1d07a387fdc1dae5640606369f254 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 6 Feb 2021 10:56:36 -0800 | ||
4 | Subject: [PATCH] make: Add compiler includes in cflags | ||
5 | |||
6 | Fixes | ||
7 | In file included from ../git/ubi-utils/ubiformat.c:47: | ||
8 | | ../git/include/common.h:22:10: fatal error: 'stdbool.h' file not found | ||
9 | | #include <stdbool.h> | ||
10 | | ^~~~~~~~~~~ | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | Makefile.am | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/Makefile.am b/Makefile.am | ||
19 | index 5a6e77c..f0003d5 100644 | ||
20 | --- a/Makefile.am | ||
21 | +++ b/Makefile.am | ||
22 | @@ -9,6 +9,7 @@ endif | ||
23 | if WITHOUT_LZO | ||
24 | AM_CPPFLAGS += -DWITHOUT_LZO | ||
25 | endif | ||
26 | +AM_CPPFLAGS += -I$(shell $(CC) -print-file-name=include) | ||
27 | |||
28 | sbin_PROGRAMS = | ||
29 | sbin_SCRIPTS = | ||
30 | -- | ||
31 | 2.30.0 | ||
32 | |||
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb index d32238162..5f43b0229 100644 --- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb +++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_2.0.2.bb | |||
@@ -16,6 +16,7 @@ SRC_URI = "git://git.infradead.org/mtd-utils.git \ | |||
16 | file://0003-Makefile.am-only-build-ubi-utils.patch \ | 16 | file://0003-Makefile.am-only-build-ubi-utils.patch \ |
17 | file://0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch \ | 17 | file://0004-mtd-utils-common.h-no-features.h-for-klibc-builds.patch \ |
18 | file://0005-common.h-replace-getline-with-fgets.patch \ | 18 | file://0005-common.h-replace-getline-with-fgets.patch \ |
19 | file://0001-make-Add-compiler-includes-in-cflags.patch \ | ||
19 | " | 20 | " |
20 | 21 | ||
21 | S = "${WORKDIR}/git" | 22 | S = "${WORKDIR}/git" |