compile kernel with
-mips2 -G 32 for size reduction. Suggested by Castor Fu.
This commit is contained in:
parent
5fc5fe98a8
commit
7626f63930
@ -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
|
# Makefile for NetBSD
|
||||||
#
|
#
|
||||||
@ -52,7 +52,7 @@ CWARNFLAGS?= -Wall -Wstrict-prototypes -Wmissing-prototypes \
|
|||||||
.if (${HAVE_GCC28} != "")
|
.if (${HAVE_GCC28} != "")
|
||||||
CWARNFLAGS+= -Wno-main
|
CWARNFLAGS+= -Wno-main
|
||||||
.endif
|
.endif
|
||||||
GP?= -G 0
|
GP?= -G 32
|
||||||
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
|
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} ${GP} \
|
||||||
-mno-abicalls -mno-half-pic
|
-mno-abicalls -mno-half-pic
|
||||||
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
|
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} swapxxx.o
|
||||||
# ${SYSTEM_LD_TAIL}
|
# ${SYSTEM_LD_TAIL}
|
||||||
SYSTEM_OBJ= locore.o locore_machdep.o
|
SYSTEM_OBJ= locore.o locore_machdep.o
|
||||||
.if !empty(IDENT:M-DMIPS1)
|
# VR4100/TX3900 core supports pipeline interlock & branch likely instruction
|
||||||
CFLAGS+= -mips2
|
CFLAGS+= -mips2
|
||||||
AFLAGS+= -mips2
|
AFLAGS+= -mips2
|
||||||
|
.if !empty(IDENT:M-DMIPS1)
|
||||||
SYSTEM_OBJ+= locore_mips1.o
|
SYSTEM_OBJ+= locore_mips1.o
|
||||||
.endif
|
.endif
|
||||||
.if !empty(IDENT:M-DMIPS3)
|
.if !empty(IDENT:M-DMIPS3)
|
||||||
|
Loading…
Reference in New Issue
Block a user