xref: /freebsd/stand/i386/Makefile.inc (revision 8a4217aacf57330755501a349d0ea662d4880386)
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
17# compact binary with no padding between text, data, bss
18LDSCRIPT=	${BOOTSRC}/i386/boot.ldscript
19# LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
20# LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
21LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
22LD_FLAGS_BIN=-static -N --gc-sections
23
24.if ${MACHINE_CPUARCH} == "amd64"
25DO32=1
26.endif
27
28.if defined(LOADER_FIREWIRE_SUPPORT)
29MK_LOADER_FIREWIRE=yes
30.warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE"
31.endif
32
33.include "../Makefile.inc"
34