]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - sys/boot/arm/at91/Makefile.inc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / sys / boot / arm / at91 / Makefile.inc
1 # $FreeBSD$
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
9 BOOT_FLAVOR?=kb920x
10
11 CFLAGS=-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
24 CFLAGS+=-DBOOT_${BOOT_FLAVOR:tu}
25
26 LIBAT91=${.OBJDIR}/../libat91/libat91.a
27
28 LD ?= ld
29 OBJCOPY ?= 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
40 CLEANFILES+= ${P} ${P}.out
41 .endif
42
43 .if defined(WITH_TAG_LIST)
44 MK_TAG_LIST:=yes
45 .else
46 MK_TAG_LIST:=no
47 .endif
48
49 .if defined(WITH_FPGA)
50 MK_FPGA:=yes
51 .else
52 MK_FPGA:=no
53 .endif
54
55 .endif
56
57 .include "../Makefile.inc"