PERFORCE change 173046 for review
Rafal Jaworowski
raj at FreeBSD.org
Tue Jan 12 22:16:03 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=173046
Change 173046 by raj at raj_fdt on 2010/01/12 22:15:44
Enable FDT support for ARM loader(8).
We are now able to load, read and modify the device tree blob in
FreeBSD loader(8) on ARM (Marvell).
Affected files ...
.. //depot/projects/fdt/sys/boot/arm/uboot/Makefile#2 edit
Differences ...
==== //depot/projects/fdt/sys/boot/arm/uboot/Makefile#2 (text+ko) ====
@@ -18,6 +18,7 @@
LOADER_TFTP_SUPPORT?= no
LOADER_GZIP_SUPPORT?= no
LOADER_BZIP2_SUPPORT?= no
+LOADER_FDT_SUPPORT?= yes
.if ${LOADER_DISK_SUPPORT} == "yes"
CFLAGS+= -DLOADER_DISK_SUPPORT
@@ -46,6 +47,9 @@
.if ${LOADER_TFTP_SUPPORT} == "yes"
CFLAGS+= -DLOADER_TFTP_SUPPORT
.endif
+.if ${LOADER_FDT_SUPPORT} == "yes"
+CFLAGS+= -DLOADER_FDT_SUPPORT
+.endif
.if !defined(NO_FORTH)
# Enable BootForth
@@ -60,6 +64,11 @@
CFLAGS+= -I${.CURDIR}/../../common
CFLAGS+= -I.
+# FDT support library
+LIBFDT= ${.OBJDIR}/../../fdt/libfdt.a
+CFLAGS+= -I${.CURDIR}/../../fdt
+CFLAGS+= -I${.OBJDIR}/../../fdt
+
CLEANFILES+= vers.c loader.help
CFLAGS+= -ffreestanding
@@ -79,8 +88,8 @@
# where to get libstand from
CFLAGS+= -I${.CURDIR}/../../../../lib/libstand/
-DPADD= ${LIBFICL} ${LIBUBOOT} ${LIBSTAND}
-LDADD= ${LIBFICL} ${LIBUBOOT} -lstand
+DPADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} ${LIBSTAND}
+LDADD= ${LIBFICL} ${LIBUBOOT} ${LIBFDT} -lstand
vers.c: ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version
sh ${.CURDIR}/../../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT}
More information about the p4-projects
mailing list