Makefile.buildboot revision 1.31
11.31Smartin# $NetBSD: Makefile.buildboot,v 1.31 2016/03/10 09:00:24 martin Exp $ 21.18Smrg# 31.18Smrg# This file is for the sparc `boot' and `bootxx' only; it does not 41.18Smrg# currently play well on a 64-bit system. 51.1Smrg 61.1SmrgS= ${.CURDIR}/../../../.. 71.1Smrg 81.4Spk.PATH: ${.CURDIR}/../common ${.CURDIR}/../../sparc 91.1Smrg 101.28SchristosCOMMONSOURCE= srt0.S promdev.c dvma.c promlib.c isfloppy.c 111.1Smrg 121.1SmrgSRCS= ${COMMONSOURCE} ${PROGSOURCE} 131.17StvNOMAN= # defined 141.1SmrgBINMODE= 444 151.1Smrg 161.31Smartin.include <bsd.own.mk> 171.31Smartin 181.15Spk# 191.15Spk# The relocation address for `boot' must leave enough free memory below 201.15Spk# it to load a kernel at address 0x4000. On the other hand, on some 211.15Spk# machines, the PROM uses memory in the upper portion of the first 4MB 221.15Spk# segment, depending on the actual memory bank configuration probably. 231.15Spk# Our boot program must stear clear of that as well. 241.15Spk# 251.15Spk# Relocating `boot' at 0x388000 seems to provide a working compromise 261.15Spk# on the machines tested so far. 271.15Spk# 281.15SpkRELOC_DEFAULT?= 388000 291.14SpkRELOCS= $(RELOC_DEFAULT) 301.14Spk#RELOCS+= 200000 400000 700000 # additional link addresses 311.14Spk 321.11Spk# `bootxx' is linked at a different address to circumvent i-cache 331.11Spk# flushing issues on Hypersparcs 341.14SpkRELOC_BOOTXX= 300000 351.1Smrg 361.19SpkCPPFLAGS+= -D_STANDALONE -DSUN4 -DSUN4C -DSUN4M -DSUN4D -DHEAP_VARIABLE 371.1Smrg 381.5SpkCPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. 391.26StsutsuiCPPFLAGS+= -I${.CURDIR}/../../../../../common/include 401.30SjoergCFLAGS= ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer : -Os } -fno-unwind-tables 411.30SjoergAFLAGS+= ${${ACTIVE_CC} == "clang":? -Oz :} 421.21SmrgCFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -ffreestanding 431.1Smrg 441.1Smrg### find out what to use for libkern 451.1SmrgKERN_AS= library 461.1Smrg.include "${S}/lib/libkern/Makefile.inc" 471.1SmrgLIBKERN= ${KERNLIB} 481.1Smrg 491.1Smrg.ifdef INCLUDE_LIBZ 501.1Smrg### find out what to use for libz 511.1SmrgZ_AS= library 521.1Smrg.include "${S}/lib/libz/Makefile.inc" 531.1SmrgLIBZ= ${ZLIB} 541.1Smrg.endif 551.1Smrg 561.1Smrg### find out what to use for libsa 571.1SmrgSA_AS= library 581.6SchristosSAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 591.1Smrg.include "${S}/lib/libsa/Makefile.inc" 601.1SmrgLIBSA= ${SALIB} 611.5Spk 621.25Stsutsui.include <bsd.klinks.mk> 631.20Snakayama 641.27Sdhollandcleandir distclean: .WAIT cleanlibdir 651.20Snakayama 661.20Snakayamacleanlibdir: 671.22Sjmc -rm -rf lib 68