| @@ -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 |
539 | DTSINC?=$S/external/gpl2/dts/dist/include | | 539 | DTSINC?=$S/external/gpl2/dts/dist/include |
540 | DTSPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts | | 540 | DTSPATH?=$S/external/gpl2/dts/dist/arch/${MACHINE_CPU}/boot/dts |
541 | DTSPADDING?=1024 | | 541 | DTSPADDING?=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 | |
552 | all: ${DTS:.dts=.dtb} | | 552 | DTB= ${DTS:.dts=.dtb} |
| | | 553 | all: ${DTB} |
553 | | | 554 | |
554 | # End DTS handling | | 555 | # End DTS handling |
555 | | | 556 | |
556 | ## | | 557 | ## |
557 | ## the end | | 558 | ## the end |
558 | ## | | 559 | ## |