summaryrefslogtreecommitdiffstats
path: root/sys/boot/arm/at91
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-04-21 07:41:36 +0000
committerimp <imp@FreeBSD.org>2006-04-21 07:41:36 +0000
commitddb17dbb459059095a33b21b4216b7e4c2eacb01 (patch)
treed0ab66e0e80b6e3139db491dbc6c89c93288442c /sys/boot/arm/at91
parent633fda1144fcfaa94b04ccd80c9fd1e1cd4cda6d (diff)
downloadFreeBSD-src-ddb17dbb459059095a33b21b4216b7e4c2eacb01.zip
FreeBSD-src-ddb17dbb459059095a33b21b4216b7e4c2eacb01.tar.gz
Allow one to enable building tags. Check the size of the boot imag.
Diffstat (limited to 'sys/boot/arm/at91')
-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 528d145..5b6cc13 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
OpenPOWER on IntegriCloud