head 1.12; access; symbols netbsd-10-0-RC6:1.12 netbsd-10-0-RC5:1.12 netbsd-10-0-RC4:1.12 netbsd-10-0-RC3:1.12 netbsd-10-0-RC2:1.12 thorpej-ifq:1.12.0.32 thorpej-ifq-base:1.12 thorpej-altq-separation:1.12.0.30 thorpej-altq-separation-base:1.12 netbsd-10-0-RC1:1.12 netbsd-10:1.12.0.28 netbsd-10-base:1.12 bouyer-sunxi-drm:1.12.0.26 bouyer-sunxi-drm-base:1.12 netbsd-9-3-RELEASE:1.12 thorpej-i2c-spi-conf2:1.12.0.24 thorpej-i2c-spi-conf2-base:1.12 thorpej-futex2:1.12.0.22 thorpej-futex2-base:1.12 thorpej-cfargs2:1.12.0.20 thorpej-cfargs2-base:1.12 cjep_sun2x-base1:1.12 cjep_sun2x:1.12.0.18 cjep_sun2x-base:1.12 cjep_staticlib_x-base1:1.12 netbsd-9-2-RELEASE:1.12 cjep_staticlib_x:1.12.0.16 cjep_staticlib_x-base:1.12 thorpej-i2c-spi-conf:1.12.0.14 thorpej-i2c-spi-conf-base:1.12 thorpej-cfargs:1.12.0.12 thorpej-cfargs-base:1.12 thorpej-futex:1.12.0.10 thorpej-futex-base:1.12 netbsd-9-1-RELEASE:1.12 bouyer-xenpvh-base2:1.12 phil-wifi-20200421:1.12 bouyer-xenpvh-base1:1.12 phil-wifi-20200411:1.12 bouyer-xenpvh:1.12.0.8 bouyer-xenpvh-base:1.12 is-mlppp:1.12.0.6 is-mlppp-base:1.12 phil-wifi-20200406:1.12 netbsd-8-2-RELEASE:1.2.4.2 ad-namecache-base3:1.12 netbsd-9-0-RELEASE:1.12 netbsd-9-0-RC2:1.12 ad-namecache-base2:1.12 ad-namecache-base1:1.12 ad-namecache:1.12.0.4 ad-namecache-base:1.12 netbsd-9-0-RC1:1.12 phil-wifi-20191119:1.12 netbsd-9:1.12.0.2 netbsd-9-base:1.12 phil-wifi-20190609:1.12 netbsd-8-1-RELEASE:1.2.4.2 netbsd-8-1-RC1:1.2.4.2 isaki-audio2:1.10.0.2 isaki-audio2-base:1.10 pgoyette-compat-merge-20190127:1.8.2.2 pgoyette-compat-20190127:1.10 pgoyette-compat-20190118:1.10 pgoyette-compat-1226:1.10 pgoyette-compat-1126:1.9 pgoyette-compat-1020:1.9 pgoyette-compat-0930:1.9 pgoyette-compat-0906:1.9 pgoyette-compat-0728:1.9 netbsd-8-0-RELEASE:1.2.4.2 phil-wifi:1.9.0.2 phil-wifi-base:1.9 pgoyette-compat-0625:1.9 netbsd-8-0-RC2:1.2.4.2 pgoyette-compat-0521:1.8 pgoyette-compat-0502:1.8 pgoyette-compat-0422:1.8 netbsd-8-0-RC1:1.2.4.2 pgoyette-compat-0415:1.8 pgoyette-compat-0407:1.8 pgoyette-compat-0330:1.8 pgoyette-compat-0322:1.8 pgoyette-compat-0315:1.8 pgoyette-compat:1.8.0.2 pgoyette-compat-base:1.8 tls-maxphys:1.3.0.2 tls-maxphys-base-20171202:1.3 matt-nb8-mediatek:1.2.4.2.0.2 matt-nb8-mediatek-base:1.2.4.2 nick-nhusb:1.2.0.6 nick-nhusb-base-20170825:1.2 netbsd-8:1.2.0.4 perseant-stdc-iso10646:1.2.0.2 perseant-stdc-iso10646-base:1.2; locks; strict; comment @# @; 1.12 date 2019.04.24.20.53.10; author christos; state Exp; branches; next 1.11; commitid nTFhaYWygSGI1EkB; 1.11 date 2019.04.23.13.36.42; author christos; state Exp; branches; next 1.10; commitid DPP4uYL4EJREDtkB; 1.10 date 2018.12.17.04.37.15; author thorpej; state Exp; branches; next 1.9; commitid HtnsHc4szy1cJ64B; 1.9 date 2018.05.25.19.48.12; author jakllsch; state Exp; branches 1.9.2.1; next 1.8; commitid X6gR3gYwIU3joIDA; 1.8 date 2017.12.10.14.29.47; author christos; state Exp; branches 1.8.2.1; next 1.7; commitid d9aiTEWUrGjBYliA; 1.7 date 2017.12.06.02.08.03; author christos; state Exp; branches; next 1.6; commitid WJURgp85hW6b0MhA; 1.6 date 2017.12.05.02.57.37; author christos; state Exp; branches; next 1.5; commitid Y7zKKescX4m2jEhA; 1.5 date 2017.12.03.17.07.18; author christos; state Exp; branches; next 1.4; commitid F65X6hgrdadB4thA; 1.4 date 2017.12.03.16.36.05; author christos; state Exp; branches; next 1.3; commitid lvNyeSgISfmPTshA; 1.3 date 2017.09.07.21.22.19; author jmcneill; state Exp; branches 1.3.2.1; next 1.2; commitid 9hhJDot93g8nhj6A; 1.2 date 2017.07.15.15.53.48; author christos; state Exp; branches 1.2.2.1 1.2.4.1 1.2.6.1; next 1.1; commitid RAWs12KnrY5oclZz; 1.1 date 2017.07.15.15.20.52; author christos; state Exp; branches; next ; commitid E7DbTzPDr0j51lZz; 1.9.2.1 date 2019.06.10.22.07.04; author christos; state Exp; branches; next ; commitid jtc8rnCzWiEEHGqB; 1.8.2.1 date 2018.06.25.07.25.48; author pgoyette; state Exp; branches; next 1.8.2.2; commitid 8PtAu9af7VvhiDHA; 1.8.2.2 date 2018.12.26.14.01.47; author pgoyette; state Exp; branches; next ; commitid xUhK8IAeBM1azj5B; 1.3.2.1 date 2017.09.07.21.22.19; author jdolecek; state dead; branches; next 1.3.2.2; commitid XcIYRZTAh1LmerhA; 1.3.2.2 date 2017.12.03.11.36.57; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.2.2.1 date 2017.07.15.15.53.48; author christos; state dead; branches; next 1.2.2.2; 1.2.2.2 date 2017.07.15.15.53.49; author christos; state Exp; branches; next ; 1.2.4.1 date 2017.07.15.15.53.48; author snj; state dead; branches; next 1.2.4.2; commitid yH34PAITIhTMfy0A; 1.2.4.2 date 2017.07.25.01.58.09; author snj; state Exp; branches; next ; commitid yH34PAITIhTMfy0A; 1.2.6.1 date 2017.07.15.15.53.48; author skrll; state dead; branches; next 1.2.6.2; commitid UQQpnjvcNkUZn05A; 1.2.6.2 date 2017.08.28.17.52.00; author skrll; state Exp; branches; next ; commitid UQQpnjvcNkUZn05A; desc @@ 1.12 log @change -h to -n because it is more "portable" @ text @# $NetBSD: dts.mk,v 1.11 2019/04/23 13:36:42 christos Exp $ DTSARCH?=${MACHINE_CPU} DTSGNUARCH?=${DTSARCH} DTSPADDING?=1024 .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN:: -@@mkdir -p dts .for _arch in ${DTSGNUARCH} -@@ln -snf ${S:S@@^../@@../../@@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} .endfor .endif DTSINC?=$S/external/gpl2/dts/dist/include .for _arch in ${DTSARCH} DTSDIR+=$S/arch/${_arch}/dts .endfor .for _arch in ${DTSGNUARCH} DTSDIR+=$S/external/gpl2/dts/dist/arch/${_arch}/boot/dts .for _dir in ${DTSSUBDIR} .if exists($S/external/gpl2/dts/dist/arch/${_arch}/boot/dts/${_dir}) DTSDIR+=$S/external/gpl2/dts/dist/arch/${_arch}/boot/dts/${_dir} .endif .endfor .endfor DTSPATH=${DTSINC} ${DTSDIR} ${DTS_OVERLAYDIR} dts .SUFFIXES: .dtd .dtdo .dtb .dtbo .dts .dts.dtd: (${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 | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} .dts.dtdo: (${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} ${DTSPATH:@@v@@-i ${v}@@} -I dts -O dtb \ -@@ -o /dev/null -d /dev/stdout | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtdo=.dtbo}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtdo=.dtbo}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} .dts.dtb: ${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} .dts.dtbo: ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} ${DTSPATH:@@v@@-i ${v}@@} -I dts -O dtb \ -@@ -o ${.TARGET} .PATH.dts: ${DTSDIR} ${DTS_OVERLAYDIR} DEPS+= ${DTS:.dts=.dtd} DEPS+= ${DTS_OVERLAYS:.dts=.dtdo} DTB= ${DTS:.dts=.dtb} DTBO= ${DTS_OVERLAYS:.dts=.dtbo} all: ${DTB} ${DTBO} @ 1.11 log @Add -h to the link command so that we replace the target file each time; this should fix: *** Failed target: .BEGIN *** Failed command: ln -sf /usr/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts dts/arm *** Error code 1 (ignored) ln: dts/arm/dts: Permission denied @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.10 2018/12/17 04:37:15 thorpej Exp $ d11 1 a11 1 -@@ln -shf ${S:S@@^../@@../../@@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} @ 1.10 log @Add support for building overlay DT blobs specified in the kernel config file like so: makeoptions DTS_OVERLAYDIR="${THISARM}/conf" makeoptions DTS_OVERLAYS=" my-cool-overlay.dts " The result is my-cool-overlay.dtbo in the kernel compile directory. @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.9 2018/05/25 19:48:12 jakllsch Exp $ d11 1 a11 1 -@@ln -sf ${S:S@@^../@@../../@@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} @ 1.9 log @Compile dtbs with -@@ so that fdtoverlay(1) et.al. can symbolically reference phandles. @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.8 2017/12/10 14:29:47 christos Exp $ d28 1 a28 1 DTSPATH=${DTSINC} ${DTSDIR} dts d30 1 a30 1 .SUFFIXES: .dtd .dtb .dts d44 11 d62 7 a68 1 .PATH.dts: ${DTSDIR} d71 3 a73 1 DTB= ${DTS:.dts=.dtb} d75 1 a75 1 all: ${DTB} @ 1.9.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.12 2019/04/24 20:53:10 christos Exp $ d11 1 a11 1 -@@ln -snf ${S:S@@^../@@../../@@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} d28 1 a28 1 DTSPATH=${DTSINC} ${DTSDIR} ${DTS_OVERLAYDIR} dts d30 1 a30 1 .SUFFIXES: .dtd .dtdo .dtb .dtbo .dts a43 11 .dts.dtdo: (${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} ${DTSPATH:@@v@@-i ${v}@@} -I dts -O dtb \ -@@ -o /dev/null -d /dev/stdout | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtdo=.dtbo}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtdo=.dtbo}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} d51 1 a51 7 .dts.dtbo: ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} ${DTSPATH:@@v@@-i ${v}@@} -I dts -O dtb \ -@@ -o ${.TARGET} .PATH.dts: ${DTSDIR} ${DTS_OVERLAYDIR} d54 1 a54 3 DEPS+= ${DTS_OVERLAYS:.dts=.dtdo} DTB= ${DTS:.dts=.dtb} DTBO= ${DTS_OVERLAYS:.dts=.dtbo} d56 1 a56 1 all: ${DTB} ${DTBO} @ 1.8 log @- Allow multiple .BEGIN targets - Make their protection consistent @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.7 2017/12/06 02:08:03 christos Exp $ d36 1 a36 1 -p ${DTSPADDING} -b 0 -o /dev/null -d /dev/stdout | \ d49 1 a49 1 -p ${DTSPADDING} -b 0 -o ${.TARGET} @ 1.8.2.1 log @Sync with HEAD @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.9 2018/05/25 19:48:12 jakllsch Exp $ d36 1 a36 1 -p ${DTSPADDING} -b 0 -@@ -o /dev/null -d /dev/stdout | \ d49 1 a49 1 -p ${DTSPADDING} -b 0 -@@ -o ${.TARGET} @ 1.8.2.2 log @Sync with HEAD, resolve a few conflicts @ text @d1 1 a1 1 # $NetBSD$ d28 1 a28 1 DTSPATH=${DTSINC} ${DTSDIR} ${DTS_OVERLAYDIR} dts d30 1 a30 1 .SUFFIXES: .dtd .dtdo .dtb .dtbo .dts a43 11 .dts.dtdo: (${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} ${DTSPATH:@@v@@-i ${v}@@} -I dts -O dtb \ -@@ -o /dev/null -d /dev/stdout | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtdo=.dtbo}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtdo=.dtbo}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} d51 1 a51 7 .dts.dtbo: ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} ${DTSPATH:@@v@@-i ${v}@@} -I dts -O dtb \ -@@ -o ${.TARGET} .PATH.dts: ${DTSDIR} ${DTS_OVERLAYDIR} d54 1 a54 3 DEPS+= ${DTS_OVERLAYS:.dts=.dtdo} DTB= ${DTS:.dts=.dtb} DTBO= ${DTS_OVERLAYS:.dts=.dtbo} d56 1 a56 1 all: ${DTB} ${DTBO} @ 1.7 log @use -@@ like bsd.klinks.mk @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.6 2017/12/05 02:57:37 christos Exp $ d8 1 a8 1 .BEGIN: @ 1.6 log @Use similar restrictions to bsd.klinks.mk for .BEGIN rules. @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.5 2017/12/03 17:07:18 christos Exp $ d9 1 a9 1 @@mkdir -p dts d11 1 a11 1 @@ln -sf ${S:S@@^../@@../../@@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} @ 1.5 log @handle absolute $S paths; we want to add ../ if they are relative only. @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.4 2017/12/03 16:36:05 christos Exp $ d7 1 d13 1 @ 1.4 log @Add more complexity because of the path mess in the dts files. Requested by jmcneill@@ @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.3 2017/09/07 21:22:19 jmcneill Exp $ d10 1 a10 1 @@ln -sf ../$S/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} @ 1.3 log @Add support for building dts files from multiple paths, idea from christos @ text @d1 1 a1 1 # $NetBSD: dts.mk,v 1.2 2017/07/15 15:53:48 christos Exp $ d7 6 d26 1 a26 1 DTSPATH=${DTSINC} ${DTSDIR} @ 1.3.2.1 log @file dts.mk was added on branch tls-maxphys on 2017-12-03 11:36:57 +0000 @ text @d1 48 @ 1.3.2.2 log @update from HEAD @ text @a0 48 # $NetBSD$ DTSARCH?=${MACHINE_CPU} DTSGNUARCH?=${DTSARCH} DTSPADDING?=1024 DTSINC?=$S/external/gpl2/dts/dist/include .for _arch in ${DTSARCH} DTSDIR+=$S/arch/${_arch}/dts .endfor .for _arch in ${DTSGNUARCH} DTSDIR+=$S/external/gpl2/dts/dist/arch/${_arch}/boot/dts .for _dir in ${DTSSUBDIR} .if exists($S/external/gpl2/dts/dist/arch/${_arch}/boot/dts/${_dir}) DTSDIR+=$S/external/gpl2/dts/dist/arch/${_arch}/boot/dts/${_dir} .endif .endfor .endfor DTSPATH=${DTSINC} ${DTSDIR} .SUFFIXES: .dtd .dtb .dts .dts.dtd: (${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 | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp ${DTSPATH:@@v@@-I ${v}@@} \ -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} .dts.dtb: ${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} .PATH.dts: ${DTSDIR} DEPS+= ${DTS:.dts=.dtd} DTB= ${DTS:.dts=.dtb} all: ${DTB} @ 1.2 log @do dts depend processing in two passes, one for /include/ and one for #include @ text @d1 5 a5 1 # $NetBSD: dts.mk,v 1.1 2017/07/15 15:20:52 christos Exp $ d8 13 a20 3 DTSGNUPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts DTSPATH?=$S/arch/${MACHINE_CPU}/dts DTSPADDING?=1024 d25 3 a27 3 (${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ d31 2 a32 2 ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} -M /dev/null | \ d38 3 a40 3 ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ d43 1 a43 1 .PATH.dts: ${DTSPATH} ${DTSGNUPATH} @ 1.2.6.1 log @file dts.mk was added on branch nick-nhusb on 2017-08-28 17:52:00 +0000 @ text @d1 34 @ 1.2.6.2 log @Sync with HEAD @ text @a0 34 # $NetBSD: dts.mk,v 1.2 2017/07/15 15:53:48 christos Exp $ DTSINC?=$S/external/gpl2/dts/dist/include DTSGNUPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts DTSPATH?=$S/arch/${MACHINE_CPU}/dts DTSPADDING?=1024 .SUFFIXES: .dtd .dtb .dts .dts.dtd: (${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ -p ${DTSPADDING} -b 0 -o /dev/null -d /dev/stdout | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} .dts.dtb: ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ -p ${DTSPADDING} -b 0 -o ${.TARGET} .PATH.dts: ${DTSPATH} ${DTSGNUPATH} DEPS+= ${DTS:.dts=.dtd} DTB= ${DTS:.dts=.dtb} all: ${DTB} @ 1.2.2.1 log @file dts.mk was added on branch perseant-stdc-iso10646 on 2017-07-15 15:53:49 +0000 @ text @d1 34 @ 1.2.2.2 log @2814962 @ text @a0 34 # $NetBSD: dts.mk,v 1.2 2017/07/15 15:53:48 christos Exp $ DTSINC?=$S/external/gpl2/dts/dist/include DTSGNUPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts DTSPATH?=$S/arch/${MACHINE_CPU}/dts DTSPADDING?=1024 .SUFFIXES: .dtd .dtb .dts .dts.dtd: (${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ -p ${DTSPADDING} -b 0 -o /dev/null -d /dev/stdout | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} .dts.dtb: ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ -p ${DTSPADDING} -b 0 -o ${.TARGET} .PATH.dts: ${DTSPATH} ${DTSGNUPATH} DEPS+= ${DTS:.dts=.dtd} DTB= ${DTS:.dts=.dtb} all: ${DTB} @ 1.2.4.1 log @file dts.mk was added on branch netbsd-8 on 2017-07-25 01:58:09 +0000 @ text @d1 34 @ 1.2.4.2 log @Pull up following revision(s) (requested by jmcneill in ticket #141): sys/conf/dts.mk: 1.1-1.2 sys/conf/Makefile.kern.inc: revision 1.260 Move the dts rule to a separate file and add dependencies handling. -- do dts depend processing in two passes, one for /include/ and one for #include @ text @a0 34 # $NetBSD: dts.mk,v 1.1 2017/07/15 15:20:52 christos Exp $ DTSINC?=$S/external/gpl2/dts/dist/include DTSGNUPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts DTSPATH?=$S/arch/${MACHINE_CPU}/dts DTSPADDING?=1024 .SUFFIXES: .dtd .dtb .dts .dts.dtd: (${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ -p ${DTSPADDING} -b 0 -o /dev/null -d /dev/stdout | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@@@${.IMPSRC}@@' && \ ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} -M /dev/null | \ ${TOOL_SED} -e 's@@null.o@@${.TARGET:.dtd=.dtb}@@' \ -e 's@@/dev/null@@@@') > ${.TARGET} .dts.dtb: ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ -I ${DTSGNUPATH} -include ${.IMPSRC} /dev/null | \ ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -i ${DTSGNUPATH} -I dts -O dtb \ -p ${DTSPADDING} -b 0 -o ${.TARGET} .PATH.dts: ${DTSPATH} ${DTSGNUPATH} DEPS+= ${DTS:.dts=.dtd} DTB= ${DTS:.dts=.dtb} all: ${DTB} @ 1.1 log @Move the dts rule to a separate file and add dependencies handling. @ text @d1 1 a1 1 # $NetBSD$ d11 2 d14 8 a21 2 -p ${DTSPADDING} -b 0 -o /dev/null -d /dev/stdout ${.IMPSRC} | \ ${TOOL_SED} -e 's@@/dev/null@@${.TARGET:.dtd=.dtb}@@' > ${.TARGET} @