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