ae78672c56
o Use a directory layout that is more akin to the i386 boot layout. o Create a libat91 for library routines that are used by one or more of the boot loaders. o Create bootiic for booting from an iic part. o Create bootspi for booting from an spi part. o Optimize the size of many of these routines (especially emac.c). Except for the emac.c optimizations, all these have been tested. o eliminate the inc directory, libat91 superceeds it. o Move linker.cfg up a layer to allow it to be shared.
24 lines
516 B
Makefile
24 lines
516 B
Makefile
# $FreeBSD$
|
|
|
|
CFLAGS=-O2 -mcpu=arm9 -ffreestanding \
|
|
-I${.CURDIR}/../libat91 \
|
|
-Wall -Waggregate-return -Wcast-align \
|
|
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs \
|
|
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
|
|
-Werror
|
|
|
|
CFLAGS+=-DBOOT_TSC
|
|
#CFLAGS+=-DBOOT_KB920X
|
|
|
|
LIBAT91=${.OBJDIR}/../libat91/libat91.a
|
|
|
|
.if defined(P)
|
|
${P}: ${P}.out
|
|
objcopy -S -O binary ${P}.out ${.TARGET}
|
|
|
|
${P}.out: ${OBJS}
|
|
ld ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
|
|
|
|
CLEANFILES+= ${P} ${P}.out
|
|
.endif
|