Changeset View
Changeset View
Standalone View
Standalone View
stand/mips/beri/boot2/Makefile
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
LDFLAGS+= -static \ | LDFLAGS+= -static \ | ||||
-Wl,-N \ | -Wl,-N \ | ||||
-G0 \ | -G0 \ | ||||
-L${.CURDIR} | -L${.CURDIR} | ||||
.PATH: ${BOOTSRC}/mips/beri/common | .PATH: ${BOOTSRC}/mips/beri/common | ||||
CFLAGS+= -I${BOOTSRC}/mips/beri/common | CFLAGS+= -I${BOOTSRC}/mips/beri/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 \ | ||||
${LIBSA} | |||||
${CC} ${LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \ | ${CC} ${LDFLAGS} -T ${.CURDIR}/flashboot.ldscript -o ${.TARGET} \ | ||||
${.ALLSRC} ${LIBSA} | ${.ALLSRC} ${LIBSA} | ||||
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 ${LIBSA} | ||||
${CC} ${LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET} \ | ${CC} ${LDFLAGS} -T ${.CURDIR}/jtagboot.ldscript -o ${.TARGET} \ | ||||
${.ALLSRC} ${LIBSA} | ${.ALLSRC} ${LIBSA} | ||||
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> |