summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-11-09 19:58:14 +0000
committerimp <imp@FreeBSD.org>2006-11-09 19:58:14 +0000
commit5719b01094950c32c2027158b0c688356b166424 (patch)
tree22f342fe038c5a4d3c14da91b5d45e111d804631 /sys
parentb760fac93bbd03fd6ebb2d07774dffbbcbb610a0 (diff)
downloadFreeBSD-src-5719b01094950c32c2027158b0c688356b166424.zip
FreeBSD-src-5719b01094950c32c2027158b0c688356b166424.tar.gz
MFp4: Merge a slightly more generic build infrastructure.
Diffstat (limited to 'sys')
-rw-r--r--sys/boot/arm/at91/Makefile.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/boot/arm/at91/Makefile.inc b/sys/boot/arm/at91/Makefile.inc
index d0cc327..a7c4f1c 100644
--- a/sys/boot/arm/at91/Makefile.inc
+++ b/sys/boot/arm/at91/Makefile.inc
@@ -5,7 +5,10 @@
__at91_boot_Makefile.inc__:
-CFLAGS=-O2 -mcpu=arm9 -ffreestanding \
+# tsc, kb920x are the supported flavors
+BOOT_FLAVOR=kb920x
+
+CFLAGS=-Os -mcpu=arm9 -ffreestanding \
-I${.CURDIR}/../libat91 \
-I${.CURDIR}/../../../.. \
-I${.CURDIR}/../../../../arm \
@@ -13,13 +16,12 @@ CFLAGS=-O2 -mcpu=arm9 -ffreestanding \
-Wall -Waggregate-return \
-Wnested-externs \
-Wpointer-arith -Wshadow -Wwrite-strings \
- -Werror
-# -Wmissing-prototypes
-# -Wmissing-declarations
+ -Werror \
+ -Wmissing-prototypes \
+ -Wmissing-declarations
# -Wstrict-prototypes
-#CFLAGS+=-DBOOT_TSC
-CFLAGS+=-DBOOT_KB9202
+CFLAGS+=-DBOOT_${BOOT_FLAVOR:U}
LIBAT91=${.OBJDIR}/../libat91/libat91.a
OpenPOWER on IntegriCloud