Home | History | Annotate | Line # | Download | only in stand
Makefile.buildboot revision 1.15.8.4
      1  1.15.8.4  nathanw #	$NetBSD: Makefile.buildboot,v 1.15.8.4 2002/06/20 03:38:40 nathanw Exp $
      2  1.15.8.2  nathanw 
      3  1.15.8.2  nathanw # RELOC=FFF00000 allows for boot prog up to FF000 (1044480) bytes long
      4  1.15.8.2  nathanw RELOC=	FFF00000
      5  1.15.8.2  nathanw 
      6  1.15.8.2  nathanw S=		${.CURDIR}/../../../..
      7  1.15.8.2  nathanw 
      8  1.15.8.2  nathanw .PATH: ${.CURDIR}/../common
      9  1.15.8.2  nathanw 
     10  1.15.8.2  nathanw PROG=		${PROGAOUT}.lif
     11  1.15.8.2  nathanw 
     12  1.15.8.2  nathanw SRCS=		${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE}
     13  1.15.8.2  nathanw NOMAN=		# defined
     14  1.15.8.2  nathanw STRIPFLAG=
     15  1.15.8.2  nathanw BINMODE=	444
     16  1.15.8.2  nathanw 
     17  1.15.8.2  nathanw CLEANFILES+=	${PROGAOUT} vers.c vers.o
     18  1.15.8.2  nathanw 
     19  1.15.8.2  nathanw CPPFLAGS+=	-I${.CURDIR}/../../.. -I${.CURDIR}/../../../..  -I${.OBJDIR}
     20  1.15.8.2  nathanw CPPFLAGS+=	-Wno-main
     21  1.15.8.4  nathanw CFLAGS=		-Os -msoft-float -ffreestanding
     22  1.15.8.2  nathanw 
     23  1.15.8.2  nathanw SRCS+=		vers.c
     24  1.15.8.2  nathanw CLEANFILES+=	vers.c
     25  1.15.8.2  nathanw 
     26  1.15.8.2  nathanw .PHONY: vers.c
     27  1.15.8.2  nathanw vers.c: ${.CURDIR}/version
     28  1.15.8.2  nathanw 	sh ${S}/conf/newvers_stand.sh ${.CURDIR}/version hp300 ${NEWVERSWHAT}
     29  1.15.8.2  nathanw 
     30  1.15.8.2  nathanw ${PROG}: ${PROGAOUT} ${MKBOOT_PROG}
     31  1.15.8.2  nathanw 	${OBJCOPY} --output-target=binary ${PROGAOUT} ${PROGAOUT}.bin
     32  1.15.8.2  nathanw 	${MKBOOT_PROG} -l 0x${RELOC} ${PROGAOUT}.bin ${PROG}
     33  1.15.8.2  nathanw 	rm -f ${PROGAOUT}.bin
     34  1.15.8.2  nathanw 
     35  1.15.8.2  nathanw CPPFLAGS+=		-DDCACONSOLE -DAPCICONSOLE -DITECONSOLE -DDCMCONSOLE
     36  1.15.8.2  nathanw CPPFLAGS+=		-DHIL_KEYBOARD -DUK_KEYBOARD
     37  1.15.8.2  nathanw CPPFLAGS+=		-DDOMAIN_KEYBOARD
     38  1.15.8.2  nathanw CPPFLAGS+=		-D_STANDALONE -DCOMPAT_NOLABEL -Dhp300
     39  1.15.8.2  nathanw CPPFLAGS+=		-DCOMPAT_UFS -DNO_LSEEK
     40  1.15.8.2  nathanw 
     41  1.15.8.2  nathanw # if sun bootparams is desired
     42  1.15.8.2  nathanw #CPPFLAGS+=     -DSUN_BOOTPARAMS
     43  1.15.8.2  nathanw 
     44  1.15.8.2  nathanw # Limit the alloc() heap to below the msgbuf and ROM scratch pages.
     45  1.15.8.2  nathanw CPPFLAGS+=		-DHEAP_LIMIT="0xffffdfff"
     46  1.15.8.2  nathanw 
     47  1.15.8.2  nathanw COMMONSOURCE=		srt0.S autoconf.c clock.c conf.c cons.c devopen.c \
     48  1.15.8.3  nathanw 			exec.c machdep.c prf.c rawfs.c netio.c
     49  1.15.8.2  nathanw DRIVERSOURCE=		apci.c ct.c dca.c dcm.c dnkbd.c fhpib.c hil.c \
     50  1.15.8.2  nathanw 			hpib.c if_le.c ite.c ite_dv.c ite_gb.c ite_rb.c \
     51  1.15.8.2  nathanw 			ite_subr.c ite_tc.c ite_hy.c kbd.c kbdconf.c \
     52  1.15.8.2  nathanw 			nhpib.c rd.c scsi.c sd.c
     53  1.15.8.2  nathanw 
     54  1.15.8.2  nathanw .include <bsd.own.mk>
     55  1.15.8.2  nathanw 
     56  1.15.8.2  nathanw MKBOOTOBJDIR!=		cd ${.CURDIR}/../mkboot && ${PRINTOBJDIR}
     57  1.15.8.2  nathanw MKBOOT_PROG=		${MKBOOTOBJDIR}/mkboot
     58  1.15.8.2  nathanw 
     59  1.15.8.2  nathanw # Make sure ${MKBOOT_PROG} is always available
     60  1.15.8.2  nathanw ${MKBOOT_PROG}:
     61  1.15.8.2  nathanw 	@cd ${MKBOOTDIR} && ${MAKE} depend && ${MAKE}
     62  1.15.8.2  nathanw 
     63  1.15.8.2  nathanw .include <bsd.prog.mk>
     64  1.15.8.2  nathanw 
     65  1.15.8.2  nathanw ### find out what to use for libkern
     66  1.15.8.2  nathanw KERN_AS=	library
     67  1.15.8.2  nathanw .include "${S}/lib/libkern/Makefile.inc"
     68  1.15.8.2  nathanw LIBKERN=	${KERNLIB}
     69  1.15.8.2  nathanw 
     70  1.15.8.2  nathanw ### find out what to use for libz
     71  1.15.8.2  nathanw Z_AS=		library
     72  1.15.8.2  nathanw .include "${S}/lib/libz/Makefile.inc"
     73  1.15.8.2  nathanw LIBZ=		${ZLIB}
     74  1.15.8.2  nathanw 
     75  1.15.8.2  nathanw ### find out what to use for libsa
     76  1.15.8.2  nathanw SA_AS=		library
     77  1.15.8.2  nathanw SAMISCMAKEFLAGS+="SA_USE_CREAD=yes"
     78  1.15.8.2  nathanw SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
     79  1.15.8.2  nathanw .include "${S}/lib/libsa/Makefile.inc"
     80  1.15.8.2  nathanw LIBSA=		${SALIB}
     81  1.15.8.2  nathanw 
     82  1.15.8.2  nathanw ${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     83  1.15.8.2  nathanw 	${LD} -N -Ttext ${RELOC} -e begin -o ${PROGAOUT} \
     84  1.15.8.2  nathanw 	    ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
     85  1.15.8.2  nathanw 	@${SIZE} ${PROGAOUT}
     86  1.15.8.2  nathanw 	@echo ${PROGAOUT} total size should not exceed 1044480 bytes
     87