WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] tools/firmware: Use generic subdirs rules

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] tools/firmware: Use generic subdirs rules.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 Mar 2008 08:00:14 -0700
Delivery-date: Tue, 25 Mar 2008 08:00:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1206438663 0
# Node ID 2c07fda47494cba5ca1a74c58283cb3d3aaf6725
# Parent  f055804bb7f9c02b5e033e7e2c7404460478c13d
tools/firmware: Use generic subdirs rules.

Signed-off-by: Bastian Blank <waldi@xxxxxxxxxx>
---
 tools/firmware/Makefile               |   11 +++--------
 tools/firmware/hvmloader/Makefile     |   11 ++++-------
 tools/firmware/rombios/32bit/Makefile |   16 ++++------------
 tools/firmware/rombios/Makefile       |    8 ++++++--
 4 files changed, 17 insertions(+), 29 deletions(-)

diff -r f055804bb7f9 -r 2c07fda47494 tools/firmware/Makefile
--- a/tools/firmware/Makefile   Tue Mar 25 09:50:45 2008 +0000
+++ b/tools/firmware/Makefile   Tue Mar 25 09:51:03 2008 +0000
@@ -7,7 +7,7 @@ INST_DIR := $(DESTDIR)/usr/lib/xen/boot
 INST_DIR := $(DESTDIR)/usr/lib/xen/boot
 
 SUBDIRS :=
-SUBDIRS += rombios rombios/32bit
+SUBDIRS += rombios
 SUBDIRS += vgabios
 SUBDIRS += extboot
 #SUBDIRS += etherboot
@@ -21,9 +21,7 @@ all:
        echo "(visit http://www.cix.co.uk/~mayday for more information)"; \
        echo "***********************************************************"; \
        else \
-       for subdir in $(SUBDIRS); do \
-               $(MAKE) -C $$subdir $@; \
-       done; \
+       $(MAKE) subdirs-$@; \
        fi
 
 
@@ -33,7 +31,4 @@ install: all
        [ ! -e $(TARGET) ] || $(INSTALL_DATA) $(TARGET) $(INST_DIR)
 
 .PHONY: clean
-clean: 
-       @set -e; for subdir in $(SUBDIRS); do \
-               $(MAKE) -C $$subdir $@; \
-       done
+clean: subdirs-clean
diff -r f055804bb7f9 -r 2c07fda47494 tools/firmware/hvmloader/Makefile
--- a/tools/firmware/hvmloader/Makefile Tue Mar 25 09:50:45 2008 +0000
+++ b/tools/firmware/hvmloader/Makefile Tue Mar 25 09:51:03 2008 +0000
@@ -23,6 +23,8 @@ CFLAGS :=
 CFLAGS :=
 include $(XEN_ROOT)/tools/Rules.mk
 
+SUBDIRS := acpi
+
 # The HVM loader is started in 32-bit mode at the address below:
 LOADADDR = 0x100000
 
@@ -38,17 +40,13 @@ OBJS = $(patsubst %.c,%.o,$(SRCS))
 OBJS = $(patsubst %.c,%.o,$(SRCS))
 
 .PHONY: all
-all: hvmloader
+all: subdirs-all hvmloader
 
 hvmloader: roms.h acpi/acpi.a $(SRCS)
        $(CC) $(CFLAGS) -c $(SRCS)
        $(LD) $(LDFLAGS_DIRECT) -N -Ttext $(LOADADDR) -o hvmloader.tmp $(OBJS) 
acpi/acpi.a
        $(OBJCOPY) hvmloader.tmp hvmloader
        rm -f hvmloader.tmp
-
-.PHONY: acpi/acpi.a
-acpi/acpi.a:
-       $(MAKE) -C acpi
 
 roms.h: ../rombios/BIOS-bochs-latest ../vgabios/VGABIOS-lgpl-latest.bin 
../vgabios/VGABIOS-lgpl-latest.cirrus.bin ../etherboot/eb-roms.h 
../extboot/extboot.bin
        sh ./mkhex rombios ../rombios/BIOS-bochs-latest > roms.h
@@ -58,7 +56,6 @@ roms.h: ../rombios/BIOS-bochs-latest ../
        sh ./mkhex extboot ../extboot/extboot.bin >> roms.h
 
 .PHONY: clean
-clean:
+clean: subdirs-clean
        rm -f roms.h acpi.h
        rm -f hvmloader hvmloader.tmp *.o
-       $(MAKE) -C acpi clean
diff -r f055804bb7f9 -r 2c07fda47494 tools/firmware/rombios/32bit/Makefile
--- a/tools/firmware/rombios/32bit/Makefile     Tue Mar 25 09:50:45 2008 +0000
+++ b/tools/firmware/rombios/32bit/Makefile     Tue Mar 25 09:51:03 2008 +0000
@@ -18,20 +18,12 @@ MODULES = tcgbios/tcgbiosext.o
 
 .PHONY: all subdirs clean
 
-subdirs:
-       @set -e; for subdir in $(SUBDIRS); do \
-               $(MAKE) -C $$subdir all; \
-       done;
+all: subdirs-all $(TARGET)
 
-all: $(TARGET)
+clean: subdirs-clean
+       rm -rf *.o $(TARGET)
 
-clean:
-       rm -rf *.o $(TARGET)
-       @for subdir in $(SUBDIRS); do \
-               $(MAKE) -C $$subdir $@; \
-       done;
-
-$(TARGET): subdirs 32bitbios.o util.o
+$(TARGET): 32bitbios.o util.o
        $(LD) $(LDFLAGS_DIRECT) -s -r 32bitbios.o $(MODULES) util.o -o 
32bitbios_all.o
        @nm 32bitbios_all.o |                                \
          egrep '^ +U ' >/dev/null && {                      \
diff -r f055804bb7f9 -r 2c07fda47494 tools/firmware/rombios/Makefile
--- a/tools/firmware/rombios/Makefile   Tue Mar 25 09:50:45 2008 +0000
+++ b/tools/firmware/rombios/Makefile   Tue Mar 25 09:51:03 2008 +0000
@@ -1,12 +1,16 @@
+XEN_ROOT = ../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
+SUBDIRS := 32bit
 
 .PHONY: all
-all: bios
+all: subdirs-all bios
 
 .PHONY: bios
 bios: biossums BIOS-bochs-latest
 
 .PHONY: clean
-clean:
+clean: subdirs-clean
        rm -f  *.o *.a *.s rombios.bin _rombios*_.c
        rm -f  as86-sym.txt ld86-sym.txt 
        rm -f  rombios*.txt rombios*.sym usage biossums

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] tools/firmware: Use generic subdirs rules., Xen patchbot-unstable <=