1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-14 03:53:44 +02:00
openwrt-xburst/target/linux/at91-2.6/image/romboot/patches/001-makefile.patch
hcg 18d77c39a5 Added primary and secondary bootloaders
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6626 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-20 09:59:17 +00:00

51 lines
1001 B
Diff

--- romboot/Makefile.old 2007-03-18 09:29:20.000000000 +0100
+++ romboot/Makefile 2007-03-18 09:29:13.000000000 +0100
@@ -0,0 +1,47 @@
+LINKFLAGS= -T elf32-littlearm.lds -Ttext 0
+COMPILEFLAGS= -Os
+TARGET=romboot
+OBJFILES=cstartup_ram.o asm_isr.o jump.o at45.o com.o dataflash.o \
+ init.o main.o stdio.o _udivsi3.o _umodsi3.o div0.o
+LIBRARIES=
+INCLUDES= -Iinclude
+
+all:$(TARGET)
+
+$(TARGET): $(OBJFILES)
+ $(LD) $(OBJFILES) -o $(TARGET).out $(LINKFLAGS) -n
+ $(OBJCOPY) $(TARGET).out -O binary $(TARGET).bin
+
+asm_isr.o: asm_isr.S
+ $(CC) -c -Iinclude -o $@ $<
+
+cstartup_ram.o: cstartup_ram.S
+ $(CC) -c -Iinclude -o $@ $<
+
+jump.o: jump.S
+ $(CC) -c -Iinclude -o $@ $<
+
+_udivsi3.o: _udivsi3.S
+ $(CC) -c $<
+
+_umodsi3.o: _umodsi3.S
+ $(CC) -c $<
+
+#%.o: %.S
+# $(CC) -c $(INCLUDES) -o $@ $<
+
+%.o: %.cpp
+ $(CC) -c $(COMPILEFLAGS) $(INCLUDES) -o $@ $<
+
+div0.o: div0.c
+ $(CC) -c $(COMPILEFLAGS) $<
+
+clean:
+ rm $(OBJFILES) -f
+ rm *~ -f
+ rm $(TARGET) -f
+
+
+#LD="$CROSS"ld
+
+