1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Fix test-dts{,o} targets

There were two main problems here:

1.) sys/dts/Makefile.inc is not included from various */overlays directories
    by default, only ../Makefile.inc
2.) When shelling out for DTS/DTSO, cwd != .CURDIR, so enumeration always
    failed

These changes allow make test-dts and make test-dtso to function in their
respective directories.

Reviewed by:	manu
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D17961
This commit is contained in:
Kyle Evans 2018-11-12 22:18:11 +00:00
parent af14df7703
commit 851f1a1121
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=340390
9 changed files with 13 additions and 7 deletions

View File

@ -5,9 +5,9 @@ SYSDIR?=${SRCTOP}/sys
test-dts:
.for dts in ${DTS}
@env MACHINE=`basename ${.CURDIR}` ${SYSDIR}/tools/fdt/make_dtb.sh ${SYSDIR} ${dts} /tmp
.endfor
test-dtso:
.for dtso in ${DTSO}
@env MACHINE=`basename ${.CURDIR}` ${SYSDIR}/tools/fdt/make_dtbo.sh ${SYSDIR} ${dtso} /tmp
.endfor

View File

@ -1,6 +1,6 @@
# $FreeBSD$
DTS!=ls *.dts
DTS!=ls ${.CURDIR}/*.dts
all: test-dts

3
sys/dts/arm/Makefile.inc Normal file
View File

@ -0,0 +1,3 @@
# $FreeBSD$
.include "../Makefile.inc"

View File

@ -1,6 +1,6 @@
# $FreeBSD$
DTSO!=ls *.dtso
DTSO!=ls ${.CURDIR}/*.dtso
all: test-dtso

View File

@ -1,6 +1,6 @@
# $FreeBSD$
DTS!=ls *.dts
DTS!=ls ${.CURDIR}/*.dts
all: test-dts

View File

@ -0,0 +1,3 @@
# $FreeBSD$
.include "../Makefile.inc"

View File

@ -1,6 +1,6 @@
# $FreeBSD$
DTSO!=ls *.dtso
DTSO!=ls ${.CURDIR}/*.dtso
all: test-dtso

View File

@ -1,6 +1,6 @@
# $FreeBSD$
DTS!=ls *.dts
DTS!=ls ${.CURDIR}/*.dts
all: test-dts

View File

@ -1,6 +1,6 @@
# $FreeBSD$
DTS!=ls *.dts
DTS!=ls ${.CURDIR}/*.dts
all: test-dts