Changeset 656b789 in mainline for boot/arch/mips32/loader/Makefile


Ignore:
Timestamp:
2009-03-16T22:58:11Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be6038b
Parents:
f36c061
Message:

resurrect big endian support for mips32: switch from mips-sgi-irix5 toolchain to mips-linux-gnu
the kernel is working alright, the user space has some bugs yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/loader/Makefile

    rf36c061 r656b789  
    3737endif
    3838
    39 ifeq ($(IMAGE),binary)
    40         LD_IN = binary
    41 endif
    42 
    43 ifeq ($(IMAGE),ecoff)
    44         LD_IN = ecoff
    45 endif
    46 
    47 BFD_NAME = elf32-tradlittlemips
    4839BFD_ARCH = mips
    4940TARGET = mipsel-linux-gnu
    5041TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin
     42
     43ifeq ($(MACHINE),lgxemul)
     44        BFD_NAME = elf32-tradlittlemips
     45        BFD = ecoff-littlemips
     46endif
     47ifeq ($(MACHINE),bgxemul)
     48        BFD_NAME = elf32-tradbigmips
     49        BFD = ecoff-bigmips
     50        TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips/bin
     51        TARGET = mips-linux-gnu
     52endif
     53ifeq ($(MACHINE),msim)
     54        BFD_NAME = elf32-tradlittlemips
     55        BFD = binary
     56endif
    5157
    5258ifeq ($(COMPILER),gcc_native)
     
    8490        $(USPACEDIR)/srv/devmap/devmap \
    8591        $(USPACEDIR)/srv/rd/rd \
    86         $(USPACEDIR)/srv/vfs/vfs 
     92        $(USPACEDIR)/srv/vfs/vfs
    8793ifeq ($(RDFMT),tmpfs)
    8894        COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs
     
    115121-include Makefile.depend
    116122
    117 image.boot: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
    118         $(LD) -no-check-sections -N -T _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) -o $@
     123image.boot: image.raw
     124        $(OBJCOPY) -O $(BFD) $< $@
     125
     126image.raw: depend _components.h _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
     127        $(LD) -no-check-sections -N -T _link.ld -o $@ $(COMPONENT_OBJECTS) initrd.o $(OBJECTS)
    119128
    120129depend:
     
    128137                rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \
    129138        done
    130         -rm -f _components.h _components.c _link.ld _link.ld.in $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.boot Makefile.depend
     139        -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.raw image.boot Makefile.depend
    131140
    132141_components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in
     
    147156        ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned int" $(COMPONENTS) ./initrd.img
    148157
    149 _link.ld.in: _link.ld.in.$(LD_IN)
    150         cp $< $@
    151 
    152158%.o: %.S
    153159        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
Note: See TracChangeset for help on using the changeset viewer.