1# Common defines for all of stand/i386/ 2# 3# $FreeBSD$ 4 5LOADER_ADDRESS?=0x200000 6LDFLAGS+= -nostdlib 7 8# BTX components 9BTXDIR= ${BOOTOBJ}/i386/btx 10BTXLDR= ${BTXDIR}/btxldr/btxldr 11BTXKERN= ${BTXDIR}/btx/btx 12BTXCRT= ${BTXDIR}/lib/crt0.o 13 14BTXSRC= ${BOOTSRC}/i386/btx 15BTXLIB= ${BTXSRC}/lib 16 17CFLAGS+= -I${BTXLIB} 18 19# compact binary with no padding between text, data, bss 20LDSCRIPT= ${BOOTSRC}/i386/boot.ldscript 21# LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary 22# LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections 23LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary 24LD_FLAGS_BIN=-static -N --gc-sections 25 26.if ${MACHINE_CPUARCH} == "amd64" 27DO32=1 28.endif 29 30.if defined(LOADER_FIREWIRE_SUPPORT) 31MK_LOADER_FIREWIRE=yes 32.warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE" 33.endif 34 35.include "../Makefile.inc" 36