3 .if !target(__at91_boot_Makefile.inc__)
4 .PATH: ${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm
6 __at91_boot_Makefile.inc__:
8 # tsc, bwct, kb920x, centipad are the supported flavors
11 CFLAGS=-Os -mcpu=arm9 -ffreestanding \
12 -I${.CURDIR}/../libat91 \
13 -I${.CURDIR}/../../../.. \
14 -I${.CURDIR}/../../../../arm \
16 -Wall -Waggregate-return \
18 -Wpointer-arith -Wshadow -Wwrite-strings \
20 -Wmissing-prototypes \
21 -Wmissing-declarations
24 CFLAGS+=-DBOOT_${BOOT_FLAVOR:U}
26 LIBAT91=${.OBJDIR}/../libat91/libat91.a
33 ${OBJCOPY} -S -O binary ${P}.out ${.TARGET}
34 @set -- `ls -l ${.TARGET}`; x=$$((12288-$$5)); \
35 echo "$$x bytes available"; test $$x -ge 0
38 ${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
40 CLEANFILES+= ${P} ${P}.out
43 .if defined(WITH_TAG_LIST)
49 .if defined(WITH_FPGA)
57 .include "../Makefile.inc"