ia64/xen-unstable

view tools/firmware/Makefile @ 16970:a47ac2495137

Fix hvmloader makefile dependencies, and do not recurse into
tools/firmware/etherboot by default (the dependency of eb_roms.h on
Config does not seem to always prevent the build from going ahead, for
some reason).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat Feb 02 13:40:43 2008 +0000 (2008-02-02)
parents 5c30a9dec02d
children 9d0e86d8c1d1
line source
1 XEN_ROOT = ../..
2 include $(XEN_ROOT)/tools/Rules.mk
4 # hvmloader is a 32-bit protected mode binary.
5 # It belongs in /usr/lib, not /usr/lib64.
6 TARGET := hvmloader/hvmloader
7 INST_DIR := $(DESTDIR)/usr/lib/xen/boot
9 SUBDIRS :=
10 SUBDIRS += rombios rombios/32bit
11 SUBDIRS += vgabios
12 SUBDIRS += vmxassist
13 SUBDIRS += extboot
14 #SUBDIRS += etherboot
15 SUBDIRS += hvmloader
17 .PHONY: all
18 all:
19 @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 \
20 echo "***********************************************************"; \
21 echo "Require dev86 package version >= 0.16.14 to build firmware!"; \
22 echo "(visit http://www.cix.co.uk/~mayday for more information)"; \
23 echo "***********************************************************"; \
24 else \
25 for subdir in $(SUBDIRS); do \
26 $(MAKE) -C $$subdir $@; \
27 done; \
28 fi
31 .PHONY: install
32 install: all
33 [ -d $(INST_DIR) ] || $(INSTALL_DIR) $(INST_DIR)
34 [ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR)
36 .PHONY: clean
37 clean:
38 @set -e; for subdir in $(SUBDIRS); do \
39 $(MAKE) -C $$subdir $@; \
40 done