Sat Jun 17 17:08:49 2017 UTC ()
Assign DTB files to a variable so we can make -V DTB


(christos)
diff -r1.257 -r1.258 src/sys/conf/Makefile.kern.inc

cvs diff -r1.257 -r1.258 src/sys/conf/Makefile.kern.inc (expand / switch to unified diff)

--- src/sys/conf/Makefile.kern.inc 2017/06/15 21:41:01 1.257
+++ src/sys/conf/Makefile.kern.inc 2017/06/17 17:08:49 1.258
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.kern.inc,v 1.257 2017/06/15 21:41:01 jmcneill Exp $ 1# $NetBSD: Makefile.kern.inc,v 1.258 2017/06/17 17:08:49 christos Exp $
2# 2#
3# This file contains common `MI' targets and definitions and it is included 3# This file contains common `MI' targets and definitions and it is included
4# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}. 4# at the bottom of each `MD' ${MACHINE}/conf/Makefile.${MACHINE}.
5# 5#
6# Each target in this file should be protected with `if !target(target)' 6# Each target in this file should be protected with `if !target(target)'
7# or `if !commands(target)' and each variable should only be conditionally 7# or `if !commands(target)' and each variable should only be conditionally
8# assigned `VAR ?= VALUE', so that everything can be overriden. 8# assigned `VAR ?= VALUE', so that everything can be overriden.
9# 9#
10# DEBUG is set to -g if debugging. 10# DEBUG is set to -g if debugging.
11# PROF is set to -pg if profiling. 11# PROF is set to -pg if profiling.
12# 12#
13# To specify debugging, add the config line: makeoptions DEBUG="-g" 13# To specify debugging, add the config line: makeoptions DEBUG="-g"
14# A better way is to specify -g only for a few files. 14# A better way is to specify -g only for a few files.
@@ -539,20 +539,21 @@ build_kernel: .USE @@ -539,20 +539,21 @@ build_kernel: .USE
539DTSINC?=$S/external/gpl2/dts/dist/include 539DTSINC?=$S/external/gpl2/dts/dist/include
540DTSPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts 540DTSPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts
541DTSPADDING?=1024 541DTSPADDING?=1024
542 542
543.SUFFIXES: .dtb .dts 543.SUFFIXES: .dtb .dts
544.dts.dtb: 544.dts.dtb:
545 ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \ 545 ${CPP} -P -xassembler-with-cpp -I ${DTSINC} -I ${DTSPATH} \
546 -include ${.IMPSRC} /dev/null | \ 546 -include ${.IMPSRC} /dev/null | \
547 ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -I dts -O dtb \ 547 ${TOOL_DTC} -i ${DTSINC} -i ${DTSPATH} -I dts -O dtb \
548 -p ${DTSPADDING} -b 0 -o ${.TARGET} 548 -p ${DTSPADDING} -b 0 -o ${.TARGET}
549 549
550.PATH.dts: ${DTSPATH} 550.PATH.dts: ${DTSPATH}
551 551
552all: ${DTS:.dts=.dtb} 552DTB= ${DTS:.dts=.dtb}
 553all: ${DTB}
553 554
554# End DTS handling 555# End DTS handling
555 556
556## 557##
557## the end 558## the end
558## 559##