Changeset 34364


Ignore:
Timestamp:
2012-11-25T17:22:52+01:00 (5 years ago)
Author:
juhosg
Message:

AA: ar71xx/image: relink loader.elf image to LOADADDR

Backport of r34271.

This allows to load the resulting image directly
from RouterBOOT.

Signed-off-by: Gabor Juhos <juhosg@…>

Location:
branches/attitude_adjustment/target/linux/ar71xx/image/lzma-loader/src
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/attitude_adjustment/target/linux/ar71xx/image/lzma-loader/src/Makefile

    r32945 r34364  
    6969endif 
    7070 
    71 all: loader.bin 
     71all: loader.elf 
    7272 
    7373# Don't build dependencies, this may die if $(CC) isn't gcc 
     
    8585        $(LD) -r -b binary --oformat $(O_FORMAT) -T lzma-data.lds -o $@ $< 
    8686 
    87 loader.bin: loader.elf 
     87loader: $(OBJECTS) 
     88        $(LD) $(LDFLAGS) -o $@ $(OBJECTS) 
     89 
     90loader.bin: loader 
    8891        $(OBJCOPY) $(BIN_FLAGS) $< $@ 
    8992 
    90 loader.elf: $(OBJECTS) 
    91         $(LD) $(LDFLAGS) -o $@ $(OBJECTS) 
     93loader2.o: loader.bin 
     94        $(LD) -r -b binary --oformat $(O_FORMAT) -o $@ $< 
     95 
     96loader.elf: loader2.o 
     97        $(LD) -e startup -T loader2.lds -Ttext $(LOADADDR) -o $@ $< 
    9298 
    9399mrproper: clean 
    94100 
    95101clean: 
    96         rm -f *.elf *.bin *.o 
     102        rm -f loader *.elf *.bin *.o 
    97103 
    98104 
Note: See TracChangeset for help on using the changeset viewer.