lkml.org 
[lkml]   [2006]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Fix for arch/x86_64/pci/Makefile CFLAGS

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 <cminyard@mvista.com>

Index: linux-2.6.18/arch/x86_64/pci/Makefile
===================================================================
--- linux-2.6.18.orig/arch/x86_64/pci/Makefile
+++ linux-2.6.18/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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-10-03 15:13    [W:0.029 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site