Date: Tue, 12 Jan 2010 22:16:02 GMT From: Rafal Jaworowski <raj@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 173046 for review Message-ID: <201001122216.o0CMG2IV036356@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/chv.cgi?CH=173046 Change 173046 by raj@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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001122216.o0CMG2IV036356>