head	1.8;
access;
symbols
	netbsd-11-0-RC3:1.8
	netbsd-11-0-RC2:1.8
	netbsd-11-0-RC1:1.8
	perseant-exfatfs-base-20250801:1.8
	netbsd-11:1.8.0.4
	netbsd-11-base:1.8
	netbsd-10-1-RELEASE:1.6
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.2
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.3.6.1
	netbsd-9-4-RELEASE:1.6
	netbsd-10-0-RELEASE:1.6
	netbsd-10-0-RC6:1.6
	netbsd-10-0-RC5:1.6
	netbsd-10-0-RC4:1.6
	netbsd-10-0-RC3:1.6
	netbsd-10-0-RC2:1.6
	thorpej-ifq:1.7.0.4
	thorpej-ifq-base:1.7
	thorpej-altq-separation:1.7.0.2
	thorpej-altq-separation-base:1.7
	netbsd-10-0-RC1:1.6
	netbsd-10:1.6.0.30
	netbsd-10-base:1.6
	bouyer-sunxi-drm:1.6.0.28
	bouyer-sunxi-drm-base:1.6
	netbsd-9-3-RELEASE:1.6
	thorpej-i2c-spi-conf2:1.6.0.26
	thorpej-i2c-spi-conf2-base:1.6
	thorpej-futex2:1.6.0.24
	thorpej-futex2-base:1.6
	thorpej-cfargs2:1.6.0.22
	thorpej-cfargs2-base:1.6
	cjep_sun2x-base1:1.6
	cjep_sun2x:1.6.0.20
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	netbsd-9-2-RELEASE:1.6
	cjep_staticlib_x:1.6.0.18
	cjep_staticlib_x-base:1.6
	thorpej-i2c-spi-conf:1.6.0.16
	thorpej-i2c-spi-conf-base:1.6
	thorpej-cfargs:1.6.0.14
	thorpej-cfargs-base:1.6
	thorpej-futex:1.6.0.12
	thorpej-futex-base:1.6
	netbsd-9-1-RELEASE:1.6
	bouyer-xenpvh-base2:1.6
	phil-wifi-20200421:1.6
	bouyer-xenpvh-base1:1.6
	phil-wifi-20200411:1.6
	bouyer-xenpvh:1.6.0.10
	bouyer-xenpvh-base:1.6
	is-mlppp:1.6.0.8
	is-mlppp-base:1.6
	phil-wifi-20200406:1.6
	netbsd-8-2-RELEASE:1.3.6.1
	ad-namecache-base3:1.6
	netbsd-9-0-RELEASE:1.6
	netbsd-9-0-RC2:1.6
	ad-namecache-base2:1.6
	ad-namecache-base1:1.6
	ad-namecache:1.6.0.6
	ad-namecache-base:1.6
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.4
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.3.6.1
	netbsd-8-1-RC1:1.3.6.1
	isaki-audio2:1.6.0.2
	isaki-audio2-base:1.6
	pgoyette-compat-merge-20190127:1.4.2.1
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.4
	netbsd-8-0-RELEASE:1.3.6.1
	phil-wifi:1.4.0.4
	phil-wifi-base:1.4
	pgoyette-compat-0625:1.4
	netbsd-8-0-RC2:1.3.6.1
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.3.6.1
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.4.0.2
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.1
	tls-maxphys-base-20171202:1.4
	matt-nb8-mediatek:1.3.6.1.0.2
	matt-nb8-mediatek-base:1.3.6.1
	nick-nhusb-base-20170825:1.3
	perseant-stdc-iso10646:1.3.0.8
	perseant-stdc-iso10646-base:1.3
	netbsd-8:1.3.0.6
	netbsd-8-base:1.3
	prg-localcount2-base3:1.3
	prg-localcount2-base2:1.3
	prg-localcount2-base1:1.3
	prg-localcount2:1.3.0.4
	prg-localcount2-base:1.3
	pgoyette-localcount-20170426:1.3
	bouyer-socketcan-base1:1.3
	jdolecek-ncq:1.3.0.2
	jdolecek-ncq-base:1.3
	pgoyette-localcount-20170320:1.2
	netbsd-7-1:1.1.0.18
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	nick-nhusb-base-20170204:1.2
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.2.0.4
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	netbsd-7-1-RC1:1.1
	nick-nhusb-base-20161204:1.2
	pgoyette-localcount-20161104:1.2
	netbsd-7-0-2-RELEASE:1.1
	nick-nhusb-base-20161004:1.2
	localcount-20160914:1.2
	netbsd-7-nhusb:1.1.0.16
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.2
	pgoyette-localcount-base:1.2
	nick-nhusb-base-20160907:1.2
	nick-nhusb-base-20160529:1.2
	netbsd-7-0-1-RELEASE:1.1
	nick-nhusb-base-20160422:1.2
	nick-nhusb-base-20160319:1.2
	nick-nhusb-base-20151226:1.1
	netbsd-7-0:1.1.0.14
	netbsd-7-0-RELEASE:1.1
	nick-nhusb-base-20150921:1.1
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	nick-nhusb-base-20150606:1.1
	nick-nhusb-base-20150406:1.1
	nick-nhusb:1.1.0.12
	nick-nhusb-base:1.1
	tls-maxphys-base:1.1
	tls-maxphys:1.1.0.10
	netbsd-7:1.1.0.8
	netbsd-7-base:1.1
	yamt-pagecache:1.1.0.6
	rmind-smpnet-base:1.1
	rmind-smpnet:1.1.0.4
	rmind-smpnet-nbase:1.1
	yamt-pagecache-base9:1.1
	tls-earlyentropy:1.1.0.2
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1;
locks; strict;
comment	@# @;


