| @@ -1,14 +1,16 @@ | | | @@ -1,14 +1,16 @@ |
1 | # $NetBSD: Makefile.booters,v 1.53 2011/01/22 19:19:21 joerg Exp $ | | 1 | # $NetBSD: Makefile.booters,v 1.54 2011/01/23 13:18:57 joerg Exp $ |
| | | 2 | |
| | | 3 | NOMAN= # defined |
2 | | | 4 | |
3 | .include <bsd.own.mk> | | 5 | .include <bsd.own.mk> |
4 | .include <bsd.sys.mk> # for HOST_SH | | 6 | .include <bsd.sys.mk> # for HOST_SH |
5 | | | 7 | |
6 | # $S must correspond to the top of the 'sys' tree | | 8 | # $S must correspond to the top of the 'sys' tree |
7 | S= ${.CURDIR}/../../../.. | | 9 | S= ${.CURDIR}/../../../.. |
8 | | | 10 | |
9 | BINMODE?= 444 | | 11 | BINMODE?= 444 |
10 | | | 12 | |
11 | # XXX SHOULD NOT NEED TO DEFINE THESE! | | 13 | # XXX SHOULD NOT NEED TO DEFINE THESE! |
12 | LIBCRT0= | | 14 | LIBCRT0= |
13 | LIBC= | | 15 | LIBC= |
14 | LIBCRTBEGIN= | | 16 | LIBCRTBEGIN= |
| @@ -21,28 +23,26 @@ CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ | | | @@ -21,28 +23,26 @@ CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ |
21 | -I${.OBJDIR} -I${S} | | 23 | -I${.OBJDIR} -I${S} |
22 | # compiler flags for smallest code size | | 24 | # compiler flags for smallest code size |
23 | CFLAGS= -ffreestanding -Os -g -mmemcpy -mno-abicalls -G 128 | | 25 | CFLAGS= -ffreestanding -Os -g -mmemcpy -mno-abicalls -G 128 |
24 | CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith | | 26 | CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith |
25 | CFLAGS+= -Werror | | 27 | CFLAGS+= -Werror |
26 | LDBUG= -T $S/arch/mips/conf/stand.ldscript | | 28 | LDBUG= -T $S/arch/mips/conf/stand.ldscript |
27 | | | 29 | |
28 | NETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh | | 30 | NETBSD_VERS!= ${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh |
29 | CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' | | 31 | CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' |
30 | | | 32 | |
31 | PRIMARY_LOAD_ADDRESS?= 0x80700000 | | 33 | PRIMARY_LOAD_ADDRESS?= 0x80700000 |
32 | SECONDARY_LOAD_ADDRESS?=0x80710000 | | 34 | SECONDARY_LOAD_ADDRESS?=0x80710000 |
33 | | | 35 | |
34 | NOMAN= # defined | | | |
35 | | | | |
36 | .if defined(PRIMARY_PROG) | | 36 | .if defined(PRIMARY_PROG) |
37 | PROG= ${PRIMARY_PROG} | | 37 | PROG= ${PRIMARY_PROG} |
38 | SRCS = start.S bootxx.c callvec.c | | 38 | SRCS = start.S bootxx.c callvec.c |
39 | SRCS+= devopen.c conf.c rz.c | | 39 | SRCS+= devopen.c conf.c rz.c |
40 | SRCS+= bootinit.S bootread.S clear_cache.S printf.S | | 40 | SRCS+= bootinit.S bootread.S clear_cache.S printf.S |
41 | | | 41 | |
42 | LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS} | | 42 | LOAD_ADDRESS= ${PRIMARY_LOAD_ADDRESS} |
43 | # Pick a number, any number... | | 43 | # Pick a number, any number... |
44 | PRIMARY_MAX_TOTAL!= expr 16 \* 1024 | | 44 | PRIMARY_MAX_TOTAL!= expr 16 \* 1024 |
45 | | | 45 | |
46 | CPPFLAGS+= -DPRIMARY_BOOTBLOCK \ | | 46 | CPPFLAGS+= -DPRIMARY_BOOTBLOCK \ |
47 | -DPRIMARY_LOAD_ADDRESS="${PRIMARY_LOAD_ADDRESS}" \ | | 47 | -DPRIMARY_LOAD_ADDRESS="${PRIMARY_LOAD_ADDRESS}" \ |
48 | -DNO_GETCHAR \ | | 48 | -DNO_GETCHAR \ |