freebsd-dev/sys/boot/arm/at91/Makefile.inc
Warner Losh ae78672c56 MFp4 (checkpoint of work in progress):
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.
2006-04-19 17:16:49 +00:00

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