1.8
date	2024.04.29.07.33.32;	author skrll;	state Exp;
branches;
next	1.7;
commitid	CFRhztHYMCvsI08F;

1.7
date	2023.08.03.08.16.31;	author mrg;	state Exp;
branches;
next	1.6;
commitid	DVPdFRfYwaFfDjzE;

1.6
date	2018.11.13.21.22.37;	author skrll;	state Exp;
branches;
next	1.5;
commitid	IOArA7HT7mPdoPZA;

1.5
date	2018.11.13.21.20.11;	author skrll;	state Exp;
branches;
next	1.4;
commitid	tcG2ycImnCnSnPZA;

1.4
date	2017.08.29.09.17.43;	author christos;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;
commitid	NtPiSQZmJU3Sy55A;

1.3
date	2017.04.08.19.53.20;	author christos;	state Exp;
branches
	1.3.6.1;
next	1.2;
commitid	mAo8FJwd588QFLMz;

1.2
date	2016.02.21.14.50.05;	author christos;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;
commitid	PMSerU7sVtZUeNVy;

1.1
date	2014.02.24.07.23.43;	author skrll;	state Exp;
branches
	1.1.4.1
	1.1.6.1
	1.1.10.1
	1.1.12.1;
next	;
commitid	HknWmBfzukaU7kqx;

1.4.2.1
date	2018.11.26.01.52.25;	author pgoyette;	state Exp;
branches;
next	;
commitid	Zj4q5SspGdKXto1B;

1.4.4.1
date	2019.06.10.22.06.19;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.3.6.1
date	2017.08.31.11.41.29;	author martin;	state Exp;
branches;
next	;
commitid	vsTMxTbzXzXfim5A;

1.2.2.1
date	2017.04.26.02.53.02;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.2.4.1
date	2017.04.21.16.53.28;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.1.4.1
date	2014.02.24.07.23.43;	author rmind;	state dead;
branches;
next	1.1.4.2;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.4.2
date	2014.05.18.17.45.11;	author rmind;	state Exp;
branches;
next	;
commitid	mL5ZYSzpqK6QS2Bx;

1.1.6.1
date	2014.02.24.07.23.43;	author yamt;	state dead;
branches;
next	1.1.6.2;
commitid	VUUXuyNWnt3AKwBx;

1.1.6.2
date	2014.05.22.11.39.50;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.1.10.1
date	2014.02.24.07.23.43;	author tls;	state dead;
branches;
next	1.1.10.2;
commitid	jTnpym9Qu0o4R1Nx;

1.1.10.2
date	2014.08.20.00.03.05;	author tls;	state Exp;
branches;
next	1.1.10.3;
commitid	jTnpym9Qu0o4R1Nx;

1.1.10.3
date	2017.12.03.11.36.16;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.1.12.1
date	2016.03.19.11.30.00;	author skrll;	state Exp;
branches;
next	1.1.12.2;
commitid	2PHKtPSg1vDV9fZy;

1.1.12.2
date	2017.08.28.17.51.40;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;


desc
@@


