diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-03-15 00:22:40 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-03-15 09:17:11 -0700 |
commit | 60f872278dde6156fcf73c19cce3fea295938a06 (patch) | |
tree | 8f4df4f52c7428ba00e9ec4583b5dbaf84ad8872 /meta-initramfs/recipes-bsp/kexecboot/files/0001-kexecboot-Use-new-reboot-API-with-klibc.patch | |
parent | 3189c0dc8f9978ab8f9a4c4f40eead440a07df91 (diff) | |
download | meta-openembedded-60f872278dde6156fcf73c19cce3fea295938a06.tar.gz |
kexec-tools,kexec: Fix build with latest klibc
klibc has changed its signature of reboot() API
adapt the use here
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-bsp/kexecboot/files/0001-kexecboot-Use-new-reboot-API-with-klibc.patch')
-rw-r--r-- | meta-initramfs/recipes-bsp/kexecboot/files/0001-kexecboot-Use-new-reboot-API-with-klibc.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-bsp/kexecboot/files/0001-kexecboot-Use-new-reboot-API-with-klibc.patch b/meta-initramfs/recipes-bsp/kexecboot/files/0001-kexecboot-Use-new-reboot-API-with-klibc.patch new file mode 100644 index 000000000..52d622a2f --- /dev/null +++ b/meta-initramfs/recipes-bsp/kexecboot/files/0001-kexecboot-Use-new-reboot-API-with-klibc.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From a6d1678379df6142a68cc9bb76dae540a31b8fdb Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 14 Mar 2019 23:47:50 -0700 | ||
4 | Subject: [PATCH] kexecboot: Use new reboot() API with klibc | ||
5 | |||
6 | Klibc has changed this API in | ||
7 | https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=6b621b8705ce5901dcf49607c8a3523c9e521901 | ||
8 | |||
9 | therefore adopt the code | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/kexecboot.c | 4 ++-- | ||
16 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/src/kexecboot.c b/src/kexecboot.c | ||
19 | index cf49b40..c785fce 100644 | ||
20 | --- a/src/kexecboot.c | ||
21 | +++ b/src/kexecboot.c | ||
22 | @@ -857,7 +857,7 @@ int process_ctx_menu(struct params_t *params, int action) { | ||
23 | #else | ||
24 | sync(); | ||
25 | /* if ( -1 == reboot(LINUX_REBOOT_CMD_RESTART) ) { */ | ||
26 | - if ( -1 == reboot(RB_AUTOBOOT) ) { | ||
27 | + if ( -1 == reboot(RB_AUTOBOOT, NULL) ) { | ||
28 | log_msg(lg, "Can't initiate reboot: %s", ERRMSG); | ||
29 | } | ||
30 | #endif | ||
31 | @@ -874,7 +874,7 @@ int process_ctx_menu(struct params_t *params, int action) { | ||
32 | #else | ||
33 | sync(); | ||
34 | /* if ( -1 == reboot(LINUX_REBOOT_CMD_POWER_OFF) ) { */ | ||
35 | - if ( -1 == reboot(RB_POWER_OFF) ) { | ||
36 | + if ( -1 == reboot(RB_POWER_OFF, NULL) ) { | ||
37 | log_msg(lg, "Can't initiate shutdown: %s", ERRMSG); | ||
38 | } | ||
39 | #endif | ||
40 | -- | ||
41 | 2.21.0 | ||
42 | |||