mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-07-19 15:29:08 +02:00

* some old patches apparently unneeded have been removed * patches are now better split * fix build for x86 and x86-64 * tested with qemuarm, qemuppc, qemumips, qemux86, qemux86-64 Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
22 lines
653 B
Diff
22 lines
653 B
Diff
--- a/purgatory/Makefile
|
|
+++ b/purgatory/Makefile
|
|
@@ -47,7 +47,7 @@
|
|
$(PURGATORY): CC=$(TARGET_CC)
|
|
$(PURGATORY): CFLAGS+=$(PURGATORY_EXTRA_CFLAGS) \
|
|
$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
|
|
- -Os -fno-builtin -ffreestanding
|
|
+ -Os -fno-builtin -ffreestanding -nostdinc
|
|
|
|
$(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
|
|
-I$(srcdir)/purgatory/include \
|
|
@@ -61,7 +61,8 @@
|
|
|
|
$(PURGATORY): $(PURGATORY_OBJS)
|
|
$(MKDIR) -p $(@D)
|
|
- $(CC) $(LDFLAGS) -o $@ $^
|
|
+# $(CC) $(LDFLAGS) -o $@ $^
|
|
+ $(LD) $(LDFLAGS) -o $@ $^
|
|
|
|
# $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) --no-undefined -e purgatory_start -r -o $@ $(PURGATORY_OBJS) $(UTIL_LIB)
|
|
|