svn commit: r276846 - in head: share/mk sys/arm/conf sys/conf sys/modules/dtb sys/modules/dtb/atmel

Warner Losh imp at bsdimp.com
Thu Jan 8 23:36:47 UTC 2015


> On Jan 8, 2015, at 12:49 PM, NGie Cooper <yaneurabeya at gmail.com> wrote:
> 
> On Thu, Jan 8, 2015 at 10:28 AM, Warner Losh <imp at freebsd.org> wrote:
>> Author: imp
>> Date: Thu Jan  8 18:28:06 2015
>> New Revision: 276846
>> URL: https://svnweb.freebsd.org/changeset/base/276846
>> 
>> Log:
>>  Add infrastructure to build dtb files from dts files.
> 
> ...
> 
>> Added: head/share/mk/bsd.dtb.mk
>> ==============================================================================
>> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
>> +++ head/share/mk/bsd.dtb.mk    Thu Jan  8 18:28:06 2015        (r276846)
>> @@ -0,0 +1,17 @@
>> +# $FreeBSD$
>> +
>> +# Search for kernel source tree in standard places.
>> +.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. ${.CURDIR}/../../../.. \
>> +    ${.CURDIR}/../../../../.. /sys /usr/src/sys
>> +.if !defined(SYSDIR) && exists(${_dir}/kern/) && exists(${_dir}/conf/kmod.mk)
>> +SYSDIR=        ${_dir}
>> +.endif
>> +.endfor
>> +.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/) || \
>> +    !exists(${SYSDIR}/conf/kmod.mk)
>> +.error Unable to locate the kernel source tree. Set SYSDIR to override.
>> +.endif
>> +
>> +.include "${SYSDIR}/conf/dtb.mk"
>> +
>> +.include <bsd.sys.mk>
> 
> ...
> 
>> +# Search for kernel source tree in standard places.
>> +.for _dir in ${.CURDIR}/../.. ${.CURDIR}/../../.. /sys /usr/src/sys
>> +.if !defined(SYSDIR) && exists(${_dir}/kern/)
>> +SYSDIR=        ${_dir}
>> +.endif
>> +.endfor
>> +.if !defined(SYSDIR) || !exists(${SYSDIR}/kern/)
>> +.error "can't find kernel source tree"
>> +.endif
> 
> Why is ${SYSDIR} being checked for in bsd.dtb.mk and dtb.mk?

SYSDIR may not exist if dtb.mk was included directly.

Warner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20150108/df2de89c/attachment.sig>


More information about the svn-src-all mailing list