标签:
①led_sp.bin: start.o led.o
#led_sp.bin是由 start.o 和 led.o 生成
②arm-linux-ld -Ttext 0x0 -o led_sp.elf $^
arm-linux-objcopy -O binary led_sp.elf led_sp.bin
arm-linux-objdump -D led_sp.elf > led_sp_elf.dis
gcc mkv210_image.c -o mkmini210
./mkmini210 led_sp.bin 210.bin
%.o : %.S
arm-linux-gcc -o $@ $< -c
%.o : %.c
arm-linux-gcc -o $@ $< -c
clean:
rm *.o *.elf *.bin *.dis mkmini210 -f
标签:
原文地址:http://www.cnblogs.com/Ph-one/p/4194330.html