summaryrefslogtreecommitdiffstats
path: root/meta-initramfs
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-07-13 22:40:10 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-07-24 18:57:35 +0200
commitb97358d5a3568deb2a5e939019bb2acef053e53f (patch)
treedcc4357b268ae7b83fd79e231cf2257015446aa9 /meta-initramfs
parent66c632a320bc3b5fca09c7124bd6512803f95280 (diff)
downloadmeta-openembedded-b97358d5a3568deb2a5e939019bb2acef053e53f.tar.gz
kexec-tools-klibc: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs')
-rw-r--r--meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch30
-rw-r--r--meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb1
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch
new file mode 100644
index 000000000..a7600b301
--- /dev/null
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc-2.0.2/0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch
@@ -0,0 +1,30 @@
1From 86b962e7c0de43b20b6210d059e4855ce87078bc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Jul 2017 16:20:08 -0700
4Subject: [PATCH] Adjust the order of headers to fix build for musl
5
6Fixes
7kexec/ifdown.c:33:16: error: storage size of 'ifc' isn't known
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 kexec/ifdown.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/kexec/ifdown.c b/kexec/ifdown.c
15index 2215798..e13f777 100644
16--- a/kexec/ifdown.c
17+++ b/kexec/ifdown.c
18@@ -16,8 +16,8 @@ char *v_ifdown = "@(#)ifdown.c 1.11 02-Jun-1998 miquels@cistron.nl";
19 #include <sys/time.h>
20 #include <errno.h>
21
22-#include <net/if.h>
23 #include <netinet/in.h>
24+#include <net/if.h>
25
26 #define MAX_IFS 64
27
28--
292.13.2
30
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb
index c9fec2542..49c53a3ea 100644
--- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb
+++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_2.0.2.bb
@@ -20,6 +20,7 @@ SRC_URI += " \
20 file://sha256.patch \ 20 file://sha256.patch \
21 file://sysconf_nrprocessors.patch \ 21 file://sysconf_nrprocessors.patch \
22 file://fix-out-of-tree-build.patch \ 22 file://fix-out-of-tree-build.patch \
23 file://0001-Adjust-the-order-of-headers-to-fix-build-for-musl.patch \
23 " 24 "
24 25
25SRC_URI_append_arm = " file://arm_crashdump.patch" 26SRC_URI_append_arm = " file://arm_crashdump.patch"