summaryrefslogtreecommitdiff
path: root/sys/boot/fdt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/fdt/Makefile')
-rw-r--r--sys/boot/fdt/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/boot/fdt/Makefile b/sys/boot/fdt/Makefile
index ce11dbb42f84..d0d0a58867ee 100644
--- a/sys/boot/fdt/Makefile
+++ b/sys/boot/fdt/Makefile
@@ -1,6 +1,8 @@
# $FreeBSD$
-.PATH: ${.CURDIR}/../../contrib/libfdt/
+.include <bsd.init.mk>
+
+.PATH: ${SYSDIR}/contrib/libfdt/
LIB= fdt
INTERNALLIB=
@@ -12,7 +14,7 @@ SRCS+= fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c \
# Loader's fdt commands extension sources.
SRCS+= fdt_loader_cmd.c fdt_overlay.c
-CFLAGS+= -I${.CURDIR}/../../contrib/libfdt/ -I${.CURDIR}/../common/
+CFLAGS+= -I${SYSDIR}/contrib/libfdt/ -I${BOOTSRC}/common/
CFLAGS+= -ffreestanding