[openfirmware] [commit] r3596 - cpu/arm/Linux
repository service
svn at openfirmware.info
Thu Mar 7 09:43:00 CET 2013
Author: rsmith
Date: Thu Mar 7 09:42:59 2013
New Revision: 3596
URL: http://tracker.coreboot.org/trac/openfirmware/changeset/3596
Log:
arm/Linux/Makefile fixup for arm-elf-gcc 3.4.3
- Remove use of -mlittle-endian as it made gcc error.
- Use different rules for building the two different versions of inflate.o / xinflate.o - one to use in the wrapper, the other for standalone use in OFW images. Fixes the "ld: error in inflate.o(.eh_frame); no .eh_frame_hdr table will be created" message.
Modified:
cpu/arm/Linux/Makefile
Modified: cpu/arm/Linux/Makefile
==============================================================================
--- cpu/arm/Linux/Makefile Thu Mar 7 09:17:32 2013 (r3595)
+++ cpu/arm/Linux/Makefile Thu Mar 7 09:42:59 2013 (r3596)
@@ -2,7 +2,8 @@
BP=../../..
-CFLAGS = -O -DARM -mlittle-endian
+CFLAGS = -O -DARM
+# -mlittle-endian
WRTAIL = forth/wrapper
WRDIR = ${BP}/${WRTAIL}
@@ -13,7 +14,7 @@
OBJS = wrapper.o logger.o ${ZIPOBJS}
-all: forth inflate.bin
+all: forth ../build/inflate.bin
# Use forth when you just need to run Forth but don't care what
# native instruction set it is on.
@@ -30,13 +31,13 @@
armforth.static: ${OBJS}
${CC} ${CFLAGS} ${LFLAGS} -static -o $@ ${OBJS}
-inflate.lo: ${ZIPDIR}/inflate.c
+xinflate.lo: ${ZIPDIR}/inflate.c
${CC} -c ${CFLAGS} -O $< -o $@
-inflate.o: inflate.lo
+xinflate.o: xinflate.lo
${LD} -T inflate.ld $< -o $@
-../build/inflate.bin: inflate.o
+../build/inflate.bin: xinflate.o
objcopy -O binary $< $@
%.o: ${WRDIR}/%.c
More information about the openfirmware
mailing list