From owner-svn-src-all@FreeBSD.ORG Wed Apr 30 20:47:41 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 14FBD3B2; Wed, 30 Apr 2014 20:47:41 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 030B91526; Wed, 30 Apr 2014 20:47:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3UKleRS043474; Wed, 30 Apr 2014 20:47:40 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3UKlevx043472; Wed, 30 Apr 2014 20:47:40 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <201404302047.s3UKlevx043472@svn.freebsd.org> From: Warner Losh Date: Wed, 30 Apr 2014 20:47:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r265162 - in head: . sys/tools/fdt X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 20:47:41 -0000 Author: imp Date: Wed Apr 30 20:47:40 2014 New Revision: 265162 URL: http://svnweb.freebsd.org/changeset/base/265162 Log: Turns out this .if evaluated not in the context of the makedtb target sometimes due to Makefile expansion rules. Make the test for things being NULL elsewhere... Modified: head/Makefile.inc1 head/sys/tools/fdt/make_dtb.sh (contents, props changed) Modified: head/Makefile.inc1 ============================================================================== --- head/Makefile.inc1 Wed Apr 30 20:46:52 2014 (r265161) +++ head/Makefile.inc1 Wed Apr 30 20:47:40 2014 (r265162) @@ -1830,9 +1830,6 @@ DTBOUTPUTPATH= ${.CURDIR} # Build 'standalone' Device Tree Blob # builddtb: -.if !defined(FDT_DTS_FILE) -.error "FDT_DTS_FILE must be specified!" -.endif @PATH=${TMPPATH} MACHINE=${TARGET} \ ${.CURDIR}/sys/tools/fdt/make_dtb.sh ${.CURDIR}/sys \ "${FDT_DTS_FILE}" ${DTBOUTPUTPATH} Modified: head/sys/tools/fdt/make_dtb.sh ============================================================================== --- head/sys/tools/fdt/make_dtb.sh Wed Apr 30 20:46:52 2014 (r265161) +++ head/sys/tools/fdt/make_dtb.sh Wed Apr 30 20:47:40 2014 (r265162) @@ -7,6 +7,11 @@ S=$1 dts="$2" dtb_path=$3 +if [ -n "$dts" ]; then + echo "No DTS specified" + exit 1 +fi + for d in ${dts}; do dtb=${dtb_path}/`basename $d .dts`.dtb echo "converting $d -> $dtb"