diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-07-10 21:54:22 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-07-14 23:44:33 +0200 |
commit | 15266c135acec3efdd4dfa1b504a266b5efcbf6b (patch) | |
tree | 445fdb48856813fbefb04493a5862c1d27422876 /meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch | |
parent | 592e9f26cca4944adf4e534af5794680f07d098c (diff) | |
download | meta-openembedded-15266c135acec3efdd4dfa1b504a266b5efcbf6b.tar.gz |
klibc: Fix build with musl
klibc failed to build with armv7+ when using thumb2
it needed to resepct TUNE_CCARGS
Add patches to fix build with musl, to sort out
the linux header maze.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch')
-rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch new file mode 100644 index 000000000..9791412e4 --- /dev/null +++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-mkfifo-Implement-mkfifo.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From b4e120f5edf06e6df138b1804a8b5180584cea6b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 10 Jul 2017 20:42:50 -0700 | ||
4 | Subject: [PATCH] mkfifo: Implement mkfifo | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | usr/utils/mkfifo.c | 5 +++++ | ||
9 | 1 file changed, 5 insertions(+) | ||
10 | |||
11 | diff --git a/usr/utils/mkfifo.c b/usr/utils/mkfifo.c | ||
12 | index 5a758b2a..f1f577e6 100644 | ||
13 | --- a/usr/utils/mkfifo.c | ||
14 | +++ b/usr/utils/mkfifo.c | ||
15 | @@ -26,6 +26,11 @@ static int make_fifo(char *dir) | ||
16 | return 0; | ||
17 | } | ||
18 | |||
19 | +int mkfifo (const char *__p, mode_t __m) | ||
20 | +{ | ||
21 | + return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t) 0); | ||
22 | +} | ||
23 | + | ||
24 | int main(int argc, char *argv[]) | ||
25 | { | ||
26 | int c, ret = 0; | ||
27 | -- | ||
28 | 2.13.2 | ||
29 | |||