Move the RAM base address of the kernel into a variable.

Set CPPFLAGSm CWARNFLAGS and STRIPFLAGS to the same as arm32 uses.
This commit is contained in:
bjh21 2001-02-17 19:38:36 +00:00
parent 187ec466a3
commit 3dbffcc29f
1 changed files with 13 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.arm26,v 1.5 2001/02/17 17:23:48 bjh21 Exp $ # $NetBSD: Makefile.arm26,v 1.6 2001/02/17 19:38:36 bjh21 Exp $
# Makefile for NetBSD/arm26 # Makefile for NetBSD/arm26
# #
@ -41,17 +41,24 @@ ARM26= $S/arch/arm26
HAVE_EGCS!= ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo HAVE_EGCS!= ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
INCLUDES= -I. -I$S/arch -I$S -nostdinc INCLUDES= -I. -I$S/arch -I$S -nostdinc
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darm26 -Wcomment CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darm26
CWARNFLAGS= -Wall -Wstrict-prototypes -Wmissing-prototypes CWARNFLAGS?= -Werror -Wall -Wcomment -Wpointer-arith
# XXX Delete -Wuninitialized for now, since the compiler doesn't
# XXX always get it right. --thorpej
CWARNFLAGS+= -Wno-uninitialized
.if (${HAVE_EGCS} != "")
CWARNFLAGS+= -Wno-main
.endif
CFLAGS= -ffixed-r14 ${DEBUG} ${COPTS} ${CWARNFLAGS} CFLAGS= -ffixed-r14 ${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS= -x assembler-with-cpp -D_LOCORE AFLAGS= -x assembler-with-cpp -D_LOCORE
LOADADDRESS= 0x02098000
.ifdef ROMTEXTBASE .ifdef ROMTEXTBASE
LINKFLAGS= -Ttext ${ROMTEXTBASE} -Tdata 02098000 -e start LINKFLAGS= -Ttext ${ROMTEXTBASE} -Tdata ${LOADADDRESS} -e start
.else .else
LINKFLAGS= -Ttext 02098000 -e start LINKFLAGS= -Ttext ${LOADADDRESS} -e start
.endif .endif
STRIPFLAGS= -d STRIPFLAGS= -g
# Re-arrange for cross-compiling # Re-arrange for cross-compiling
HOSTED_CC= cc HOSTED_CC= cc