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