From: Brendan Cully Subject: [PATCH] Fix build when bcc is not installed Date: Fri, 16 Mar 2007 14:23:33 -0700 Message-ID: <0712e96990851f278a2a.1174080213@ventoux.cs.ubc.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Brendan Cully # Date 1174080142 25200 # Node ID 0712e96990851f278a2a27ef7f15b09bbff050c5 # Parent b6272addce8cd744e31a666672fa38bf5b27ffb3 Fix build when bcc is not installed diff -r b6272addce8c -r 0712e9699085 tools/firmware/Makefile --- a/tools/firmware/Makefile Fri Mar 16 13:57:41 2007 -0700 +++ b/tools/firmware/Makefile Fri Mar 16 14:22:22 2007 -0700 @@ -14,7 +14,7 @@ SUBDIRS += hvmloader .PHONY: all all: - @set -e; if [ $$((`bcc -v 2>&1 | grep version | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ + @set -e; if [ $$((`( bcc -v 2>&1 | grep version || echo 0.0.0 ) | cut -d' ' -f 3 | awk -F. '{ printf "0x%02x%02x%02x", $$1, $$2, $$3}'`)) -lt $$((0x00100e)) ] ; then \ echo "***********************************************************"; \ echo "Require dev86 package version >= 0.16.14 to build firmware!"; \ echo "(visit http://www.cix.co.uk/~mayday for more information)"; \