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