From 9f4a94f1524dd2ff3ccca66ea21ecd906b0eff91 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Tue, 19 Jun 2012 16:46:26 -0500
Subject: [PATCH] add dtc requirements

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 tools/host_det.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tools/host_det.sh b/tools/host_det.sh
index 0dfa99a84..2e7fdb66b 100755
--- a/tools/host_det.sh
+++ b/tools/host_det.sh
@@ -116,6 +116,13 @@ if [ ! $(which ccache) ];then
  APT=1
 fi
 
+if [ ! $(which dtc) ];then
+ echo "Missing device-tree-compiler"
+ UPACKAGE+="device-tree-compiler "
+ DPACKAGE+="device-tree-compiler "
+ APT=1
+fi
+
 #Note: Without dpkg-dev from build-essential, this can be a false positive
 MULTIARCHLIB="/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null`"
 
-- 
GitLab