Makefile.inc revision 329145
1# Common defines for all of /stand/i386/
2#
3# $FreeBSD: stable/11/stand/i386/Makefile.inc 329145 2018-02-12 01:08:44Z kevans $
4
5LOADER_ADDRESS?=0x200000
6CFLAGS+=	-march=i386 -ffreestanding
7CFLAGS.gcc+=	-mpreferred-stack-boundary=2
8CFLAGS+=	${CFLAGS_NO_SIMD} -msoft-float
9LDFLAGS+=	-nostdlib
10
11# BTX components
12BTXDIR=		${BOOTOBJ}/i386/btx
13BTXLDR=		${BTXDIR}/btxldr/btxldr
14BTXKERN=	${BTXDIR}/btx/btx
15BTXCRT=		${BTXDIR}/lib/crt0.o
16
17BTXSRC=		${BOOTSRC}/i386/btx
18BTXLIB=		${BTXSRC}/lib
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