Makefile.buildboot revision 1.15
11.15Spk# $NetBSD: Makefile.buildboot,v 1.15 2000/10/31 23:21:47 pk Exp $ 21.1Smrg 31.1SmrgS= ${.CURDIR}/../../../.. 41.1Smrg 51.4Spk.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc 61.1Smrg 71.4SpkCOMMONSOURCE= srt0.S promdev.c dvma.c promlib.c 81.1Smrg 91.1SmrgSRCS= ${COMMONSOURCE} ${PROGSOURCE} 101.3SlukemMKMAN= no 111.1SmrgBINMODE= 444 121.1Smrg 131.15Spk# 141.15Spk# The relocation address for `boot' must leave enough free memory below 151.15Spk# it to load a kernel at address 0x4000. On the other hand, on some 161.15Spk# machines, the PROM uses memory in the upper portion of the first 4MB 171.15Spk# segment, depending on the actual memory bank configuration probably. 181.15Spk# Our boot program must stear clear of that as well. 191.15Spk# 201.15Spk# Relocating `boot' at 0x388000 seems to provide a working compromise 211.15Spk# on the machines tested so far. 221.15Spk# 231.15SpkRELOC_DEFAULT?= 388000 241.14SpkRELOCS= $(RELOC_DEFAULT) 251.14Spk#RELOCS+= 200000 400000 700000 # additional link addresses 261.14Spk 271.11Spk# `bootxx' is linked at a different address to circumvent i-cache 281.11Spk# flushing issues on Hypersparcs 291.14SpkRELOC_BOOTXX= 300000 301.1Smrg 311.12SpkCPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C -DHEAP_VARIABLE 321.1Smrg 331.5SpkCPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. 341.1SmrgCFLAGS= -O2 351.4SpkCFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes 361.1Smrg 371.1Smrg### find out what to use for libkern 381.1SmrgKERN_AS= library 391.1Smrg.include "${S}/lib/libkern/Makefile.inc" 401.1SmrgLIBKERN= ${KERNLIB} 411.1Smrg 421.1Smrg.ifdef INCLUDE_LIBZ 431.1Smrg### find out what to use for libz 441.1SmrgZ_AS= library 451.1Smrg.include "${S}/lib/libz/Makefile.inc" 461.1SmrgLIBZ= ${ZLIB} 471.1Smrg.endif 481.1Smrg 491.1Smrg### find out what to use for libsa 501.1SmrgSA_AS= library 511.6SchristosSAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 521.1Smrg.include "${S}/lib/libsa/Makefile.inc" 531.1SmrgLIBSA= ${SALIB} 541.5Spk 551.8Spk.if !make(obj) 561.5Spk.BEGIN: 571.5Spk @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) 581.9Smycroft.NOPATH: machine 591.9SmycroftCLEANFILES+= machine 601.8Spk.endif 61