Home | History | Annotate | Line # | Download | only in stand
Makefile.booters revision 1.24.14.1
      1  1.24.14.1  christos # $NetBSD: Makefile.booters,v 1.24.14.1 2019/06/10 22:06:44 christos Exp $
      2       1.19     joerg 
      3       1.19     joerg # PROG set by parent.
      4       1.19     joerg NOMAN=		# defined
      5       1.23  christos NOPIE=		# defined
      6       1.10     lukem 
      7       1.23  christos .include <bsd.init.mk>
      8       1.10     lukem .include <bsd.sys.mk>		# for HOST_SH
      9        1.1   thorpej 
     10        1.1   thorpej # $S must correspond to the top of the 'sys' tree
     11        1.1   thorpej S=	${.CURDIR}/../../../..
     12        1.1   thorpej 
     13        1.2   thorpej BINMODE?=	444
     14        1.9    simonb 
     15        1.9    simonb # XXX SHOULD NOT NEED TO DEFINE THESE!
     16        1.9    simonb LIBCRT0=
     17       1.22   tsutsui LIBCRTI=
     18        1.9    simonb LIBC=
     19        1.9    simonb LIBCRTBEGIN=
     20        1.9    simonb LIBCRTEND=
     21        1.2   thorpej 
     22       1.12    sekiya realall: ${PROG}
     23        1.1   thorpej 
     24        1.1   thorpej .PATH:		${.CURDIR}/../common
     25  1.24.14.1  christos .if !defined(PRE_ARCS)
     26       1.20      matt .PATH.S:	${S}/dev/arcbios
     27  1.24.14.1  christos .endif
     28        1.7   thorpej AFLAGS+=	-D_LOCORE -D_KERNEL -mno-abicalls
     29        1.1   thorpej CPPFLAGS+=	-nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S}
     30        1.1   thorpej # compiler flags for smallest code size
     31       1.11    sekiya CFLAGS=		-ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024
     32       1.17      matt .if ${MACHINE_ARCH} == "mips64eb"
     33       1.21      matt AFLAGS+=	-mips3 -mabi=32
     34       1.21      matt CFLAGS+=	-mips3 -mabi=32
     35       1.17      matt .endif
     36       1.17      matt CWARNFLAGS+=	-Wall -Werror
     37       1.17      matt CWARNFLAGS+=	-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
     38       1.17      matt CWARNFLAGS+=	-Wno-pointer-sign
     39        1.1   thorpej LDBUG=		-T $S/arch/mips/conf/stand.ldscript
     40       1.10     lukem NETBSD_VERS!=	${HOST_SH} ${.CURDIR}/../../../../conf/osrelease.sh
     41        1.1   thorpej CPPFLAGS+=	-DNETBSD_VERS='"${NETBSD_VERS}"'
     42        1.6   thorpej 
     43        1.6   thorpej CPPFLAGS+=	-Dsgimips
     44        1.1   thorpej 
     45  1.24.14.1  christos .if !defined(PRE_ARCS)
     46       1.20      matt .include "${S}/dev/arcbios/Makefile.inc"
     47  1.24.14.1  christos .endif
     48       1.20      matt 
     49        1.3     soren # We load the kernel at 420K in from the start of RAM to give the boot
     50        1.2   thorpej # loader plenty of breathing room.  Load the boot loader starting at
     51        1.2   thorpej # the second page of RAM.
     52        1.8     pooka # A warm thank-you to SGI for making load addresses different :)
     53        1.2   thorpej LOAD_ADDRESS?=		0x88002000
     54  1.24.14.1  christos LOAD_ADDRESS_IP12?=	0x80368000
     55        1.8     pooka LOAD_ADDRESS_IP32?=	0x80002000
     56        1.2   thorpej 
     57       1.24  christos .include "${S}/conf/newvers_stand.mk"
     58        1.1   thorpej 
     59        1.1   thorpej ### find out what to use for libkern
     60        1.1   thorpej KERN_AS=	library
     61        1.1   thorpej .include "${S}/lib/libkern/Makefile.inc"
     62        1.1   thorpej LIBKERN=	${KERNLIB}
     63        1.1   thorpej 
     64        1.1   thorpej ### find out what to use for libz
     65        1.1   thorpej Z_AS=		library
     66        1.1   thorpej .include "${S}/lib/libz/Makefile.inc"
     67        1.1   thorpej LIBZ=		${ZLIB}
     68        1.1   thorpej 
     69        1.1   thorpej ### find out what to use for libsa
     70        1.1   thorpej SA_AS=		library
     71        1.1   thorpej SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes SA_USE_CREAD=yes
     72        1.1   thorpej # for now:
     73        1.1   thorpej SAMISCMAKEFLAGS+=SA_INCLUDE_NET=no
     74        1.1   thorpej .include "${S}/lib/libsa/Makefile.inc"
     75        1.1   thorpej LIBSA=		${SALIB}
     76       1.12    sekiya 
     77        1.1   thorpej 
     78        1.1   thorpej LIBS=		${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN}
     79        1.1   thorpej 
     80       1.16   tsutsui .include <bsd.klinks.mk>
     81        1.1   thorpej .include <bsd.prog.mk>
     82