Package: linux-source-2.6.32
Version: (2.6.32-48squeeze1) [security]
When customizing kernel source, if not selected an AMD system, we'll have
this error when compiling linux sources:
amd_bus.c:(.init.text+0x148a): undefined reference to
`amd_get_mmconfig_range'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/linux-source-2.6.32'
make: *** [debian/stamp/build/kernel] Error 2
I reported bug for 2.6.32-48 version, but still present in
2.6.32-48squeeze1.
Fix: arch/x86/pci/Makefile must include amd_bus.o only when CONFIG_AMD_NB
is set
Patch:
--- arch/x86/pci/Makefile 2009-12-03
04:51:21.000000000 +0100
+++ arch/x86/pci/Makefile-fixed 2013-02-26 10:05:57.000000000 +0100
@@ -14,4 +14,4 @@
obj-$(CONFIG_X86_NUMAQ)
+= numaq_32.o
obj-y
+= common.o early.o
-obj-y
+= amd_bus.o
+obj-$(CONFIG_AMD_NB)
+= amd_bus.o
|