Deleted Added
full compact
2c2
< # $FreeBSD: head/Makefile.inc1 208964 2010-06-09 19:57:20Z rdivacky $
---
> # $FreeBSD: head/Makefile.inc1 209128 2010-06-13 13:02:43Z raj $
970a971,974
> .if ${MK_FDT} != "no"
> _dtc= gnu/usr.bin/dtc
> .endif
>
978a983
> ${_dtc} \
1450a1456,1491
>
> .if !empty(KRNLOBJDIR) && !empty(KERNCONF)
> DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/
>
> .if !defined(FDT_DTS_FILE) || empty(FDT_DTS_FILE)
> FDT_DTS_FILE!= grep "^makeoptions[[:space:]]\+FDT_DTS_FILE" \
> ${KERNCONFDIR}/${KERNCONF} 2> /dev/null | cut -d= -f2
> .endif
>
> .endif
>
> .if !defined(DTBOUTPUTPATH) || !exists(${DTBOUTPUTPATH})
> DTBOUTPUTPATH= ${.CURDIR}
> .endif
>
> #
> # Build 'standalone' Device Tree Blob
> #
> builddtb:
> @if [ "${FDT_DTS_FILE}" = "" ]; then \
> echo "ERROR: FDT_DTS_FILE must be specified!"; \
> exit 1; \
> fi; \
> if [ ! -f ${.CURDIR}/sys/boot/fdt/dts/${FDT_DTS_FILE} ]; then \
> echo "ERROR: Specified DTS file (${FDT_DTS_FILE}) does not \
> exist!"; \
> exit 1; \
> fi; \
> if [ "${DTBOUTPUTPATH}" = "${.CURDIR}" ]; then \
> echo "WARNING: DTB will be placed in the current working \
> directory"; \
> fi
> @PATH=${TMPPATH} \
> dtc -O dtb -o \
> ${DTBOUTPUTPATH}/`echo ${FDT_DTS_FILE} | cut -d. -f1`.dtb -b 0 \
> -p 1024 ${.CURDIR}/sys/boot/fdt/dts/${FDT_DTS_FILE}