]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/i386/Makefile.inc
libfdt: Update to 1.4.6, switch to using libfdt for overlay support
[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
8 # BTX components
9 BTXDIR=         ${BOOTOBJ}/i386/btx
10 BTXLDR=         ${BTXDIR}/btxldr/btxldr
11 BTXKERN=        ${BTXDIR}/btx/btx
12 BTXCRT=         ${BTXDIR}/lib/crt0.o
13
14 BTXSRC=         ${BOOTSRC}/i386/btx
15 BTXLIB=         ${BTXSRC}/lib
16
17 CFLAGS+=        -I${BTXLIB}
18
19 # compact binary with no padding between text, data, bss
20 LDSCRIPT=       ${BOOTSRC}/i386/boot.ldscript
21 # LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-T,${LDSCRIPT},-S,--oformat,binary
22 # LD_FLAGS_BIN=-static -T ${LDSCRIPT} --gc-sections
23 LDFLAGS_BIN=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary
24 LD_FLAGS_BIN=-static -N --gc-sections
25
26 .if ${MACHINE_CPUARCH} == "amd64"
27 DO32=1
28 .endif
29
30 .if defined(LOADER_FIREWIRE_SUPPORT)
31 MK_LOADER_FIREWIRE=yes
32 .warning "LOADER_FIREWIRE_SUPPORT deprecated, please move to WITH_LOADER_FIREWIRE"
33 .endif
34
35 .include "../Makefile.inc"