summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Adami <andrea.adami@gmail.com>2018-09-05 00:08:50 +0200
committerKhem Raj <raj.khem@gmail.com>2018-09-05 13:59:15 -0700
commit641dff9768a0c0a127d2f60d9dd8dfa1dd347e0a (patch)
tree384c02d2bbaf6f3f85f033b3a9aead340cf75d89
parent40ccddb62ca36d89927febf2387564f396c0d4b0 (diff)
downloadmeta-openembedded-641dff9768a0c0a127d2f60d9dd8dfa1dd347e0a.tar.gz
klibc_2.0.4: add kexec_file_load() and getrandom() syscalls
Needed by kexec-tools afer 2.0.17 Signed-off-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch27
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch27
-rw-r--r--meta-initramfs/recipes-devtools/klibc/klibc.inc2
3 files changed, 56 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
new file mode 100644
index 000000000..0768f6d51
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc-add-getrandom-syscall.patch
@@ -0,0 +1,27 @@
1From e4d5d5224609d7d5c824dd231f5baec868befdfa Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Tue, 4 Sep 2018 23:56:00 +0200
4Subject: [PATCH 1/1] klibc: add getrandom() syscall
5
6needed by latest kexec-tools for qemuarm64 (kashan)
7
8Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
9---
10 usr/klibc/SYSCALLS.def | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
14index 6b3bf4c..d4184ba 100644
15--- a/usr/klibc/SYSCALLS.def
16+++ b/usr/klibc/SYSCALLS.def
17@@ -274,6 +274,7 @@ int syslog::klogctl(int, char *, int);
18 int sysinfo(struct sysinfo *);
19 long kexec_load(void *, unsigned long, struct kexec_segment *, unsigned long);
20 <x86_64,ppc64,s390x> long kexec_file_load(int, int, unsigned long, const char *, unsigned long);
21+ssize_t getrandom(void *, size_t, unsigned int);
22
23 /*
24 * Low-level I/O (generally architecture-specific);
25--
262.7.4
27
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
new file mode 100644
index 000000000..3d8d987c4
--- /dev/null
+++ b/meta-initramfs/recipes-devtools/klibc/klibc-2.0.4/0001-klibc_2.0.4-add-kexec_file_load-syscall.patch
@@ -0,0 +1,27 @@
1From 90683d5eaabfa684a71411d6e3262153ac191ad8 Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Tue, 4 Sep 2018 23:44:30 +0200
4Subject: [PATCH 1/1] klibc_2.0.4: add kexec_file_load syscall
5
6for supported archs only (matched in kexec-tools)
7
8Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
9---
10 usr/klibc/SYSCALLS.def | 1 +
11 1 file changed, 1 insertion(+)
12
13diff --git a/usr/klibc/SYSCALLS.def b/usr/klibc/SYSCALLS.def
14index c56e8f9..6b3bf4c 100644
15--- a/usr/klibc/SYSCALLS.def
16+++ b/usr/klibc/SYSCALLS.def
17@@ -273,6 +273,7 @@ int reboot::__reboot(int, int, int, void *);
18 int syslog::klogctl(int, char *, int);
19 int sysinfo(struct sysinfo *);
20 long kexec_load(void *, unsigned long, struct kexec_segment *, unsigned long);
21+<x86_64,ppc64,s390x> long kexec_file_load(int, int, unsigned long, const char *, unsigned long);
22
23 /*
24 * Low-level I/O (generally architecture-specific);
25--
262.7.4
27
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc
index 30294b19a..8616f89f2 100644
--- a/meta-initramfs/recipes-devtools/klibc/klibc.inc
+++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc
@@ -20,6 +20,8 @@ SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git \
20 file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \ 20 file://0001-Kbuild.klibc-Use-print-libgcc-file-name-instead-of-p.patch \
21 file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \ 21 file://0001-Kbuild.klibc-Add-path-to-compiler-headers-via-isyste.patch \
22 file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \ 22 file://0001-arm-Do-not-set-a-fallback-march-and-mtune.patch \
23 file://0001-klibc_2.0.4-add-kexec_file_load-syscall.patch \
24 file://0001-klibc-add-getrandom-syscall.patch \
23" 25"
24 26
25ARMPATCHES ?= "" 27ARMPATCHES ?= ""