Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2014 22:39:16 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270863 - head/sys/tools/fdt
Message-ID:  <201408302239.s7UMdGP2044268@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sat Aug 30 22:39:15 2014
New Revision: 270863
URL: http://svnweb.freebsd.org/changeset/base/270863

Log:
  Allow the make_dtb script to work outside of a "make buildkernel" context
  by setting MACHINE from uname -m if it's not set already.
  
  Reviewed by:	imp, tuexen

Modified:
  head/sys/tools/fdt/make_dtb.sh

Modified: head/sys/tools/fdt/make_dtb.sh
==============================================================================
--- head/sys/tools/fdt/make_dtb.sh	Sat Aug 30 22:21:57 2014	(r270862)
+++ head/sys/tools/fdt/make_dtb.sh	Sat Aug 30 22:39:15 2014	(r270863)
@@ -12,6 +12,10 @@ if [ -z "$dts" ]; then
     exit 1
 fi
 
+if [ -z "${MACHINE}" ]; then
+    MACHINE=$(uname -m)
+fi
+
 for d in ${dts}; do
     dtb=${dtb_path}/`basename $d .dts`.dtb
     echo "converting $d -> $dtb"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408302239.s7UMdGP2044268>