Changeset View
Changeset View
Standalone View
Standalone View
stand/mips/beri/boot2/Makefile
Show All 35 Lines | |||||
LOADERS= flashboot jtagboot | LOADERS= flashboot jtagboot | ||||
FILES= ${LOADERS} ${LOADERS:S/$/.md5/} | FILES= ${LOADERS} ${LOADERS:S/$/.md5/} | ||||
SRCS= relocate.S \ | SRCS= relocate.S \ | ||||
start.S \ | start.S \ | ||||
boot2.c \ | boot2.c \ | ||||
altera_jtag_uart.c \ | altera_jtag_uart.c \ | ||||
cfi.c \ | cfi.c \ | ||||
sdcard.c | sdcard.c \ | ||||
ufsread.c | |||||
AFLAGS= -G0 | AFLAGS= -G0 | ||||
CFLAGS+= -I${LDRSRC} \ | CFLAGS+= -I${LDRSRC} \ | ||||
-Wall \ | -Wall \ | ||||
-G0 \ | -G0 \ | ||||
-fno-pic -mno-abicalls \ | -fno-pic -mno-abicalls \ | ||||
-g | -g | ||||
LDFLAGS+= -static \ | LDFLAGS+= -static \ | ||||
-Wl,-N \ | -Wl,-N \ | ||||
-G0 \ | -G0 \ | ||||
-L${.CURDIR} | -L${.CURDIR} | ||||
.PATH: ${SASRC} | |||||
.PATH: ${BOOTSRC}/mips/beri/common | .PATH: ${BOOTSRC}/mips/beri/common | ||||
CFLAGS+= -I${BOOTSRC}/mips/beri/common | CFLAGS+= -I${BOOTSRC}/mips/beri/common | ||||
CFLAGS.ufsread.c= -DUFS_SMALL_CGBASE | |||||
imp: This is likely not needed here. BERI boot2 isn't under the extreme size pressures and if it had… | |||||
bennoAuthorUnsubmitted Not Done Inline Actionsbenno: I can take it out. I'll double-check with @rwatson and @brooks and co. | |||||
impUnsubmitted Not Done Inline Actionsberi's boot2 blindly copied way too much from boot2 on i386, and it's been a big hassle, so the few cargo-culted changed because it was like that on x86 we have here the better. imp: beri's boot2 blindly copied way too much from boot2 on i386, and it's been a big hassle, so the… | |||||
brooksUnsubmitted Not Done Inline ActionsThis seems fine. We've got quite a bit of storage on the FPGA and we don't support 32-bit at all at this point so 64-bit math is fine (if I understand the comments above.) brooks: This seems fine. We've got quite a bit of storage on the FPGA and we don't support 32-bit at… | |||||
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 \ | ||||
ufsread.o | |||||
${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 ufsread.o | ||||
${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> |
This is likely not needed here. BERI boot2 isn't under the extreme size pressures and if it had it before, it was because it was blindly copied from i386.