aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/fdt/Makefile
blob: 7308ce94e45ecc6227203894611a20f0dc464e16 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $FreeBSD$

.include <bsd.init.mk>

.PATH: ${LDRSRC}

LIB=		efi_fdt
INTERNALLIB=
WARNS?=		6

SRCS=		efi_fdt.c

CFLAGS+=	-ffreestanding
.if ${MACHINE_CPUARCH} == "aarch64"
CFLAGS+=	-mgeneral-regs-only
.else
CFLAGS+=	-msoft-float
.endif

# EFI library headers
CFLAGS+=	-I${EFISRC}/include
CFLAGS+=	-I${EFISRC}/include/${MACHINE}

# libfdt headers
CFLAGS+=	-I${FDTSRC}

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${LDRSRC}

.include <bsd.lib.mk>