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 | |
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')
-rw-r--r-- | tools/firmware/Makefile | 25 | ||||
-rw-r--r-- | tools/firmware/vgabios/Makefile | 17 |
2 files changed, 24 insertions, 18 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 - diff --git a/tools/firmware/vgabios/Makefile b/tools/firmware/vgabios/Makefile index f510dbc475..929d882e72 100644 --- a/tools/firmware/vgabios/Makefile +++ b/tools/firmware/vgabios/Makefile @@ -1,5 +1,3 @@ -SHELL = /bin/sh - CC = gcc CFLAGS = -g -O2 -Wall -Wstrict-prototypes LDFLAGS = @@ -16,13 +14,12 @@ VGABIOS_DATE = "-DVGABIOS_DATE=\"$(RELDATE)\"" all: bios cirrus-bios - bios: biossums vgabios.bin vgabios.debug.bin cirrus-bios: vgabios-cirrus.bin vgabios-cirrus.debug.bin clean: - /bin/rm -f biossums *.o *.s *.ld86 \ + rm -f biossums *.o *.s *.ld86 \ temp.awk.* vgabios*.orig _vgabios_* _vgabios-debug_* core vgabios*.bin vgabios*.txt $(RELEASE).bin *.bak rm -f VGABIOS-lgpl-latest*.bin @@ -42,7 +39,7 @@ vgabios.bin: vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetables.h sed -e 's/^\.text//' -e 's/^\.data//' vgabios.s > _vgabios_.s $(AS86) _vgabios_.s -b vgabios.bin -u -w- -g -0 -j -O -l vgabios.txt rm -f _vgabios_.s _vgabios_.c vgabios.s - mv vgabios.bin VGABIOS-lgpl-latest.bin + cp vgabios.bin VGABIOS-lgpl-latest.bin ./biossums VGABIOS-lgpl-latest.bin ls -l VGABIOS-lgpl-latest.bin @@ -52,7 +49,7 @@ vgabios.debug.bin: vgabios.c vgabios.h vgafonts.h vgatables.h vbe.h vbe.c vbetab sed -e 's/^\.text//' -e 's/^\.data//' vgabios-debug.s > _vgabios-debug_.s $(AS86) _vgabios-debug_.s -b vgabios.debug.bin -u -w- -g -0 -j -O -l vgabios.debug.txt rm -f _vgabios-debug_.s _vgabios-debug_.c vgabios-debug.s - mv vgabios.debug.bin VGABIOS-lgpl-latest.debug.bin + cp vgabios.debug.bin VGABIOS-lgpl-latest.debug.bin ./biossums VGABIOS-lgpl-latest.debug.bin ls -l VGABIOS-lgpl-latest.debug.bin @@ -60,9 +57,9 @@ vgabios-cirrus.bin: vgabios.c vgabios.h vgafonts.h vgatables.h clext.c $(GCC) -E -P vgabios.c $(VGABIOS_VERS) -DCIRRUS $(VGABIOS_DATE) > _vgabios-cirrus_.c $(BCC) -o vgabios-cirrus.s -C-c -D__i86__ -S -0 _vgabios-cirrus_.c sed -e 's/^\.text//' -e 's/^\.data//' vgabios-cirrus.s > _vgabios-cirrus_.s - $(AS86) _vgabios-cirrus_.s -b vgabios-cirrus.bin -u -w- -g -0 -j -O -l vgabios.cirrus.txt + $(AS86) _vgabios-cirrus_.s -b vgabios-cirrus.bin -u -w- -g -0 -j -O -l vgabios-cirrus.txt rm -f _vgabios-cirrus_.s _vgabios-cirrus_.c vgabios-cirrus.s - mv vgabios-cirrus.bin VGABIOS-lgpl-latest.cirrus.bin + cp vgabios-cirrus.bin VGABIOS-lgpl-latest.cirrus.bin ./biossums VGABIOS-lgpl-latest.cirrus.bin ls -l VGABIOS-lgpl-latest.cirrus.bin @@ -70,9 +67,9 @@ vgabios-cirrus.debug.bin: vgabios.c vgabios.h vgafonts.h vgatables.h clext.c $(GCC) -E -P vgabios.c $(VGABIOS_VERS) -DCIRRUS -DCIRRUS_DEBUG $(VGABIOS_DATE) > _vgabios-cirrus-debug_.c $(BCC) -o vgabios-cirrus-debug.s -C-c -D__i86__ -S -0 _vgabios-cirrus-debug_.c sed -e 's/^\.text//' -e 's/^\.data//' vgabios-cirrus-debug.s > _vgabios-cirrus-debug_.s - $(AS86) _vgabios-cirrus-debug_.s -b vgabios.cirrus.debug.bin -u -w- -g -0 -j -O -l vgabios.cirrus.debug.txt + $(AS86) _vgabios-cirrus-debug_.s -b vgabios-cirrus.debug.bin -u -w- -g -0 -j -O -l vgabios-cirrus.debug.txt rm -f _vgabios-cirrus-debug_.s _vgabios-cirrus-debug_.c vgabios-cirrus-debug.s - mv vgabios.cirrus.debug.bin VGABIOS-lgpl-latest.cirrus.debug.bin + cp vgabios-cirrus.debug.bin VGABIOS-lgpl-latest.cirrus.debug.bin ./biossums VGABIOS-lgpl-latest.cirrus.debug.bin ls -l VGABIOS-lgpl-latest.cirrus.debug.bin |