Makefile.inc revision 251250
16007Sthurlow# $FreeBSD: head/sys/boot/arm/at91/Makefile.inc 251250 2013-06-02 11:44:23Z tijl $ 26007Sthurlow 36007Sthurlow.if !target(__at91_boot_Makefile.inc__) 46007Sthurlow.PATH: ${.CURDIR}/../../../../libkern ${.CURDIR}/../../../../libkern/arm 56007Sthurlow 66007Sthurlow__at91_boot_Makefile.inc__: 76007Sthurlow 86007Sthurlow# tsc, bwct, kb920x, centipad are the supported flavors 96007SthurlowBOOT_FLAVOR?=kb920x 106007Sthurlow 116007SthurlowCFLAGS=-Os -mcpu=arm9 -ffreestanding \ 126007Sthurlow -I${.CURDIR}/../libat91 \ 136007Sthurlow -I${.CURDIR}/../../../.. \ 146007Sthurlow -I${.CURDIR}/../../../../arm \ 156007Sthurlow -D_KERNEL \ 166007Sthurlow -Wall -Waggregate-return \ 176007Sthurlow -Wnested-externs \ 186007Sthurlow -Wpointer-arith -Wshadow -Wwrite-strings \ 196007Sthurlow -Werror \ 206007Sthurlow -Wmissing-prototypes \ 216007Sthurlow -Wmissing-declarations 226007Sthurlow# -Wstrict-prototypes 236007Sthurlow 246007SthurlowCFLAGS+=-DBOOT_${BOOT_FLAVOR:tu} 256007Sthurlow 266007SthurlowLIBAT91=${.OBJDIR}/../libat91/libat91.a 276007Sthurlow 286007SthurlowLD ?= ld 296007SthurlowOBJCOPY ?= objcopy 306007Sthurlow 316007Sthurlow.if defined(P) 326007Sthurlow${P}: ${P}.out 336007Sthurlow ${OBJCOPY} -S -O binary ${P}.out ${.TARGET} 346007Sthurlow @set -- `ls -l ${.TARGET}`; x=$$((12288-$$5)); \ 356007Sthurlow echo "$$x bytes available"; test $$x -ge 0 3610023SGordon.Ross@Sun.COM 376007Sthurlow${P}.out: ${OBJS} 386007Sthurlow ${LD} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91} 396007Sthurlow 406007SthurlowCLEANFILES+= ${P} ${P}.out 416007Sthurlow.endif 426007Sthurlow 436007Sthurlow.if defined(WITH_TAG_LIST) 446007SthurlowMK_TAG_LIST:=yes 456007Sthurlow.else 466007SthurlowMK_TAG_LIST:=no 476007Sthurlow.endif 486007Sthurlow 496007Sthurlow.if defined(WITH_FPGA) 506007SthurlowMK_FPGA:=yes 516007Sthurlow.else 526007SthurlowMK_FPGA:=no 536007Sthurlow.endif 546007Sthurlow 556007Sthurlow.endif 566007Sthurlow 576007Sthurlow.include "../Makefile.inc" 586007Sthurlow