From owner-svn-src-head@FreeBSD.ORG Thu Jan 8 19:49:40 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DB198360; Thu, 8 Jan 2015 19:49:40 +0000 (UTC) Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A1B8FED8; Thu, 8 Jan 2015 19:49:40 +0000 (UTC) Received: by mail-ig0-f178.google.com with SMTP id b16so4642899igk.5; Thu, 08 Jan 2015 11:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=mKf4Tb3l3jlOIe3Hb8RFq8WTeci929jqL9mBO8MRBHw=; b=Gh7+7i62Np8cO5L30NV/mIZkYAMKERHa8Clmr8T+UD0KPxftFoV5hmbZeOdxMEebyG aFse6I8oJ5MTf6CUUpOfLvhEWbUOrCF/VzG/m09o5soxapxOfxr808FKTgVP0q04zqK7 sJO5GSzCRj95oYrD5jcPohqqaAFO2BFEMuxbyAyNbRwi367awjCeiBzHliT0W1UX/JsQ lzaheSIZSIIRXCT5VvjvIBpeTQQ1ZJ/5CwNSLJHqkfojTWVm9sh3XTuqSpxyinR0nitH G9YaNlbOtTRUTlEax8vpdTHsFBx9NoGqzReFWiY38OXNfWFzdECVS0I7DBGTq3Ly7l8X bAKg== MIME-Version: 1.0 X-Received: by 10.43.79.129 with SMTP id zq1mr9740918icb.28.1420746579970; Thu, 08 Jan 2015 11:49:39 -0800 (PST) Received: by 10.50.4.170 with HTTP; Thu, 8 Jan 2015 11:49:39 -0800 (PST) In-Reply-To: <201501081828.t08IS6Kf021746@svn.freebsd.org> References: <201501081828.t08IS6Kf021746@svn.freebsd.org> Date: Thu, 8 Jan 2015 11:49:39 -0800 Message-ID: Subject: Re: svn commit: r276846 - in head: share/mk sys/arm/conf sys/conf sys/modules/dtb sys/modules/dtb/atmel From: NGie Cooper To: Warner Losh Content-Type: text/plain; charset=UTF-8 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 19:49:41 -0000 On Thu, Jan 8, 2015 at 10:28 AM, Warner Losh 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 ... > +# 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?