Compile dtbs with -@ so that fdtoverlay(1) et.al. can symbolically

reference phandles.
This commit is contained in:
jakllsch 2018-05-25 19:48:12 +00:00
parent 14167a96a3
commit 2aa8255a0f
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: dts.mk,v 1.8 2017/12/10 14:29:47 christos Exp $
# $NetBSD: dts.mk,v 1.9 2018/05/25 19:48:12 jakllsch Exp $
DTSARCH?=${MACHINE_CPU}
DTSGNUARCH?=${DTSARCH}
@ -33,7 +33,7 @@ DTSPATH=${DTSINC} ${DTSDIR} dts
(${CPP} -P -xassembler-with-cpp ${DTSPATH:@v@-I ${v}@} \
-include ${.IMPSRC} /dev/null | \
${TOOL_DTC} ${DTSPATH:@v@-i ${v}@} -I dts -O dtb \
-p ${DTSPADDING} -b 0 -o /dev/null -d /dev/stdout | \
-p ${DTSPADDING} -b 0 -@ -o /dev/null -d /dev/stdout | \
${TOOL_SED} -e 's@/dev/null@${.TARGET:.dtd=.dtb}@' \
-e 's@<stdin>@${.IMPSRC}@' && \
${CPP} -P -xassembler-with-cpp ${DTSPATH:@v@-I ${v}@} \
@ -46,7 +46,7 @@ DTSPATH=${DTSINC} ${DTSDIR} dts
${CPP} -P -xassembler-with-cpp ${DTSPATH:@v@-I ${v}@} \
-include ${.IMPSRC} /dev/null | \
${TOOL_DTC} ${DTSPATH:@v@-i ${v}@} -I dts -O dtb \
-p ${DTSPADDING} -b 0 -o ${.TARGET}
-p ${DTSPADDING} -b 0 -@ -o ${.TARGET}
.PATH.dts: ${DTSDIR}