ia64/xen-unstable

view tools/firmware/Makefile @ 19813:b55070edb185

tools: don't require hardcoded firmware path in guest config file

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 23 11:23:27 2009 +0100 (2009-06-23)
parents 633e08774dab
children
line source
1 XEN_ROOT = ../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 # hvmloader is a 32-bit protected mode binary.
5 TARGET := hvmloader/hvmloader
6 INST_DIR := $(DESTDIR)$(XENFIRMWAREDIR)
8 SUBDIRS :=
9 SUBDIRS += rombios
10 SUBDIRS += vgabios
11 #SUBDIRS += etherboot
12 SUBDIRS += hvmloader
14 .PHONY: all
15 all:
16 @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 \
17 echo "==========================================================================="; \
18 echo "Require dev86 rpm or bin86 & bcc debs version >= 0.16.14 to build firmware!"; \
19 echo "(visit http://www.debath.co.uk/dev86/ for more information)"; \
20 echo "==========================================================================="; \
21 false ; \
22 fi
23 $(MAKE) subdirs-$@; \
26 .PHONY: install
27 install: all
28 [ -d $(INST_DIR) ] || $(INSTALL_DIR) $(INST_DIR)
29 [ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR)
31 .PHONY: clean
32 clean: subdirs-clean