summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/Makefile
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2014-11-01 17:12:44 +0000
committerandrew <andrew@FreeBSD.org>2014-11-01 17:12:44 +0000
commit2b36711b7857337942c3a4a579451a49491e3db2 (patch)
treeb2eda9c3d489687e9caaec4068e0ceef99190fc0 /sys/boot/uboot/Makefile
parent9e8b5d9f18c4a511536a0cf4ad5d1528d933abba (diff)
downloadFreeBSD-src-2b36711b7857337942c3a4a579451a49491e3db2.zip
FreeBSD-src-2b36711b7857337942c3a4a579451a49491e3db2.tar.gz
Start to allow platforms other than U-Boot to use the FDT code in loader by
moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This needs to be a new library for linking to work correctly. Differential Revision: https://reviews.freebsd.org/D1054 Reviewed by: ian, rpaulo (earlier version) MFC after: 1 week
Diffstat (limited to 'sys/boot/uboot/Makefile')
-rw-r--r--sys/boot/uboot/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/boot/uboot/Makefile b/sys/boot/uboot/Makefile
index 1116ee6..43b5748 100644
--- a/sys/boot/uboot/Makefile
+++ b/sys/boot/uboot/Makefile
@@ -1,5 +1,11 @@
# $FreeBSD$
+.include <src.opts.mk>
+
SUBDIR= lib
+.if ${MK_FDT} != "no"
+SUBDIR+=fdt
+.endif
+
.include <bsd.subdir.mk>
OpenPOWER on IntegriCloud