diff options
| author | Khem Raj <raj.khem@gmail.com> | 2021-02-04 23:43:00 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-02-04 23:46:45 -0800 |
| commit | 16dd9dfe3ff1220642f91e19f8cc0f4815d035a1 (patch) | |
| tree | f1afd589bbfc7e1717fa9cd5a0f235a296a8b161 /meta-initramfs/recipes-kernel | |
| parent | ac8a6e43b949086018179cce2d91ea637faf0869 (diff) | |
| download | meta-openembedded-16dd9dfe3ff1220642f91e19f8cc0f4815d035a1.tar.gz | |
klibc: Upgrade to 2.0.8 release
Adjust klcc to work with clang
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrea Adami <andrea.adami@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-kernel')
3 files changed, 29 insertions, 7 deletions
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch index 5bbb178bc6..07fa841ccc 100644 --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/0011-purgatory-Makefile-adapt-to-klcc.patch | |||
| @@ -10,11 +10,9 @@ Signed-off-by: Andrea Adami <andrea.adami@gmail.com> | |||
| 10 | purgatory/Makefile | 6 +++--- | 10 | purgatory/Makefile | 6 +++--- |
| 11 | 1 file changed, 3 insertions(+), 3 deletions(-) | 11 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 12 | 12 | ||
| 13 | diff --git a/purgatory/Makefile b/purgatory/Makefile | ||
| 14 | index 49ce80a..1542b3a 100644 | ||
| 15 | --- a/purgatory/Makefile | 13 | --- a/purgatory/Makefile |
| 16 | +++ b/purgatory/Makefile | 14 | +++ b/purgatory/Makefile |
| 17 | @@ -47,7 +47,7 @@ purgatory/sha256.o: $(srcdir)/util_lib/sha256.c | 15 | @@ -47,7 +47,7 @@ purgatory/sha256.o: $(srcdir)/util_lib/s |
| 18 | $(PURGATORY): CC=$(TARGET_CC) | 16 | $(PURGATORY): CC=$(TARGET_CC) |
| 19 | $(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \ | 17 | $(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \ |
| 20 | $($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ | 18 | $($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ |
| @@ -23,14 +21,14 @@ index 49ce80a..1542b3a 100644 | |||
| 23 | -fno-zero-initialized-in-bss \ | 21 | -fno-zero-initialized-in-bss \ |
| 24 | -fno-PIC -fno-PIE -fno-stack-protector | 22 | -fno-PIC -fno-PIE -fno-stack-protector |
| 25 | 23 | ||
| 26 | @@ -59,8 +59,8 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ | 24 | @@ -59,8 +59,8 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATO |
| 27 | -Iinclude \ | 25 | -Iinclude \ |
| 28 | -I$(shell $(CC) -print-file-name=include) | 26 | -I$(shell $(CC) -print-file-name=include) |
| 29 | $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ | 27 | $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ |
| 30 | - -Wl,--no-undefined -nostartfiles -nostdlib \ | 28 | - -Wl,--no-undefined -nostartfiles -nostdlib \ |
| 31 | - -nodefaultlibs -e purgatory_start -r \ | 29 | - -nodefaultlibs -e purgatory_start -r \ |
| 32 | + -Wl,--no-undefined -Wl,-no-pie -Wl,-nostartfiles -Wl,-nostdlib \ | 30 | + -Wl,--no-undefined -no-pie -nostartfiles -nostdlib \ |
| 33 | + -Wl,-nodefaultlibs -Wl,--entry=purgatory_start -Wl,-r \ | 31 | + -nodefaultlibs -Wl,--entry=purgatory_start -Wl,-r \ |
| 34 | -Wl,-Map=$(PURGATORY_MAP) | 32 | -Wl,-Map=$(PURGATORY_MAP) |
| 35 | 33 | ||
| 36 | $(PURGATORY): $(PURGATORY_OBJS) | 34 | $(PURGATORY): $(PURGATORY_OBJS) |
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/include_next.patch b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/include_next.patch new file mode 100644 index 0000000000..d4fbd1436f --- /dev/null +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/include_next.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | --- a/kexec/Makefile | ||
| 2 | +++ b/kexec/Makefile | ||
| 3 | @@ -110,7 +110,7 @@ $(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB) | ||
| 4 | @$(MKDIR) -p $(@D) | ||
| 5 | $(LINK.o) -o $@ $^ $(CFLAGS) $(LIBS) | ||
| 6 | |||
| 7 | -$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include | ||
| 8 | +$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include -I$(shell $(CC) -print-file-name=include) | ||
| 9 | |||
| 10 | kexec/fs2dt.o: CPPFLAGS+=$($(ARCH)_FS2DT_INCLUDE) | ||
| 11 | |||
| 12 | --- a/Makefile.in | ||
| 13 | +++ b/Makefile.in | ||
| 14 | @@ -46,7 +46,7 @@ TARGET_CFLAGS = @TARGET_CFLAGS@ | ||
| 15 | # Base compiler flags. These are extended by the subcomponent-Makefiles | ||
| 16 | # where necessary. | ||
| 17 | CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \ | ||
| 18 | - -Iinclude/ $($(ARCH)_CPPFLAGS) | ||
| 19 | + -Iinclude/ $($(ARCH)_CPPFLAGS) -I$(shell $(CC) -print-file-name=include) | ||
| 20 | CFLAGS = @CFLAGS@ -static -fno-strict-aliasing -Wall -Wstrict-prototypes | ||
| 21 | PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@ | ||
| 22 | ASFLAGS = @ASFLAGS@ $($(ARCH)_ASFLAGS) | ||
diff --git a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb index d28cfc90f2..c49b24f52f 100644 --- a/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb +++ b/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc_git.bb | |||
| @@ -32,7 +32,9 @@ KLIBC_PATCHES += " \ | |||
| 32 | file://0013-sha256.h-avoid-inclusion-of-sys-types.h.patch \ | 32 | file://0013-sha256.h-avoid-inclusion-of-sys-types.h.patch \ |
| 33 | file://0014-add-if_nameindex-from-musl.patch \ | 33 | file://0014-add-if_nameindex-from-musl.patch \ |
| 34 | file://0015-vmcore-dmesg-fix-warning.patch \ | 34 | file://0015-vmcore-dmesg-fix-warning.patch \ |
| 35 | file://klibc-reboot.patch" | 35 | file://klibc-reboot.patch \ |
| 36 | file://include_next.patch \ | ||
| 37 | " | ||
| 36 | 38 | ||
| 37 | WARNING_FIXES = "" | 39 | WARNING_FIXES = "" |
| 38 | FROM_OE_CORE = "file://arm_crashdump-fix-buffer-align.patch \ | 40 | FROM_OE_CORE = "file://arm_crashdump-fix-buffer-align.patch \ |
