1# $FreeBSD: releng/11.0/sys/boot/arm/at91/Makefile.inc 251250 2013-06-02 11:44:23Z tijl $ 2 3.if !target(__at91_boot_Makefile.inc__) 4.PATH: ${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm 5 6__at91_boot_Makefile.inc__: 7 8# tsc, bwct, kb920x, centipad are the supported flavors 9BOOT_FLAVOR?=kb920x 10 11CFLAGS=-Os -mcpu=arm9 -ffreestanding \ 12 -I${.CURDIR}/../libat91 \ 13 -I${.CURDIR}/../../../.. \ 14 -I${.CURDIR}/../../../../arm \ 15 -D_KERNEL \ 16 -Wall -Waggregate-return \ 17 -Wnested-externs \ 18 -Wpointer-arith -Wshadow -Wwrite-strings \ 19 -Werror \ 20 -Wmissing-prototypes \ 21 -Wmissing-declarations 22# -Wstrict-prototypes 23 24CFLAGS+=-DBOOT_${BOOT_FLAVOR:tu} 25 26LIBAT91=${.OBJDIR}/../libat91/libat91.a 27 28LD ?= ld 29OBJCOPY ?= objcopy 30 31.if defined(P) 32${P}: ${P}.out 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 36 37${P}.out: ${OBJS} 38 ${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91} 39 40CLEANFILES+= ${P} ${P}.out 41.endif 42 43.if defined(WITH_TAG_LIST) 44MK_TAG_LIST:=yes 45.else 46MK_TAG_LIST:=no 47.endif 48 49.if defined(WITH_FPGA) 50MK_FPGA:=yes 51.else 52MK_FPGA:=no 53.endif 54 55.endif 56 57.include "../Makefile.inc" 58