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] Apply Xen build system changes to all non-arch subdirect

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Apply Xen build system changes to all non-arch subdirectories.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 19 Mar 2006 14:44:08 +0000
Delivery-date: Sun, 19 Mar 2006 14:45:33 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 9795d9407acc1cbe3162d716a5e81bd5d27c90a0
# Parent  f513384a18ee703af2bd13f1eff16b789ac75cf4
Apply Xen build system changes to all non-arch subdirectories.

Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r f513384a18ee -r 9795d9407acc xen/Post.mk
--- a/xen/Post.mk       Sun Mar 19 12:13:35 2006
+++ b/xen/Post.mk       Sun Mar 19 13:02:18 2006
@@ -1,15 +1,19 @@
 
 subdirs-all := $(subdirs-y) $(subdirs-n)
 
-default: $(subdirs-y)
+obj-y += $(patsubst %,%/built_in.o,$(subdirs-y))
+
+default: built_in.o
+built_in.o: $(obj-y)
+       $(LD) $(LDFLAGS) -r -o $@ $^
 
 .PHONY: FORCE
 FORCE:
 
-%/: FORCE
+%/built_in.o: FORCE
        $(MAKE) -C $*
 
 clean: $(addprefix _clean_, $(subdirs-all))
+       rm -f *.o *~ core
 _clean_%/: FORCE
        $(MAKE) -C $* clean
-
diff -r f513384a18ee -r 9795d9407acc xen/Rules.mk
--- a/xen/Rules.mk      Sun Mar 19 12:13:35 2006
+++ b/xen/Rules.mk      Sun Mar 19 13:02:18 2006
@@ -41,18 +41,12 @@
 OBJS    := $(patsubst %.S,%.o,$(S_SRCS))
 OBJS    += $(patsubst %.c,%.o,$(C_SRCS))
 
-ALL_OBJS-y :=
-CFLAGS-y   :=
-subdirs-y  :=
-subdirs-n  :=
-
 include $(BASEDIR)/arch/$(TARGET_ARCH)/Rules.mk
 
 # Note that link order matters!
-ALL_OBJS-y               += $(BASEDIR)/common/common.o
-ALL_OBJS-y               += $(BASEDIR)/drivers/char/driver.o
-ALL_OBJS-$(HAS_ACPI)     += $(BASEDIR)/drivers/acpi/driver.o
-ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/acm/acm.o
+ALL_OBJS-y               += $(BASEDIR)/common/built_in.o
+ALL_OBJS-y               += $(BASEDIR)/drivers/built_in.o
+ALL_OBJS-$(ACM_SECURITY) += $(BASEDIR)/acm/built_in.o
 ALL_OBJS-y               += $(BASEDIR)/arch/$(TARGET_ARCH)/arch.o
 
 CFLAGS-y               += -g -D__XEN__
diff -r f513384a18ee -r 9795d9407acc xen/acm/Makefile
--- a/xen/acm/Makefile  Sun Mar 19 12:13:35 2006
+++ b/xen/acm/Makefile  Sun Mar 19 13:02:18 2006
@@ -1,15 +1,9 @@
+include $(BASEDIR)/Rules.mk
 
-include $(BASEDIR)/Rules.mk
-OBJS =  acm_core.o 
-OBJS += acm_policy.o
-OBJS += acm_simple_type_enforcement_hooks.o
-OBJS += acm_chinesewall_hooks.o
-OBJS += acm_null_hooks.o
+obj-y += acm_core.o 
+obj-y += acm_policy.o
+obj-y += acm_simple_type_enforcement_hooks.o
+obj-y += acm_chinesewall_hooks.o
+obj-y += acm_null_hooks.o
 
-default: acm.o
-
-acm.o: $(OBJS)
-       $(LD) $(LDFLAGS) -r -o acm.o $(OBJS)
-
-clean:
-       rm -f *.o *~ core
+include $(BASEDIR)/Post.mk
diff -r f513384a18ee -r 9795d9407acc xen/common/Makefile
--- a/xen/common/Makefile       Sun Mar 19 12:13:35 2006
+++ b/xen/common/Makefile       Sun Mar 19 13:02:18 2006
@@ -1,19 +1,35 @@
 
 include $(BASEDIR)/Rules.mk
 
-ifneq ($(perfc),y)
-OBJS := $(subst perfc.o,,$(OBJS))
-endif
-ifneq ($(crash_debug),y)
-OBJS := $(patsubst gdbstub.o,,$(OBJS))
-endif
+obj-y += acm_ops.o
+obj-y += bitmap.o
+obj-y += dom0_ops.o
+obj-y += domain.o
+obj-y += elf.o
+obj-y += event_channel.o
+obj-y += grant_table.o
+obj-y += kernel.o
+obj-y += keyhandler.o
+obj-y += lib.o
+obj-y += memory.o
+obj-y += multicall.o
+obj-y += page_alloc.o
+obj-y += rangeset.o
+obj-y += sched_bvt.o
+obj-y += sched_sedf.o
+obj-y += schedule.o
+obj-y += softirq.o
+obj-y += string.o
+obj-y += symbols.o
+obj-y += trace.o
+obj-y += timer.o
+obj-y += vsprintf.o
+obj-y += xmalloc.o
 
-default: common.o
-common.o: $(OBJS)
-       $(LD) $(LDFLAGS) -r -o common.o $(OBJS)
+obj-$(perfc)       += perfc.o
+obj-$(crash_debug) += gdbstub.o
 
-clean:
-       rm -f *.o *~ core
+include $(BASEDIR)/Post.mk
 
 # Object file contains changeset and compiler information.
 kernel.o: $(BASEDIR)/include/xen/compile.h
diff -r f513384a18ee -r 9795d9407acc xen/drivers/acpi/Makefile
--- a/xen/drivers/acpi/Makefile Sun Mar 19 12:13:35 2006
+++ b/xen/drivers/acpi/Makefile Sun Mar 19 13:02:18 2006
@@ -1,11 +1,5 @@
-
 include $(BASEDIR)/Rules.mk
 
-OBJS := tables.o
+obj-y += tables.o
 
-default: driver.o
-driver.o: $(OBJS)
-       $(LD) $(LDFLAGS) -r -o driver.o $(OBJS)
-
-clean:
-       rm -f *.o *~ core
+include $(BASEDIR)/Post.mk
diff -r f513384a18ee -r 9795d9407acc xen/drivers/char/Makefile
--- a/xen/drivers/char/Makefile Sun Mar 19 12:13:35 2006
+++ b/xen/drivers/char/Makefile Sun Mar 19 13:02:18 2006
@@ -1,12 +1,10 @@
-
 include $(BASEDIR)/Rules.mk
 
-default: driver.o
-driver.o: $(OBJS)
-       $(LD) $(LDFLAGS) -r -o driver.o $(OBJS)
+obj-y += console.o
+obj-y += ns16550.o
+obj-y += serial.o
 
-clean:
-       rm -f *.o *~ core
+include $(BASEDIR)/Post.mk
 
 # Object file contains changeset and compiler information.
 console.o: $(BASEDIR)/include/xen/compile.h

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Apply Xen build system changes to all non-arch subdirectories., Xen patchbot -unstable <=