summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2006-04-21 07:41:36 +0000
committerWarner Losh <imp@FreeBSD.org>2006-04-21 07:41:36 +0000
commitacc47bab5bd15d811545ae7b03ab822e8c4b26f4 (patch)
treed0ab66e0e80b6e3139db491dbc6c89c93288442c
parentac1e0174a6583460693de4ab3afd0a9bdf841faa (diff)
Notes
-rw-r--r--sys/boot/arm/at91/Makefile.inc17
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/boot/arm/at91/Makefile.inc b/sys/boot/arm/at91/Makefile.inc
index 528d145c6440..5b6cc13a0d9c 100644
--- a/sys/boot/arm/at91/Makefile.inc
+++ b/sys/boot/arm/at91/Makefile.inc
@@ -1,5 +1,8 @@
# $FreeBSD$
+.if !target(__at91_boot_Makefile.inc__)
+__at91_boot_Makefile.inc__:
+
CFLAGS=-O2 -mcpu=arm9 -ffreestanding \
-I${.CURDIR}/../libat91 \
-Wall -Waggregate-return -Wcast-align \
@@ -7,17 +10,27 @@ CFLAGS=-O2 -mcpu=arm9 -ffreestanding \
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \
-Werror
-CFLAGS+=-DBOOT_TSC
-#CFLAGS+=-DBOOT_KB920X
+#CFLAGS+=-DBOOT_TSC
+CFLAGS+=-DBOOT_KB9202
LIBAT91=${.OBJDIR}/../libat91/libat91.a
.if defined(P)
${P}: ${P}.out
objcopy -S -O binary ${P}.out ${.TARGET}
+ @set -- `ls -l ${.TARGET}`; x=$$((8192-$$5)); \
+ echo "$$x bytes available"; test $$x -ge 0
${P}.out: ${OBJS}
ld ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LIBAT91}
CLEANFILES+= ${P} ${P}.out
.endif
+
+.if defined(WITH_TAG_LIST)
+MK_TAG_LIST:=yes
+.else
+MK_TAG_LIST:=no
+.endif
+
+.endif