diff mbox

x86/PCI: use -DDEBUG when CONFIG_PCI_DEBUG set

Message ID 20091014162742.4276.72597.stgit@bob.kio (mailing list archive)
State Accepted, archived
Headers show

Commit Message

Bjorn Helgaas Oct. 14, 2009, 4:27 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/x86/pci/Makefile b/arch/x86/pci/Makefile
index d49202e..a61a7de 100644
--- a/arch/x86/pci/Makefile
+++ b/arch/x86/pci/Makefile
@@ -15,3 +15,7 @@  obj-$(CONFIG_X86_NUMAQ)		+= numaq_32.o
 
 obj-y				+= common.o early.o
 obj-y				+= amd_bus.o
+
+ifeq ($(CONFIG_PCI_DEBUG),y)
+EXTRA_CFLAGS += -DDEBUG
+endif