mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-17 04:37:19 +00:00
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>
This commit is contained in:
+4
-6
@@ -10,11 +10,9 @@ Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
|
||||
purgatory/Makefile | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/purgatory/Makefile b/purgatory/Makefile
|
||||
index 49ce80a..1542b3a 100644
|
||||
--- a/purgatory/Makefile
|
||||
+++ b/purgatory/Makefile
|
||||
@@ -47,7 +47,7 @@ purgatory/sha256.o: $(srcdir)/util_lib/sha256.c
|
||||
@@ -47,7 +47,7 @@ purgatory/sha256.o: $(srcdir)/util_lib/s
|
||||
$(PURGATORY): CC=$(TARGET_CC)
|
||||
$(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \
|
||||
$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
|
||||
@@ -23,14 +21,14 @@ index 49ce80a..1542b3a 100644
|
||||
-fno-zero-initialized-in-bss \
|
||||
-fno-PIC -fno-PIE -fno-stack-protector
|
||||
|
||||
@@ -59,8 +59,8 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
|
||||
@@ -59,8 +59,8 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATO
|
||||
-Iinclude \
|
||||
-I$(shell $(CC) -print-file-name=include)
|
||||
$(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
|
||||
- -Wl,--no-undefined -nostartfiles -nostdlib \
|
||||
- -nodefaultlibs -e purgatory_start -r \
|
||||
+ -Wl,--no-undefined -Wl,-no-pie -Wl,-nostartfiles -Wl,-nostdlib \
|
||||
+ -Wl,-nodefaultlibs -Wl,--entry=purgatory_start -Wl,-r \
|
||||
+ -Wl,--no-undefined -no-pie -nostartfiles -nostdlib \
|
||||
+ -nodefaultlibs -Wl,--entry=purgatory_start -Wl,-r \
|
||||
-Wl,-Map=$(PURGATORY_MAP)
|
||||
|
||||
$(PURGATORY): $(PURGATORY_OBJS)
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
--- a/kexec/Makefile
|
||||
+++ b/kexec/Makefile
|
||||
@@ -110,7 +110,7 @@ $(KEXEC): $(KEXEC_OBJS) $(UTIL_LIB)
|
||||
@$(MKDIR) -p $(@D)
|
||||
$(LINK.o) -o $@ $^ $(CFLAGS) $(LIBS)
|
||||
|
||||
-$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include
|
||||
+$(KEXEC): CPPFLAGS+=-I$(srcdir)/kexec/arch/$(ARCH)/include -I$(shell $(CC) -print-file-name=include)
|
||||
|
||||
kexec/fs2dt.o: CPPFLAGS+=$($(ARCH)_FS2DT_INCLUDE)
|
||||
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -46,7 +46,7 @@ TARGET_CFLAGS = @TARGET_CFLAGS@
|
||||
# Base compiler flags. These are extended by the subcomponent-Makefiles
|
||||
# where necessary.
|
||||
CPPFLAGS = @CPPFLAGS@ -I$(srcdir)/include -I$(srcdir)/util_lib/include \
|
||||
- -Iinclude/ $($(ARCH)_CPPFLAGS)
|
||||
+ -Iinclude/ $($(ARCH)_CPPFLAGS) -I$(shell $(CC) -print-file-name=include)
|
||||
CFLAGS = @CFLAGS@ -static -fno-strict-aliasing -Wall -Wstrict-prototypes
|
||||
PURGATORY_EXTRA_CFLAGS = @PURGATORY_EXTRA_CFLAGS@
|
||||
ASFLAGS = @ASFLAGS@ $($(ARCH)_ASFLAGS)
|
||||
@@ -32,7 +32,9 @@ KLIBC_PATCHES += " \
|
||||
file://0013-sha256.h-avoid-inclusion-of-sys-types.h.patch \
|
||||
file://0014-add-if_nameindex-from-musl.patch \
|
||||
file://0015-vmcore-dmesg-fix-warning.patch \
|
||||
file://klibc-reboot.patch"
|
||||
file://klibc-reboot.patch \
|
||||
file://include_next.patch \
|
||||
"
|
||||
|
||||
WARNING_FIXES = ""
|
||||
FROM_OE_CORE = "file://arm_crashdump-fix-buffer-align.patch \
|
||||
|
||||
Reference in New Issue
Block a user