compile kernel with

-mips2 -G 32
for size reduction. Suggested by Castor Fu.
This commit is contained in:
shin 2000-01-01 02:15:38 +00:00
parent 5fc5fe98a8
commit 7626f63930

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.hpcmips,v 1.2 1999/11/21 07:04:31 uch Exp $
# $NetBSD: Makefile.hpcmips,v 1.3 2000/01/01 02:15:38 shin Exp $
# Makefile for NetBSD
#
@ -52,7 +52,7 @@ CWARNFLAGS?= -Wall -Wstrict-prototypes -Wmissing-prototypes \
.if (${HAVE_GCC28} != "")
CWARNFLAGS+= -Wno-main
.endif
GP?= -G 0
GP?= -G 32
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
-mno-abicalls -mno-half-pic
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
@ -94,9 +94,10 @@ NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
# ${SYSTEM_LD} swapxxx.o
# ${SYSTEM_LD_TAIL}
SYSTEM_OBJ= locore.o locore_machdep.o
.if !empty(IDENT:M-DMIPS1)
# VR4100/TX3900 core supports pipeline interlock & branch likely instruction
CFLAGS+= -mips2
AFLAGS+= -mips2
.if !empty(IDENT:M-DMIPS1)
SYSTEM_OBJ+= locore_mips1.o
.endif
.if !empty(IDENT:M-DMIPS3)