]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/i386/Makefile.inc
sys/{x86,amd64}: remove one of doubled ;s
[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 MK_PIE:=        no
11
12 # BTX components
13 BTXDIR=         ${BOOTOBJ}/i386/btx
14 BTXLDR=         ${BTXDIR}/btxldr/btxldr
15 BTXKERN=        ${BTXDIR}/btx/btx
16 BTXCRT=         ${BTXDIR}/lib/crt0.o
17
18 BTXSRC=         ${BOOTSRC}/i386/btx
19 BTXLIB=         ${BTXSRC}/lib
20
21 CFLAGS+=        -I${BTXLIB}
22
23 # compact binary with no padding between text, data, bss
24 LDSCRIPT=       ${BOOTSRC}/i386/boot.ldscript
25 # LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
26 # LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
27 LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
28 .if ${LINKER_FEATURES:Mbuild-id} != ""
29 LDFLAGS_BIN+=-Wl,--build-id=none
30 .endif
31 LD_FLAGS_BIN=-static -N --gc-sections
32
33 .if ${MACHINE_CPUARCH} == "amd64"
34 DO32=1
35 .endif
36
37 .if defined(LOADER_FIREWIRE_SUPPORT)
38 MK_LOADER_FIREWIRE=yes
39 .warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE"
40 .endif
41
42 .include "../Makefile.inc"