diff options
author | hcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-20 09:59:17 +0000 |
---|---|---|
committer | hcg <hcg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-20 09:59:17 +0000 |
commit | 18d77c39a5b2b3a56cd356dafe305a08317f625e (patch) | |
tree | 18df426a0f5674776b7ad0d177c8abf178812f58 /target/linux/at91-2.6/image/romboot/patches/001-makefile.patch | |
parent | e4cf55f5a9b5f29680b2a96180d53075b1ae4644 (diff) |
Added primary and secondary bootloaders
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6626 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91-2.6/image/romboot/patches/001-makefile.patch')
-rw-r--r-- | target/linux/at91-2.6/image/romboot/patches/001-makefile.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/target/linux/at91-2.6/image/romboot/patches/001-makefile.patch b/target/linux/at91-2.6/image/romboot/patches/001-makefile.patch new file mode 100644 index 000000000..e0995c778 --- /dev/null +++ b/target/linux/at91-2.6/image/romboot/patches/001-makefile.patch @@ -0,0 +1,50 @@ +--- 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 ++ ++ |