diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-08 11:39:13 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-08 11:39:13 +0000 |
commit | 44eab34cc4a7b5e7de50697139255e8587101b32 (patch) | |
tree | 1bdda6f5cf2c2d4ab4bf02e6d64fa4652ceb1fc1 /tools/firmware/Makefile | |
parent | bf3d595a7cec3867897466b940e74352d0486714 (diff) | |
download | xen-44eab34cc4a7b5e7de50697139255e8587101b32.tar.gz xen-44eab34cc4a7b5e7de50697139255e8587101b32.tar.bz2 xen-44eab34cc4a7b5e7de50697139255e8587101b32.zip |
bitkeeper revision 1.1691.1.7 (42a6d8e19C3UPsmlA3u--9L4iY559Q)
Integrate virtual firmware into the tools build system.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/firmware/Makefile')
-rw-r--r-- | tools/firmware/Makefile | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/tools/firmware/Makefile b/tools/firmware/Makefile index b80cac27fc..2c92fbe272 100644 --- a/tools/firmware/Makefile +++ b/tools/firmware/Makefile @@ -1,6 +1,9 @@ XEN_ROOT = ../.. include $(XEN_ROOT)/tools/Rules.mk +TARGET := vmxassist/vmxloader +INSTALL_DIR := $(DESTDIR)/usr/share/xen + SUBDIRS := SUBDIRS += rombios SUBDIRS += vgabios @@ -8,18 +11,24 @@ SUBDIRS += vmxassist .PHONY: all install clean -all: - @set -e; for subdir in $(SUBDIRS); do \ +all: + @set -e; if ! `which bcc 1>/dev/null 2>/dev/null`; then \ + echo "***********************************************************"; \ + echo "WARNING: Install dev86 package to build firmware!"; \ + echo " (http://www.cix.co.uk/~mayday)"; \ + echo "***********************************************************"; \ + else \ + for subdir in $(SUBDIRS); do \ $(MAKE) -C $$subdir $@; \ - done + done; \ + fi -install: - @set -e; for subdir in $(SUBDIRS); do \ - $(MAKE) -C $$subdir $@; \ - done + +install: all + [ -d $(INSTALL_DIR) ] || install -d -m0755 $(INSTALL_DIR) + [ ! -e $(TARGET) ] || install -m0644 $(TARGET) $(INSTALL_DIR) clean: @set -e; for subdir in $(SUBDIRS); do \ $(MAKE) -C $$subdir $@; \ done - |