[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Integrate virtual firmware into the tools build system.
ChangeSet 1.1698, 2005/06/08 12:39:13+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx Integrate virtual firmware into the tools build system. Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx> Makefile | 1 + firmware/Makefile | 25 +++++++++++++++++-------- firmware/vgabios/Makefile | 17 +++++++---------- 3 files changed, 25 insertions(+), 18 deletions(-) diff -Nru a/tools/Makefile b/tools/Makefile --- a/tools/Makefile 2005-06-08 08:01:30 -04:00 +++ b/tools/Makefile 2005-06-08 08:01:30 -04:00 @@ -10,6 +10,7 @@ SUBDIRS += xcs SUBDIRS += xcutils SUBDIRS += pygrub +SUBDIRS += firmware .PHONY: all install clean check check_clean ioemu eioemuinstall ioemuclean diff -Nru a/tools/firmware/Makefile b/tools/firmware/Makefile --- a/tools/firmware/Makefile 2005-06-08 08:01:30 -04:00 +++ b/tools/firmware/Makefile 2005-06-08 08:01:30 -04:00 @@ -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 @@ .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 -Nru a/tools/firmware/vgabios/Makefile b/tools/firmware/vgabios/Makefile --- a/tools/firmware/vgabios/Makefile 2005-06-08 08:01:30 -04:00 +++ b/tools/firmware/vgabios/Makefile 2005-06-08 08:01:30 -04:00 @@ -1,5 +1,3 @@ -SHELL = /bin/sh - CC = gcc CFLAGS = -g -O2 -Wall -Wstrict-prototypes LDFLAGS = @@ -16,13 +14,12 @@ 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 @@ 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 @@ 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 @@ $(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 @@ $(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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |