]> rtime.felk.cvut.cz Git - l4.git/blob - kernel/fiasco/src/boot/arm/Makerules.BOOT.arm
update
[l4.git] / kernel / fiasco / src / boot / arm / Makerules.BOOT.arm
1 # -*- makefile -*-
2 # Boot Makefile
3
4 # Add future prerequisites somewhere among the list of libraries.
5 # You really should not have to add anything in the $(LD) line.
6
7 $(BOOT): $(BOOT).elf
8         $(OBJCOPY) -O binary $< $@ 
9         chmod 755 $@
10         ln -sf $@ fiasco
11         $(call INSTALLFILE_RULE,fiasco,fiasco)
12
13 $(BOOT).elf: $(KERNEL)
14         cp $(KERNEL) $(BOOT).elf
15         $(STRIP) $(BOOT).elf
16
17 %.img.o: %.elf
18         $(OBJCOPY) -S $< $*
19         $(OBJCOPY) -B arm -I binary -O elf32-littlearm $* $@
20
21 kernel.o: $(KERNEL) 
22         $(OBJCOPY) -S $(KERNEL) $(@:.o=)
23         $(OBJCOPY) -B arm -I binary -O elf32-littlearm $(@:.o=) $@