diff options
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch | 34 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch | 6 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch | 4 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.13.bb (renamed from meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.10.bb) | 0 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.13.bb (renamed from meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.10.bb) | 0 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.13.bb (renamed from meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.10.bb) | 0 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc.inc | 3 | ||||
| -rw-r--r-- | meta-initramfs/recipes-devtools/klibc/klibc_2.0.13.bb (renamed from meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb) | 0 |
8 files changed, 6 insertions, 41 deletions
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch deleted file mode 100644 index 4fc4b45fb1..0000000000 --- a/meta-initramfs/recipes-devtools/klibc/files/0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From a33c262f828f803fffdad8e1f44d524dc9c75856 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ben Hutchings <ben@decadent.org.uk> | ||
| 3 | Date: Wed, 3 Aug 2022 01:10:01 +0200 | ||
| 4 | Subject: [PATCH] fcntl: Fix build failure for some architectures with Linux | ||
| 5 | 5.19 | ||
| 6 | |||
| 7 | Starting from Linux 5.19, the kernel UAPI headers now only define | ||
| 8 | __ARCH_FLOCK64_PAD if the architecture actually needs padding in | ||
| 9 | struct flock64. Wrap its use with #ifdef, | ||
| 10 | |||
| 11 | Upstream-Status: Backport [https://git.kernel.org/pub/scm/libs/klibc/klibc.git/commit/?id=bb2fde5ddbc18a2e7795ca4d24759230c2aae9d0] | ||
| 12 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 14 | --- | ||
| 15 | usr/include/fcntl.h | 2 ++ | ||
| 16 | 1 file changed, 2 insertions(+) | ||
| 17 | |||
| 18 | diff --git a/usr/include/fcntl.h b/usr/include/fcntl.h | ||
| 19 | index ed703a6..cb2e4e5 100644 | ||
| 20 | --- a/usr/include/fcntl.h | ||
| 21 | +++ b/usr/include/fcntl.h | ||
| 22 | @@ -33,7 +33,9 @@ struct flock { | ||
| 23 | __kernel_loff_t l_start; | ||
| 24 | __kernel_loff_t l_len; | ||
| 25 | __kernel_pid_t l_pid; | ||
| 26 | +#ifdef __ARCH_FLOCK64_PAD | ||
| 27 | __ARCH_FLOCK64_PAD | ||
| 28 | +#endif | ||
| 29 | }; | ||
| 30 | |||
| 31 | #ifdef F_GETLK64 | ||
| 32 | -- | ||
| 33 | 2.37.2 | ||
| 34 | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch index 15b5144e44..e4ae3728a4 100644 --- a/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch +++ b/meta-initramfs/recipes-devtools/klibc/files/0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch | |||
| @@ -14,8 +14,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 14 | 14 | ||
| 15 | --- a/usr/klibc/Kbuild | 15 | --- a/usr/klibc/Kbuild |
| 16 | +++ b/usr/klibc/Kbuild | 16 | +++ b/usr/klibc/Kbuild |
| 17 | @@ -183,7 +183,8 @@ $(SOHASH): $(SOLIB) $(SOLIB).hash | 17 | @@ -190,7 +190,8 @@ $(SOHASH): $(SOLIB) $(SOLIB).hash |
| 18 | targets += interp.o | 18 | targets += shared-stub.o |
| 19 | 19 | ||
| 20 | quiet_cmd_interp = BUILD $@ | 20 | quiet_cmd_interp = BUILD $@ |
| 21 | - cmd_interp = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \ | 21 | - cmd_interp = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \ |
| @@ -23,4 +23,4 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 23 | + -D__ASSEMBLY__ \ | 23 | + -D__ASSEMBLY__ \ |
| 24 | -DLIBDIR=\"$(SHLIBDIR)\" \ | 24 | -DLIBDIR=\"$(SHLIBDIR)\" \ |
| 25 | -DSOHASH=\"$(SOLIBHASH)\" \ | 25 | -DSOHASH=\"$(SOLIBHASH)\" \ |
| 26 | $(KLIBCSTACKFLAGS) \ | 26 | -c -o $@ $< |
diff --git a/meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch b/meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch index 585fb2d439..7b29eaf200 100644 --- a/meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch +++ b/meta-initramfs/recipes-devtools/klibc/files/armv4-fix-v4bx.patch | |||
| @@ -16,8 +16,8 @@ Upstream-Status: Pending | |||
| 16 | 16 | ||
| 17 | --- a/usr/klibc/arch/arm/MCONFIG | 17 | --- a/usr/klibc/arch/arm/MCONFIG |
| 18 | +++ b/usr/klibc/arch/arm/MCONFIG | 18 | +++ b/usr/klibc/arch/arm/MCONFIG |
| 19 | @@ -27,6 +27,7 @@ else | 19 | @@ -23,6 +23,7 @@ else |
| 20 | KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x01800000 | 20 | # Extra linkflags when building the shared version of the library |
| 21 | ifeq ($(CONFIG_AEABI),y) | 21 | ifeq ($(CONFIG_AEABI),y) |
| 22 | KLIBCREQFLAGS += -mabi=aapcs-linux -mno-thumb-interwork | 22 | KLIBCREQFLAGS += -mabi=aapcs-linux -mno-thumb-interwork |
| 23 | +KLIBCLDFLAGS += $(FIX_ARMV4_EABI_BX) | 23 | +KLIBCLDFLAGS += $(FIX_ARMV4_EABI_BX) |
diff --git a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.10.bb b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.13.bb index 4011aa231e..4011aa231e 100644 --- a/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.10.bb +++ b/meta-initramfs/recipes-devtools/klibc/klcc-cross_2.0.13.bb | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.10.bb b/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.13.bb index 0de580781b..0de580781b 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.10.bb +++ b/meta-initramfs/recipes-devtools/klibc/klibc-static-utils_2.0.13.bb | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.10.bb b/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.13.bb index 2f26093cbe..2f26093cbe 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.10.bb +++ b/meta-initramfs/recipes-devtools/klibc/klibc-utils_2.0.13.bb | |||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc.inc b/meta-initramfs/recipes-devtools/klibc/klibc.inc index 5acf679983..113459b523 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc.inc +++ b/meta-initramfs/recipes-devtools/klibc/klibc.inc | |||
| @@ -20,7 +20,6 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/libs/klibc/2.0/klibc-${PV}.tar.xz \ | |||
| 20 | file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ | 20 | file://0001-klibc-Kbuild-Accept-EXTRA_KLIBCAFLAGS.patch \ |
| 21 | file://cross-clang.patch \ | 21 | file://cross-clang.patch \ |
| 22 | file://0001-workaround-for-overlapping-sections-in-binary.patch \ | 22 | file://0001-workaround-for-overlapping-sections-in-binary.patch \ |
| 23 | file://0001-fcntl-Fix-build-failure-for-some-architectures-with-.patch \ | ||
| 24 | " | 23 | " |
| 25 | 24 | ||
| 26 | ARMPATCHES ?= "" | 25 | ARMPATCHES ?= "" |
| @@ -28,7 +27,7 @@ ARMPATCHES ?= "" | |||
| 28 | ARMPATCHES:arm = " \ | 27 | ARMPATCHES:arm = " \ |
| 29 | file://armv4-fix-v4bx.patch \ | 28 | file://armv4-fix-v4bx.patch \ |
| 30 | " | 29 | " |
| 31 | SRC_URI[sha256sum] = "662753da8889e744dfc0db6eb4021c3377ee7ef8ed66d7d57765f8c9e25939cd" | 30 | SRC_URI[sha256sum] = "d673a294f742d59368222ff5c38462d81098c55063799de6fb8a7ba3d4af0436" |
| 32 | 31 | ||
| 33 | S = "${WORKDIR}/klibc-${PV}" | 32 | S = "${WORKDIR}/klibc-${PV}" |
| 34 | 33 | ||
diff --git a/meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb b/meta-initramfs/recipes-devtools/klibc/klibc_2.0.13.bb index 8dda9a8cdc..8dda9a8cdc 100644 --- a/meta-initramfs/recipes-devtools/klibc/klibc_2.0.10.bb +++ b/meta-initramfs/recipes-devtools/klibc/klibc_2.0.13.bb | |||
