[PATCH] [6/19] x86_64: Fix for arch/x86_64/pci/Makefile CFLAGS

[PATCH] [6/19] x86_64: Fix for arch/x86_64/pci/Makefile CFLAGS

Post by Andi Klee » Mon, 23 Oct 2006 02:00:25



From: Corey Minyard < XXXX@XXXXX.COM >

The arch/x86_64/pci directory was giving problems in a wierd cross-compile
environment. The exact cause is unknown, but the Makefile used CFLAGS
instead of EXTRA_CFLAGS. From what I can tell from
Documentation/kbuild/makefiles.txt, CFLAGS should not be used for this, it
should be EXTRA_CFLAGS. And it solves the cross-compile problem.

Signed-off-by: Corey Minyard < XXXX@XXXXX.COM >
Signed-off-by: Andi Kleen < XXXX@XXXXX.COM >
Cc: Andi Kleen < XXXX@XXXXX.COM >
Cc: Vojtech Pavlik < XXXX@XXXXX.COM >
Cc: Sam Ravnborg < XXXX@XXXXX.COM >
Signed-off-by: Andrew Morton < XXXX@XXXXX.COM >
---

arch/x86_64/pci/Makefile | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux/arch/x86_64/pci/Makefile
===================================================================
--- linux.orig/arch/x86_64/pci/Makefile
+++ linux/arch/x86_64/pci/Makefile
@@ -3,7 +3,7 @@
#
# Reuse the i386 PCI subsystem
#
-CFLAGS += -Iarch/i386/pci
+EXTRA_CFLAGS += -Iarch/i386/pci

obj-y := i386.o
obj-$(CONFIG_PCI_DIRECT)+= direct.o
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/