]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/Makefile.inc
Re-sync loader.mk and ficl.mk to where they should be
[FreeBSD/FreeBSD.git] / stand / Makefile.inc
1 # $FreeBSD$
2
3 .include "defs.mk"
4
5 .if !defined(__BOOT_MAKEFILE_INC__)
6 __BOOT_MAKEFILE_INC__=${MFILE}
7
8 CFLAGS+=-I${SASRC}
9
10 SSP_CFLAGS=
11
12 .if ${MACHINE_CPUARCH} == "arm"
13 # Do not generate movt/movw, because the relocation fixup for them does not
14 # translate to the -Bsymbolic -pie format required by self_reloc() in loader(8).
15 # Also, the fpu is not available in a standalone environment.
16 .if ${COMPILER_VERSION} < 30800
17 CFLAGS.clang+=  -mllvm -arm-use-movt=0
18 .else
19 CFLAGS.clang+=  -mno-movt
20 .endif
21 CFLAGS.clang+=  -mfpu=none
22 .endif
23
24 # The boot loader build uses dd status=none, where possible, for reproducible
25 # build output (since performance varies from run to run). Trouble is that
26 # option was recently (10.3) added to FreeBSD and is non-standard. Only use it
27 # when this test succeeds rather than require dd to be a bootstrap tool.
28 DD_NOSTATUS!=(dd status=none count=0 2> /dev/null && echo status=none) || true
29 DD=dd ${DD_NOSTATUS}
30
31 .if ${MK_LOADER_FORCE_LE} != "no"
32 .if ${MACHINE_ARCH} == "powerpc64"
33 CFLAGS+=        -mlittle-endian
34 .endif
35 .endif
36
37 .endif