All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] [build system] make should fail if it cannot build hvmloader
Date: Tue, 24 Feb 2009 12:13:01 +0000	[thread overview]
Message-ID: <49A3E44D.6050508@eu.citrix.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

At the moment, if the tools required to build hvmloader are not present, make 
will continue building the rest of the system and not indicate that an error has 
occurred.

This patch causes make to stop and print a message saying that some packages are 
missing on the build machine and need to be installed.

Please consider applying the patch.

Regards,

Alex Zeffertt

[-- Attachment #2: tools-firmware-Makefile.patch --]
[-- Type: text/x-diff, Size: 1467 bytes --]

# HG changeset patch
# User Alex Zeffertt <alex.zeffertt@eu.citrix.com>
# Date 1235477069 0
# Node ID 72a8404eea4035d38129e2b2097fac5613f05f07
# Parent  32b15413749255e0cd518f25d9202759586dcb27
Make build fail if packages required to build hvmloader not present
... rather than just continuing as if nothing's gone wrong.

Also, corrected the message generated by the makefile which says what
packages are required.

Signed-off-by: Alex Zeffertt<alex.zeffertt@eu.citrix.com>

diff -r 32b154137492 -r 72a8404eea40 tools/firmware/Makefile
--- a/tools/firmware/Makefile	Thu Feb 12 10:54:17 2009 +0000
+++ b/tools/firmware/Makefile	Tue Feb 24 12:04:29 2009 +0000
@@ -15,13 +15,12 @@
 .PHONY: all
 all:
 	@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)"; \
-	echo "==========================================================="; \
-	else \
+	echo "=================================================================="; \
+	echo "Require bin86 & bcc packages version >= 0.16.14 to build firmware!"; \
+	echo "=================================================================="; \
+	false ; \
+	fi
 	$(MAKE) subdirs-$@; \
-	fi
 
 
 .PHONY: install

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2009-02-24 12:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-24 12:13 Alex Zeffertt [this message]
2009-02-24 12:18 ` [PATCH] [build system] make should fail if it cannot build hvmloader Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49A3E44D.6050508@eu.citrix.com \
    --to=alex.zeffertt@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.