From f64c3cad318a3d71e9924ac04c5c24a711aa90cb Mon Sep 17 00:00:00 2001 From: tsutsui Date: Fri, 22 Nov 2002 16:38:22 +0000 Subject: [PATCH] - Add -msoft-float and -ffreestanding to CFLAGS. - Add -mno-abicalls to AFLAGS. - Set WARNS?=1 --- sys/arch/newsmips/stand/boot/Makefile | 7 ++++--- sys/arch/newsmips/stand/bootxx/Makefile | 7 ++++--- sys/arch/newsmips/stand/common/Makefile | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/sys/arch/newsmips/stand/boot/Makefile b/sys/arch/newsmips/stand/boot/Makefile index e6a8b7cd182b..cbc535895fc5 100644 --- a/sys/arch/newsmips/stand/boot/Makefile +++ b/sys/arch/newsmips/stand/boot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.13 2002/04/13 08:04:41 tsutsui Exp $ +# $NetBSD: Makefile,v 1.14 2002/11/22 16:38:22 tsutsui Exp $ S= ${.CURDIR}/../../../.. @@ -7,6 +7,7 @@ SRCS= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c NOMAN= # defined STRIPFLAG= BINMODE= 444 +WARNS?= 1 SIZE?= size STRIP?= strip @@ -18,14 +19,14 @@ COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} CLEANFILES+= ${PROG}.elf ${PROG}.tmp LDFLAGS= -x -N -Ttext a0700000 -e _start -CFLAGS= -Os -mmemcpy -mno-abicalls -G 0 -Wall +CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 CPPFLAGS+= -DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK CPPFLAGS+= -DSUN_BOOTPARAMS CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S} -AFLAGS= -D_LOCORE +AFLAGS= -D_LOCORE -mno-abicalls LIBS = ${COMMON}/romcalls.o LIBS+= ${COMMON}/lib/sa/libsa.a diff --git a/sys/arch/newsmips/stand/bootxx/Makefile b/sys/arch/newsmips/stand/bootxx/Makefile index 27d04c324480..6f7b92d71141 100644 --- a/sys/arch/newsmips/stand/bootxx/Makefile +++ b/sys/arch/newsmips/stand/bootxx/Makefile @@ -1,10 +1,11 @@ -# $NetBSD: Makefile,v 1.7 2002/05/20 14:12:24 lukem Exp $ +# $NetBSD: Makefile,v 1.8 2002/11/22 16:38:23 tsutsui Exp $ PROG= bootxx SRCS= start.S bootxx.c NOMAN= # defined STRIPFLAG= BINMODE= 444 +WARNS?= 1 SIZE?= size .include @@ -12,12 +13,12 @@ SIZE?= size COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR} LDFLAGS= -x -N -Ttext a0004000 -e _start -CFLAGS= -Os -mmemcpy -mno-abicalls -G 0 -Wall +CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 CPPFLAGS+= -D_STANDALONE #-DBOOTXX_DEBUG CPPFLAGS+= -nostdinc -I${COMMON} -I${.CURDIR}/../../../.. -AFLAGS= -D_LOCORE +AFLAGS= -D_LOCORE -mno-abicalls CLEANFILES+= machine mips ${PROG}.sym CLEANFILES+= ${PROG}.bin ${PROG}.tmp diff --git a/sys/arch/newsmips/stand/common/Makefile b/sys/arch/newsmips/stand/common/Makefile index 158559960e4f..820af9678c70 100644 --- a/sys/arch/newsmips/stand/common/Makefile +++ b/sys/arch/newsmips/stand/common/Makefile @@ -1,17 +1,18 @@ -# $NetBSD: Makefile,v 1.6 2002/05/05 15:57:15 jdolecek Exp $ +# $NetBSD: Makefile,v 1.7 2002/11/22 16:38:23 tsutsui Exp $ +WARNS?= 1 S= ${.CURDIR}/../../../.. OBJS= romcalls.o -CFLAGS= -Os -mmemcpy -mno-abicalls -G 0 -Wall +CFLAGS= -Os -ffreestanding -mmemcpy -mno-abicalls -msoft-float -G 0 CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY CPPFLAGS+= -I. -I${S} -AFLAGS= -D_LOCORE +AFLAGS= -D_LOCORE -mno-abicalls ### find out what to use for libkern .include "${S}/lib/libkern/Makefile.inc"