Changeset View
Changeset View
Standalone View
Standalone View
sys/boot/mips/beri/boot2/Makefile
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | LDFLAGS= -nostdlib \ | ||||
-N \ | -N \ | ||||
-G0 \ | -G0 \ | ||||
-L${.CURDIR} | -L${.CURDIR} | ||||
.PATH: ${.CURDIR}/../common | .PATH: ${.CURDIR}/../common | ||||
CFLAGS+= -I${.CURDIR}/../common | CFLAGS+= -I${.CURDIR}/../common | ||||
flashboot.elf: relocate.o start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o | flashboot.elf: relocate.o start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o | ||||
${CC} ${_LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \ | ${CC} ${LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \ | ||||
${.ALLSRC} ${LIBSTAND} | ${.ALLSRC} ${LIBSTAND} | ||||
flashboot: flashboot.elf | flashboot: flashboot.elf | ||||
${OBJCOPY} -S -O binary ${.TARGET}.elf ${.TARGET} | ${OBJCOPY} -S -O binary ${.TARGET}.elf ${.TARGET} | ||||
flashboot.md5: flashboot | flashboot.md5: flashboot | ||||
md5 flashboot > flashboot.md5 | md5 flashboot > flashboot.md5 | ||||
jtagboot: start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o | jtagboot: start.o boot2.o altera_jtag_uart.o cfi.o sdcard.o | ||||
${CC} ${_LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET} \ | ${CC} ${LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET} \ | ||||
${.ALLSRC} ${LIBSTAND} | ${.ALLSRC} ${LIBSTAND} | ||||
jtagboot.md5: jtagboot | jtagboot.md5: jtagboot | ||||
md5 jtagboot > jtagboot.md5 | md5 jtagboot > jtagboot.md5 | ||||
CLEANFILES+= flashboot.elf | CLEANFILES+= flashboot.elf | ||||
.include <bsd.prog.mk> | .include <bsd.prog.mk> |