1.8
log
@Whitespace
@
text
@#	$NetBSD: Makefile.buildboot,v 1.7 2023/08/03 08:16:31 mrg Exp $

NOPIE=yes
NOSSP=yes
NODEBUG=yes
RELOC=	120000
HEAP_LIMIT=0x1c0000
#DEBUGFLAGS=-DDEBUG
#DEBUGFLAGS+=-DDEBUGBUG
#DEBUGFLAGS+=-DPDCDEBUG
#DEBUGFLAGS+=-DLIFDEBUG
#DEBUGFLAGS+=-DEXEC_DEBUG
#DEBUGFLAGS+=-DALLOC_TRACE
#DEBUGLIBS=	no

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

S=		${.CURDIR}/../../../..

.PATH: ${.CURDIR}/../common

SRCS=		${PROGSOURCE} ${COMMONSOURCE} ${DRIVERSOURCE}
NOMAN=
STRIPFLAG=
BINMODE=	444

.include <bsd.own.mk>

CPPFLAGS+=	-nostdinc -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
		-I${.OBJDIR}
CFLAGS+=	-Os -fno-delete-null-pointer-checks -msoft-float -Wno-main
CFLAGS+=	-fno-builtin
CFLAGS+=	-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0

.include "${S}/conf/newvers_stand.mk"

CPPFLAGS+=	-D_STANDALONE -Dhppa ${DEBUGFLAGS}
CPPFLAGS+=	-DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
CPPFLAGS+=	-DNO_NET

COMMONSOURCE=	cons.c dev_hppa.c dk.c itecons.c \
		machdep.c milli_tiny.S pdc.c time.c
DRIVERSOURCE=

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LDFLAGS+=	-static -nostdlib -Wl,-N -Wl,-Ttext,$(RELOC)
LDFLAGS+=	-Wl,-T,${.CURDIR}/ld.script -Wl,-Map,${PROG}.map

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	@@${SIZE} ${PROG}
	@@echo ${PROG} total size should not exceed XXXX bytes

# GCC 12 and newer thinks this is bad (accessing page 0?)
COPTS.itecons.c+=	-Wno-array-bounds

.include <bsd.prog.mk>
.include <bsd.klinks.mk>
@


1.7
log
@ignore "-Warray-bounds" for various low level platform code that knows
how something is setup but technically is undefined behaviour.  the
most common here is "extern int end;" and then using offsets of "&end"
that are outside the bounds of this 4-byte integer.

these uses are almost certainly all OK in reality.

found by GCC 12.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.6 2018/11/13 21:22:37 skrll Exp $
d41 3
a43 3
CPPFLAGS+=		-D_STANDALONE -Dhppa ${DEBUGFLAGS}
CPPFLAGS+=		-DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
CPPFLAGS+=		-DNO_NET
d45 2
a46 2
COMMONSOURCE=		cons.c dev_hppa.c dk.c itecons.c \
			machdep.c milli_tiny.S pdc.c time.c
@


1.6
log
@Apply -fno-delete-null-pointer-checks so PAGE0 is handled correctly

netinstall.lif works again
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.5 2018/11/13 21:20:11 skrll Exp $
d73 3
@


1.5
log
@Trailing whitespace
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.4 2017/08/29 09:17:43 christos Exp $
d35 1
a35 1
CFLAGS+=	-Os -msoft-float -Wno-main
@


1.4
log
@disable PIE and SSP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.3 2017/04/08 19:53:20 christos Exp $
d27 1
a27 1
NOMAN=		
d47 1
a47 1
DRIVERSOURCE=		
@


1.4.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.6 2018/11/13 21:22:37 skrll Exp $
d27 1
a27 1
NOMAN=
d35 1
a35 1
CFLAGS+=	-Os -fno-delete-null-pointer-checks -msoft-float -Wno-main
d47 1
a47 1
DRIVERSOURCE=
@


1.4.2.1
log
@Sync with HEAD, resolve a couple of conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.6 2018/11/13 21:22:37 skrll Exp $
d27 1
a27 1
NOMAN=
d35 1
a35 1
CFLAGS+=	-Os -fno-delete-null-pointer-checks -msoft-float -Wno-main
d47 1
a47 1
DRIVERSOURCE=
@


1.3
log
@centralize vers.c building for standalone programs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.2 2016/02/21 14:50:05 christos Exp $
d3 2
@


