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-devel

[Xen-devel] [patch] Introduce $(AFLAGS) to specify assembler flags

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] Introduce $(AFLAGS) to specify assembler flags
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Thu, 30 Mar 2006 08:23:53 -0500
Delivery-date: Thu, 30 Mar 2006 13:25:19 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Compile tested and verified.
-JX

Use AFLAGS for assembly files so we can "+=" more flags.
Signed-of-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>

---

diff -r 2cd44eba4df6 xen/Rules.mk
--- a/xen/Rules.mk      Thu Mar 30 11:55:07 2006 +0100
+++ b/xen/Rules.mk      Thu Mar 30 07:15:00 2006 -0500
@@ -55,11 +55,15 @@ CFLAGS-y               += -DMAX_PHYS_CPU
CFLAGS-y               += -DMAX_PHYS_CPUS=$(max_phys_cpus)
endif
+AFLAGS := -D__ASSEMBLY__
+
+
ALL_OBJS := $(ALL_OBJS-y)
CFLAGS   := $(strip $(CFLAGS) $(CFLAGS-y))
+AFLAGS   := $(strip $(AFLAGS) $(AFLAGS-y))
%.o: %.c $(HDRS) Makefile
        $(CC) $(CFLAGS) -c $< -o $@
%.o: %.S $(HDRS) Makefile
-       $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@
+       $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $@
diff -r 2cd44eba4df6 xen/arch/ia64/Makefile
--- a/xen/arch/ia64/Makefile    Thu Mar 30 11:55:07 2006 +0100
+++ b/xen/arch/ia64/Makefile    Thu Mar 30 07:15:00 2006 -0500
@@ -76,7 +76,7 @@ asm-xsi-offsets.s: asm-xsi-offsets.c
# I'm sure a Makefile wizard would know a better way to do this
xen.lds.s: xen/xen.lds.S
-       $(CC) -E $(CPPFLAGS) -P -DXEN -D__ASSEMBLY__ \
+       $(CC) -E $(CPPFLAGS) -P -DXEN $(AFLAGS) \
                -o xen.lds.s xen/xen.lds.S
clean:: FORCE
diff -r 2cd44eba4df6 xen/arch/x86/Makefile
--- a/xen/arch/x86/Makefile     Thu Mar 30 11:55:07 2006 +0100
+++ b/xen/arch/x86/Makefile     Thu Mar 30 07:15:00 2006 -0500
@@ -72,7 +72,7 @@ asm-offsets.s: $(TARGET_SUBARCH)/asm-off
        $(CC) $(CFLAGS) -S -o $@ $<
xen.lds: $(TARGET_SUBARCH)/xen.lds.S $(HDRS)
-       $(CC) $(CFLAGS) -P -E -Ui386 -D__ASSEMBLY__ -o $@ $<
+       $(CC) $(CFLAGS) -P -E -Ui386 $(AFLAGS) -o $@ $<
boot/mkelf32: boot/mkelf32.c
        $(HOSTCC) $(HOSTCFLAGS) -o $@ $<


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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] Introduce $(AFLAGS) to specify assembler flags, Jimi Xenidis <=