Makefile.inc revision 329010
158713Sjhb# Common defines for all of /sys/boot/i386/ 258713Sjhb# 358713Sjhb# $FreeBSD: stable/11/sys/boot/i386/Makefile.inc 329010 2018-02-08 02:44:21Z kevans $ 458713Sjhb 5125517SruBINDIR?= /boot 6125517Sru 7125537SruLOADER_ADDRESS?=0x200000 8259913SdimCFLAGS+= -march=i386 -ffreestanding 9259913SdimCFLAGS.gcc+= -mpreferred-stack-boundary=2 10287227SimpCFLAGS+= ${CFLAGS_NO_SIMD} -msoft-float 11125621SruLDFLAGS+= -nostdlib 12116864Speter 13211677Simp.if ${MACHINE_CPUARCH} == "amd64" 14241785SavgCFLAGS+= -m32 15224131SdimACFLAGS+= -m32 16260095Sdim# LD_FLAGS is passed directly to ${LD}, not via ${CC}: 17260095SdimLD_FLAGS+= -m elf_i386_fbsd 18125537SruAFLAGS+= --32 19116864Speter.endif 20125537Sru 21125537Sru# BTX components 22125537Sru.if exists(${.OBJDIR}/../btx) 23125537SruBTXDIR= ${.OBJDIR}/../btx 24125537Sru.else 25125537SruBTXDIR= ${.CURDIR}/../btx 26125537Sru.endif 27125537SruBTXLDR= ${BTXDIR}/btxldr/btxldr 28125537SruBTXKERN= ${BTXDIR}/btx/btx 29125537SruBTXCRT= ${BTXDIR}/lib/crt0.o 30180012Sru 31329010Skevans# compact binary with no padding between text, data, bss 32329010SkevansLDSCRIPT= ${SRCTOP}/sys/boot/i386/boot.ldscript 33329010SkevansLDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary 34329010SkevansLD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections 35329010Skevans 36180012Sru.include "../Makefile.inc" 37