1.3.6.1
log
@Pull up following revision(s) (requested by skrll in ticket #249):
	sys/arch/hppa/stand/Makefile.buildboot: revision 1.4
	sys/arch/hppa/stand/boot/ld.script: revision 1.2
	sys/arch/hppa/stand/Makefile.inc: revision 1.4
disable PIE and SSP
Ensure all data is captured under the edata symbol for srt0.S to relocate
it correctly.
gcc 5.3 marks some data as .data.rel.local, .data.rel or .data.rel.ro
port-hppa/52484: lif images from -8 and HEAD not loadable/bootable over network
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.3 2017/04/08 19:53:20 christos Exp $
a2 2
NOPIE=yes
NOSSP=yes
@


1.2
log
@move the NODEBUG to the boot blocks only.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.1 2014/02/24 07:23:43 skrll Exp $
d37 1
a37 6
SRCS+=		vers.c
CLEANFILES+=	vers.c

vers.c: ${.CURDIR}/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version hppa ${NEWVERSWHAT}
@


1.2.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.3 2017/04/08 19:53:20 christos Exp $
d37 6
a42 1
.include "${S}/conf/newvers_stand.mk"
@


1.2.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.3 2017/04/08 19:53:20 christos Exp $
d37 6
a42 1
.include "${S}/conf/newvers_stand.mk"
@


1.1
log
@Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.15 2014/01/12 15:26:29 tsutsui Exp $
d3 1
@


1.1.12.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.2 2016/02/21 14:50:05 christos Exp $
a2 1
NODEBUG=yes
@


1.1.12.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.buildboot,v 1.1.12.1 2016/03/19 11:30:00 skrll Exp $
d37 6
a42 1
.include "${S}/conf/newvers_stand.mk"
@


1.1.10.1
log
@file Makefile.buildboot was added on branch tls-maxphys on 2014-08-20 00:03:05 +0000
@
text
@d1 76
@


1.1.10.2
log
@Rebase to HEAD as of a few days ago.
@
text
@a0 76
#	$NetBSD$

RELOC=	120000
HEAP_LIMIT=0x1c0000
#DEBUGFLAGS=-DDEBUG
#DEBUGFLAGS+=-DDEBUGBUG
#DEBUGFLAGS+=-DPDCDEBUG
#DEBUGFLAGS+=-DLIFDEBUG
#DEBUGFLAGS+=-DEXEC_DEBUG
#DEBUGFLAGS+=-DALLOC_TRACE
#DEBUGLIBS=	no

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

S=		${.CURDIR}/../../../..

.PATH: ${.CURDIR}/../common

SRCS=		${PROGSOURCE} ${COMMONSOURCE} ${DRIVERSOURCE}
NOMAN=		
STRIPFLAG=
BINMODE=	444

.include <bsd.own.mk>

CPPFLAGS+=	-nostdinc -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
		-I${.OBJDIR}
CFLAGS+=	-Os -msoft-float -Wno-main
CFLAGS+=	-fno-builtin
CFLAGS+=	-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0

SRCS+=		vers.c
CLEANFILES+=	vers.c

vers.c: ${.CURDIR}/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version hppa ${NEWVERSWHAT}

CPPFLAGS+=		-D_STANDALONE -Dhppa ${DEBUGFLAGS}
CPPFLAGS+=		-DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
CPPFLAGS+=		-DNO_NET

COMMONSOURCE=		cons.c dev_hppa.c dk.c itecons.c \
			machdep.c milli_tiny.S pdc.c time.c
DRIVERSOURCE=		

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LDFLAGS+=	-static -nostdlib -Wl,-N -Wl,-Ttext,$(RELOC)
LDFLAGS+=	-Wl,-T,${.CURDIR}/ld.script -Wl,-Map,${PROG}.map

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	@@${SIZE} ${PROG}
	@@echo ${PROG} total size should not exceed XXXX bytes

.include <bsd.prog.mk>
.include <bsd.klinks.mk>
@


1.1.10.3
log
@update from HEAD
@
text
@a2 3
NOPIE=yes
NOSSP=yes
NODEBUG=yes
d36 6
a41 1
.include "${S}/conf/newvers_stand.mk"
@


1.1.6.1
log
@file Makefile.buildboot was added on branch yamt-pagecache on 2014-05-22 11:39:50 +0000
@
text
@d1 76
@


1.1.6.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@a0 76
#	$NetBSD$

RELOC=	120000
HEAP_LIMIT=0x1c0000
#DEBUGFLAGS=-DDEBUG
#DEBUGFLAGS+=-DDEBUGBUG
#DEBUGFLAGS+=-DPDCDEBUG
#DEBUGFLAGS+=-DLIFDEBUG
#DEBUGFLAGS+=-DEXEC_DEBUG
#DEBUGFLAGS+=-DALLOC_TRACE
#DEBUGLIBS=	no

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

S=		${.CURDIR}/../../../..

.PATH: ${.CURDIR}/../common

SRCS=		${PROGSOURCE} ${COMMONSOURCE} ${DRIVERSOURCE}
NOMAN=		
STRIPFLAG=
BINMODE=	444

.include <bsd.own.mk>

CPPFLAGS+=	-nostdinc -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
		-I${.OBJDIR}
CFLAGS+=	-Os -msoft-float -Wno-main
CFLAGS+=	-fno-builtin
CFLAGS+=	-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0

SRCS+=		vers.c
CLEANFILES+=	vers.c

vers.c: ${.CURDIR}/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version hppa ${NEWVERSWHAT}

CPPFLAGS+=		-D_STANDALONE -Dhppa ${DEBUGFLAGS}
CPPFLAGS+=		-DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
CPPFLAGS+=		-DNO_NET

COMMONSOURCE=		cons.c dev_hppa.c dk.c itecons.c \
			machdep.c milli_tiny.S pdc.c time.c
DRIVERSOURCE=		

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LDFLAGS+=	-static -nostdlib -Wl,-N -Wl,-Ttext,$(RELOC)
LDFLAGS+=	-Wl,-T,${.CURDIR}/ld.script -Wl,-Map,${PROG}.map

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	@@${SIZE} ${PROG}
	@@echo ${PROG} total size should not exceed XXXX bytes

.include <bsd.prog.mk>
.include <bsd.klinks.mk>
@


1.1.4.1
log
@file Makefile.buildboot was added on branch rmind-smpnet on 2014-05-18 17:45:11 +0000
@
text
@d1 76
@


1.1.4.2
log
@sync with head
@
text
@a0 76
#	$NetBSD$

RELOC=	120000
HEAP_LIMIT=0x1c0000
#DEBUGFLAGS=-DDEBUG
#DEBUGFLAGS+=-DDEBUGBUG
#DEBUGFLAGS+=-DPDCDEBUG
#DEBUGFLAGS+=-DLIFDEBUG
#DEBUGFLAGS+=-DEXEC_DEBUG
#DEBUGFLAGS+=-DALLOC_TRACE
#DEBUGLIBS=	no

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

S=		${.CURDIR}/../../../..

.PATH: ${.CURDIR}/../common

SRCS=		${PROGSOURCE} ${COMMONSOURCE} ${DRIVERSOURCE}
NOMAN=		
STRIPFLAG=
BINMODE=	444

.include <bsd.own.mk>

CPPFLAGS+=	-nostdinc -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
		-I${.OBJDIR}
CFLAGS+=	-Os -msoft-float -Wno-main
CFLAGS+=	-fno-builtin
CFLAGS+=	-mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0

SRCS+=		vers.c
CLEANFILES+=	vers.c

vers.c: ${.CURDIR}/version
	${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \
	    ${.CURDIR}/version hppa ${NEWVERSWHAT}

CPPFLAGS+=		-D_STANDALONE -Dhppa ${DEBUGFLAGS}
CPPFLAGS+=		-DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
CPPFLAGS+=		-DNO_NET

COMMONSOURCE=		cons.c dev_hppa.c dk.c itecons.c \
			machdep.c milli_tiny.S pdc.c time.c
DRIVERSOURCE=		

### find out what to use for libkern
KERN_AS=	library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=	${KERNLIB}

### find out what to use for libz
Z_AS=		library
.include "${S}/lib/libz/Makefile.inc"
LIBZ=		${ZLIB}

### find out what to use for libsa
SA_AS=		library
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.include "${S}/lib/libsa/Makefile.inc"
LIBSA=		${SALIB}

LDFLAGS+=	-static -nostdlib -Wl,-N -Wl,-Ttext,$(RELOC)
LDFLAGS+=	-Wl,-T,${.CURDIR}/ld.script -Wl,-Map,${PROG}.map

${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
	@@${SIZE} ${PROG}
	@@echo ${PROG} total size should not exceed XXXX bytes

.include <bsd.prog.mk>
.include <bsd.klinks.mk>
@


