Changeset 656b789 in mainline for boot/arch/mips32/loader/Makefile
- Timestamp:
- 2009-03-16T22:58:11Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be6038b
- Parents:
- f36c061
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/loader/Makefile
rf36c061 r656b789 37 37 endif 38 38 39 ifeq ($(IMAGE),binary)40 LD_IN = binary41 endif42 43 ifeq ($(IMAGE),ecoff)44 LD_IN = ecoff45 endif46 47 BFD_NAME = elf32-tradlittlemips48 39 BFD_ARCH = mips 49 40 TARGET = mipsel-linux-gnu 50 41 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mipsel/bin 42 43 ifeq ($(MACHINE),lgxemul) 44 BFD_NAME = elf32-tradlittlemips 45 BFD = ecoff-littlemips 46 endif 47 ifeq ($(MACHINE),bgxemul) 48 BFD_NAME = elf32-tradbigmips 49 BFD = ecoff-bigmips 50 TOOLCHAIN_DIR = $(CROSS_PREFIX)/mips/bin 51 TARGET = mips-linux-gnu 52 endif 53 ifeq ($(MACHINE),msim) 54 BFD_NAME = elf32-tradlittlemips 55 BFD = binary 56 endif 51 57 52 58 ifeq ($(COMPILER),gcc_native) … … 84 90 $(USPACEDIR)/srv/devmap/devmap \ 85 91 $(USPACEDIR)/srv/rd/rd \ 86 $(USPACEDIR)/srv/vfs/vfs 92 $(USPACEDIR)/srv/vfs/vfs 87 93 ifeq ($(RDFMT),tmpfs) 88 94 COMPONENTS += $(USPACEDIR)/srv/fs/tmpfs/tmpfs … … 115 121 -include Makefile.depend 116 122 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 $@ 123 image.boot: image.raw 124 $(OBJCOPY) -O $(BFD) $< $@ 125 126 image.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) 119 128 120 129 depend: … … 128 137 rm -f $(USPACEDIR)/dist/app/`basename $$file` ; \ 129 138 done 130 -rm -f _components.h _components.c _link.ld _link.ld.in $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.imgimage.boot Makefile.depend139 -rm -f _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o $(OBJECTS) initrd.img image.raw image.boot Makefile.depend 131 140 132 141 _components.h _components.c _link.ld $(COMPONENT_OBJECTS) initrd.o: $(COMPONENTS) $(RD_SRVS) $(RD_APPS) _link.ld.in … … 147 156 ../../../tools/pack.py $(OBJCOPY) $(BFD_NAME) $(BFD_ARCH) 16384 "unsigned int" $(COMPONENTS) ./initrd.img 148 157 149 _link.ld.in: _link.ld.in.$(LD_IN)150 cp $< $@151 152 158 %.o: %.S 153 159 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
Note:
See TracChangeset
for help on using the changeset viewer.