Added primary and secondary bootloaders
[openwrt/svn-archive/archive.git] / target / linux / at91-2.6 / image / romboot / patches / 001-makefile.patch
1 --- romboot/Makefile.old 2007-03-18 09:29:20.000000000 +0100
2 +++ romboot/Makefile 2007-03-18 09:29:13.000000000 +0100
3 @@ -0,0 +1,47 @@
4 +LINKFLAGS= -T elf32-littlearm.lds -Ttext 0
5 +COMPILEFLAGS= -Os
6 +TARGET=romboot
7 +OBJFILES=cstartup_ram.o asm_isr.o jump.o at45.o com.o dataflash.o \
8 + init.o main.o stdio.o _udivsi3.o _umodsi3.o div0.o
9 +LIBRARIES=
10 +INCLUDES= -Iinclude
11 +
12 +all:$(TARGET)
13 +
14 +$(TARGET): $(OBJFILES)
15 + $(LD) $(OBJFILES) -o $(TARGET).out $(LINKFLAGS) -n
16 + $(OBJCOPY) $(TARGET).out -O binary $(TARGET).bin
17 +
18 +asm_isr.o: asm_isr.S
19 + $(CC) -c -Iinclude -o $@ $<
20 +
21 +cstartup_ram.o: cstartup_ram.S
22 + $(CC) -c -Iinclude -o $@ $<
23 +
24 +jump.o: jump.S
25 + $(CC) -c -Iinclude -o $@ $<
26 +
27 +_udivsi3.o: _udivsi3.S
28 + $(CC) -c $<
29 +
30 +_umodsi3.o: _umodsi3.S
31 + $(CC) -c $<
32 +
33 +#%.o: %.S
34 +# $(CC) -c $(INCLUDES) -o $@ $<
35 +
36 +%.o: %.cpp
37 + $(CC) -c $(COMPILEFLAGS) $(INCLUDES) -o $@ $<
38 +
39 +div0.o: div0.c
40 + $(CC) -c $(COMPILEFLAGS) $<
41 +
42 +clean:
43 + rm $(OBJFILES) -f
44 + rm *~ -f
45 + rm $(TARGET) -f
46 +
47 +
48 +#LD="$CROSS"ld
49 +
50 +