Skip to contentSkip to conversation

mipsel support

PATCH New Rodolfo Giometti 1 participant 1 message Sep 16, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mipsel support

Hello,

I suggest the following patches in order to allow compilation for MIPS little endian boards.

Index: examples/Makefile
===================================================================
RCS file: /home/develop/cvs_private/uboot-mips-exadron/examples/Makefile,v retrieving revision 1.1.1.1

examples/Makefile 16 Sep 2005 14:19:32 -0000 renamed from examples/Makefile 16 Sep 2005 12:14:21 -0000 1.1.1.1 +1 -1
diff -u -r1.1.1.1 Makefile
@@ -120,7 +120,7 @@
        $(AR) crv $@ $(LIBOBJS)
 
 %:     %.o $(LIB)
-       $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
+       $(LD) -g $(PLATFORM_LDFLAGS) $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
                -o $@ -e $(<:.o=) $< $(LIB) \
                -L$(gcclibdir) -lgcc
 %.srec:        %

Index: examples/mips.lds
===================================================================
RCS file: /home/develop/cvs_private/uboot-mips-exadron/examples/mips.lds,v retrieving revision 1.1.1.1

examples/mips.lds 16 Sep 2005 14:19:32 -0000 renamed from examples/mips.lds 16 Sep 2005 12:14:21 -0000 1.1.1.1 +1 -1
diff -u -r1.1.1.1 mips.lds
@@ -24,7 +24,7 @@
 /*
 OUTPUT_FORMAT("elf32-bigmips", "elf32-bigmips", "elf32-bigmips")
 */
-OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradbigmips")
+OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
 OUTPUT_ARCH(mips)
 SECTIONS
 {

Ciao,

Rodolfo

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    giometti at linux.it
Linux Device Driver                             [email protected]
Embedded Systems                     home page: giometti.enneenne.com
UNIX programming                     phone:     +39 349 2432127