- Add -msoft-float and -ffreestanding to CFLAGS.
- Add -mno-abicalls to AFLAGS. - Set WARNS?=1
This commit is contained in:
parent
1db8069fe5
commit
f64c3cad31
|
@ -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}/../../../..
|
S= ${.CURDIR}/../../../..
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ SRCS= locore.S boot.c bootinfo.c devopen.c net.c netif_news.c
|
||||||
NOMAN= # defined
|
NOMAN= # defined
|
||||||
STRIPFLAG=
|
STRIPFLAG=
|
||||||
BINMODE= 444
|
BINMODE= 444
|
||||||
|
WARNS?= 1
|
||||||
|
|
||||||
SIZE?= size
|
SIZE?= size
|
||||||
STRIP?= strip
|
STRIP?= strip
|
||||||
|
@ -18,14 +19,14 @@ COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR}
|
||||||
CLEANFILES+= ${PROG}.elf ${PROG}.tmp
|
CLEANFILES+= ${PROG}.elf ${PROG}.tmp
|
||||||
|
|
||||||
LDFLAGS= -x -N -Ttext a0700000 -e _start
|
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+= -DSUPPORT_USTARFS -DHAVE_CHANGEDISK_HOOK
|
||||||
CPPFLAGS+= -DSUN_BOOTPARAMS
|
CPPFLAGS+= -DSUN_BOOTPARAMS
|
||||||
CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
|
CPPFLAGS+= -D_STANDALONE #-DBOOT_DEBUG
|
||||||
CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S}
|
CPPFLAGS+= -I${.CURDIR} -I${COMMON} -I${S}
|
||||||
|
|
||||||
AFLAGS= -D_LOCORE
|
AFLAGS= -D_LOCORE -mno-abicalls
|
||||||
|
|
||||||
LIBS = ${COMMON}/romcalls.o
|
LIBS = ${COMMON}/romcalls.o
|
||||||
LIBS+= ${COMMON}/lib/sa/libsa.a
|
LIBS+= ${COMMON}/lib/sa/libsa.a
|
||||||
|
|
|
@ -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
|
PROG= bootxx
|
||||||
SRCS= start.S bootxx.c
|
SRCS= start.S bootxx.c
|
||||||
NOMAN= # defined
|
NOMAN= # defined
|
||||||
STRIPFLAG=
|
STRIPFLAG=
|
||||||
BINMODE= 444
|
BINMODE= 444
|
||||||
|
WARNS?= 1
|
||||||
SIZE?= size
|
SIZE?= size
|
||||||
|
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
@ -12,12 +13,12 @@ SIZE?= size
|
||||||
COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR}
|
COMMON!= cd ${.CURDIR}/../common && ${PRINTOBJDIR}
|
||||||
|
|
||||||
LDFLAGS= -x -N -Ttext a0004000 -e _start
|
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+= -D_STANDALONE #-DBOOTXX_DEBUG
|
||||||
CPPFLAGS+= -nostdinc -I${COMMON} -I${.CURDIR}/../../../..
|
CPPFLAGS+= -nostdinc -I${COMMON} -I${.CURDIR}/../../../..
|
||||||
|
|
||||||
AFLAGS= -D_LOCORE
|
AFLAGS= -D_LOCORE -mno-abicalls
|
||||||
|
|
||||||
CLEANFILES+= machine mips ${PROG}.sym
|
CLEANFILES+= machine mips ${PROG}.sym
|
||||||
CLEANFILES+= ${PROG}.bin ${PROG}.tmp
|
CLEANFILES+= ${PROG}.bin ${PROG}.tmp
|
||||||
|
|
|
@ -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}/../../../..
|
S= ${.CURDIR}/../../../..
|
||||||
|
|
||||||
OBJS= romcalls.o
|
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+= -D_STANDALONE #-DBOOT_DEBUG
|
||||||
CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK
|
CPPFLAGS+= -DHAVE_CHANGEDISK_HOOK
|
||||||
CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY
|
CPPFLAGS+= -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY
|
||||||
CPPFLAGS+= -I. -I${S}
|
CPPFLAGS+= -I. -I${S}
|
||||||
|
|
||||||
AFLAGS= -D_LOCORE
|
AFLAGS= -D_LOCORE -mno-abicalls
|
||||||
|
|
||||||
### find out what to use for libkern
|
### find out what to use for libkern
|
||||||
.include "${S}/lib/libkern/Makefile.inc"
|
.include "${S}/lib/libkern/Makefile.inc"
|
||||||
|
|
Loading…
Reference in New Issue