Use similar restrictions to bsd.klinks.mk for .BEGIN rules.

This commit is contained in:
christos 2017-12-05 02:57:37 +00:00
parent a05a46f69b
commit 604ff9ba7a
1 changed files with 3 additions and 1 deletions

View File

@ -1,14 +1,16 @@
# $NetBSD: dts.mk,v 1.5 2017/12/03 17:07:18 christos Exp $ # $NetBSD: dts.mk,v 1.6 2017/12/05 02:57:37 christos Exp $
DTSARCH?=${MACHINE_CPU} DTSARCH?=${MACHINE_CPU}
DTSGNUARCH?=${DTSARCH} DTSGNUARCH?=${DTSARCH}
DTSPADDING?=1024 DTSPADDING?=1024
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN: .BEGIN:
@mkdir -p dts @mkdir -p dts
.for _arch in ${DTSGNUARCH} .for _arch in ${DTSGNUARCH}
@ln -sf ${S:S@^../@../../@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch} @ln -sf ${S:S@^../@../../@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch}
.endfor .endfor
.endif
DTSINC?=$S/external/gpl2/dts/dist/include DTSINC?=$S/external/gpl2/dts/dist/include
.for _arch in ${DTSARCH} .for _arch in ${DTSARCH}