aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/efi
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-11-10 23:54:24 +0000
committerWarner Losh <imp@FreeBSD.org>2017-11-10 23:54:24 +0000
commit1f9ecdf78f7535e19ad1a58c744e3f62f4bc9032 (patch)
treee598ae0cf563647218e958bdbd204c53873ceb82 /sys/boot/efi
parentf933edf086759fa6588307dbf8d4897c7b58fa9d (diff)
Remove LOADER_FDT_SUPPORT as a Makefile variable.
LOADER_FDT_SUPPORT was used inconsistently in the tree. In some places, it was used to control whether or not the user wanted FDT included, and in other places it was a command to include support. Remove it entirely. The former is now enabled -DWITH_FDT, while the latter is controlled by Makefiles defining HAVE_FDT. Supported by: Netflix
Notes
Notes: svn path=/head/; revision=325689
Diffstat (limited to 'sys/boot/efi')
-rw-r--r--sys/boot/efi/loader/Makefile8
-rw-r--r--sys/boot/efi/loader/arch/arm/Makefile.inc2
-rw-r--r--sys/boot/efi/loader/arch/arm64/Makefile.inc3
3 files changed, 5 insertions, 8 deletions
diff --git a/sys/boot/efi/loader/Makefile b/sys/boot/efi/loader/Makefile
index 82852da1733e..3561d6e46a37 100644
--- a/sys/boot/efi/loader/Makefile
+++ b/sys/boot/efi/loader/Makefile
@@ -71,13 +71,9 @@ CFLAGS+= -DSMBIOS_NETWORK_ENDIAN_UUID
.endif
.endif
-LOADER_FDT_SUPPORT?= no
-.if ${MK_FDT} != "no" && ${LOADER_FDT_SUPPORT} != "no"
-CFLAGS+= -I${BOOTSRC}/fdt
-CFLAGS+= -I${BOOTSRC}/fdt
-CFLAGS+= -DLOADER_FDT_SUPPORT
+.if defined(HAVE_FDT) && ${MK_FDT} != "no"
+.include "${BOOTSRC}/fdt.mk"
LIBEFI_FDT= ${BOOTOBJ}/efi/fdt/libefi_fdt.a
-LIBFDT= ${BOOTOBJ}/fdt/libfdt.a
.endif
# Include bcache code.
diff --git a/sys/boot/efi/loader/arch/arm/Makefile.inc b/sys/boot/efi/loader/arch/arm/Makefile.inc
index b2876ca19518..74e6616e991b 100644
--- a/sys/boot/efi/loader/arch/arm/Makefile.inc
+++ b/sys/boot/efi/loader/arch/arm/Makefile.inc
@@ -3,4 +3,4 @@
SRCS+= exec.c \
start.S
-LOADER_FDT_SUPPORT=yes
+HAVE_FDT=yes
diff --git a/sys/boot/efi/loader/arch/arm64/Makefile.inc b/sys/boot/efi/loader/arch/arm64/Makefile.inc
index 2ce5af79d0c3..b62ce41c0e27 100644
--- a/sys/boot/efi/loader/arch/arm64/Makefile.inc
+++ b/sys/boot/efi/loader/arch/arm64/Makefile.inc
@@ -1,6 +1,7 @@
# $FreeBSD$
-LOADER_FDT_SUPPORT=yes
+HAVE_FDT=yes
+
SRCS+= exec.c \
start.S