]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/i386/Makefile.inc
Fix args cross-threading between gptboot(8) and loader(8) with zfs support.
[FreeBSD/FreeBSD.git] / stand / i386 / Makefile.inc
1 # Common defines for all of stand/i386/
2 #
3 # $FreeBSD$
4
5 .include "bsd.linker.mk"
6
7 LOADER_ADDRESS?=0x200000
8 LDFLAGS+=       -nostdlib
9 LDFLAGS.lld+=   -Wl,--no-rosegment
10
11 # BTX components
12 BTXDIR=         ${BOOTOBJ}/i386/btx
13 BTXLDR=         ${BTXDIR}/btxldr/btxldr
14 BTXKERN=        ${BTXDIR}/btx/btx
15 BTXCRT=         ${BTXDIR}/lib/crt0.o
16
17 BTXSRC=         ${BOOTSRC}/i386/btx
18 BTXLIB=         ${BTXSRC}/lib
19
20 CFLAGS+=        -I${BTXLIB}
21
22 # compact binary with no padding between text, data, bss
23 LDSCRIPT=       ${BOOTSRC}/i386/boot.ldscript
24 # LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
25 # LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
26 LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
27 .if ${LINKER_FEATURES:Mbuild-id} != ""
28 LDFLAGS_BIN+=-Wl,--build-id=none
29 .endif
30 LD_FLAGS_BIN=-static -N --gc-sections
31
32 .if ${MACHINE_CPUARCH} == "amd64"
33 DO32=1
34 .endif
35
36 .if defined(LOADER_FIREWIRE_SUPPORT)
37 MK_LOADER_FIREWIRE=yes
38 .warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE"
39 .endif
40
41 .include "../Makefile.inc"