From: Hollis Blanchard Subject: Re: how to avoid building ACPI? [patch] Date: Mon, 21 Mar 2005 11:25:52 -0600 Message-ID: <200503211125.52155.hollisb@us.ibm.com> References: <200503181605.31458.hollisb@us.ibm.com> <2c62d2b938f819da1875bcc807c21d3c@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_gOwPCA8SLKlepAJ" In-Reply-To: <2c62d2b938f819da1875bcc807c21d3c@cl.cam.ac.uk> Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Keir Fraser Cc: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org --Boundary-00=_gOwPCA8SLKlepAJ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Saturday 19 March 2005 04:23, Keir Fraser wrote: > On 18 Mar 2005, at 22:05, Hollis Blanchard wrote: > > Hi, what's the best way in the Xen build system to avoid building > > xen/drivers/acpi on non-x86 architectures? Both xen/drivers/Makefile > > and > > xen/Rules.mk hardcode something about ACPI. > > See what we did in common/Makefile to avoid building certain files on > ia64. How's this? I've verified that x86 still builds. Signed-off-by: Hollis Blanchard -- Hollis Blanchard IBM Linux Technology Center --Boundary-00=_gOwPCA8SLKlepAJ Content-Type: text/x-diff; charset="iso-8859-1"; name="xen-acpi-build.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-acpi-build.diff" ===== xen/Rules.mk 1.35 vs edited ===== --- 1.35/xen/Rules.mk 2005-03-12 18:35:13 -06:00 +++ edited/xen/Rules.mk 2005-03-21 11:13:54 -06:00 @@ -32,10 +32,14 @@ OBJS := $(patsubst %.S,%.o,$(S_SRCS)) OBJS += $(patsubst %.c,%.o,$(C_SRCS)) +include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk + # Note that link order matters! ALL_OBJS := $(BASEDIR)/common/common.o ALL_OBJS += $(BASEDIR)/drivers/char/driver.o +ifeq ($(HAS_ACPI),y) ALL_OBJS += $(BASEDIR)/drivers/acpi/driver.o +endif ALL_OBJS += $(BASEDIR)/drivers/pci/driver.o ALL_OBJS += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o @@ -43,8 +47,6 @@ HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer test-gcc-flag = $(shell gcc -v --help 2>&1 | grep -q " $(1) " && echo $(1)) - -include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk ifneq ($(debug),y) CFLAGS += -DNDEBUG ===== xen/arch/ia64/Rules.mk 1.1 vs edited ===== --- 1.1/xen/arch/ia64/Rules.mk 2005-02-14 06:25:22 -06:00 +++ edited/xen/arch/ia64/Rules.mk 2005-03-21 11:25:37 -06:00 @@ -1,5 +1,7 @@ ######################################## -# x86-specific definitions +# ia64-specific definitions + +HAS_ACPI := y ifeq ($(COMPILE_ARCH),$(TARGET_ARCH)) OBJCOPY = objcopy ===== xen/arch/x86/Rules.mk 1.30 vs edited ===== --- 1.30/xen/arch/x86/Rules.mk 2005-02-10 07:17:10 -06:00 +++ edited/xen/arch/x86/Rules.mk 2005-03-21 11:15:27 -06:00 @@ -1,6 +1,8 @@ ######################################## # x86-specific definitions +HAS_ACPI := y + CC := gcc LD := ld ===== xen/drivers/Makefile 1.11 vs edited ===== --- 1.11/xen/drivers/Makefile 2004-06-10 08:21:37 -05:00 +++ edited/xen/drivers/Makefile 2005-03-21 11:24:11 -06:00 @@ -1,10 +1,13 @@ +include $(BASEDIR)/Rules.mk + +DIRS := char pci + +ifeq ($(HAS_ACPI),y) +DIRS += acpi +endif default: - $(MAKE) -C char - $(MAKE) -C acpi - $(MAKE) -C pci + for DIR in $(DIRS) ; do $(MAKE) -C $$DIR ; done clean: - $(MAKE) -C char clean - $(MAKE) -C acpi clean - $(MAKE) -C pci clean + for DIR in $(DIRS) ; do $(MAKE) -C $$DIR clean ; done --Boundary-00=_gOwPCA8SLKlepAJ-- ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click