diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-04-12 23:48:41 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-18 11:37:26 +0100 |
| commit | 18007c25bd1820abba336cd40706fa0e3e6f472f (patch) | |
| tree | 8260964bf52e7c1937fcef4f188cb73114133d80 | |
| parent | 44b37abc66fb249c9bd103df6a28360ab2c06e05 (diff) | |
| download | poky-18007c25bd1820abba336cd40706fa0e3e6f472f.tar.gz | |
systemd: Fix build on mips/musl
(From OE-Core rev: b4a0d8799af0a3d1b685dd7200b545fdb2c79d64)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/systemd/systemd/0028-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch | 36 | ||||
| -rw-r--r-- | meta/recipes-core/systemd/systemd_247.6.bb | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0028-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch b/meta/recipes-core/systemd/systemd/0028-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch new file mode 100644 index 0000000000..bbee6e6b28 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0028-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | From 7b32582c066549fea0f7180a6c575e7fa37a867f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 12 Apr 2021 23:44:53 -0700 | ||
| 4 | Subject: [PATCH] missing_syscall.h: Define MIPS ABI defines for musl | ||
| 5 | |||
| 6 | musl does not define _MIPS_SIM_ABI32, _MIPS_SIM_NABI32, _MIPS_SIM_ABI64 | ||
| 7 | unlike glibc where these are provided by libc headers, therefore define | ||
| 8 | them here in case they are undefined | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | src/basic/missing_syscall.h | 6 ++++++ | ||
| 15 | 1 file changed, 6 insertions(+) | ||
| 16 | |||
| 17 | diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h | ||
| 18 | index 0594a1b930..495d161334 100644 | ||
| 19 | --- a/src/basic/missing_syscall.h | ||
| 20 | +++ b/src/basic/missing_syscall.h | ||
| 21 | @@ -15,6 +15,12 @@ | ||
| 22 | #include <asm/sgidefs.h> | ||
| 23 | #endif | ||
| 24 | |||
| 25 | +#ifndef _MIPS_SIM_ABI32 | ||
| 26 | +#define _MIPS_SIM_ABI32 1 | ||
| 27 | +#define _MIPS_SIM_NABI32 2 | ||
| 28 | +#define _MIPS_SIM_ABI64 3 | ||
| 29 | +#endif | ||
| 30 | + | ||
| 31 | #if defined(__x86_64__) && defined(__ILP32__) | ||
| 32 | # define systemd_SC_arch_bias(x) ((x) | /* __X32_SYSCALL_BIT */ 0x40000000) | ||
| 33 | #elif defined(__ia64__) | ||
| 34 | -- | ||
| 35 | 2.31.1 | ||
| 36 | |||
diff --git a/meta/recipes-core/systemd/systemd_247.6.bb b/meta/recipes-core/systemd/systemd_247.6.bb index cd67e65abe..32afa159ec 100644 --- a/meta/recipes-core/systemd/systemd_247.6.bb +++ b/meta/recipes-core/systemd/systemd_247.6.bb | |||
| @@ -55,6 +55,7 @@ SRC_URI_MUSL = "\ | |||
| 55 | file://0022-do-not-disable-buffer-in-writing-files.patch \ | 55 | file://0022-do-not-disable-buffer-in-writing-files.patch \ |
| 56 | file://0025-Handle-__cpu_mask-usage.patch \ | 56 | file://0025-Handle-__cpu_mask-usage.patch \ |
| 57 | file://0026-Handle-missing-gshadow.patch \ | 57 | file://0026-Handle-missing-gshadow.patch \ |
| 58 | file://0028-missing_syscall.h-Define-MIPS-ABI-defines-for-musl.patch \ | ||
| 58 | " | 59 | " |
| 59 | 60 | ||
| 60 | PAM_PLUGINS = " \ | 61 | PAM_PLUGINS = " \ |
