[U-Boot] build error with CONFIG_DM_PCI disabled in menuconfig

Ding, ChiX chix.ding at intel.com
Mon Oct 10 17:47:06 CEST 2016


Hi there
I disabled CONFIG_DM_PCI in menuconfig because I have problem detecting AHCI SCSI controller on X86 board
with CONFIG_DM_PCI enabled and the older code in drivers/pci/pci.c works for me in the previous U-boot version.
Then I got the build error :
u-boot/arch/x86/cpu/irq.c:29: undefined reference to `dm_pci_read_config8'
u-boot/arch/x86/cpu/irq.c:104: undefined reference to `dm_pci_get_bdf'
u-boot/arch/x86/cpu/irq.c:147: undefined reference to `dm_pci_read_config32'
u-boot/arch/x86/cpu/pci.c:69: undefined reference to `pci_read_config16'
u-boot/arch/x86/cpu/pci.c:73: undefined reference to `pci_read_config8'
u-boot/arch/x86/cpu/pci.c:86: undefined reference to `pci_write_config8'
u-boot/arch/x86/lib/bios_interrupts.c:137: undefined reference to `dm_pci_find_device'
u-boot/arch/x86/lib/bios_interrupts.c:141: undefined reference to `dm_pci_get_bdf'

It seems that the code refers to the DM_PCI code regardless if  CONFIG_DM_PCI is enabled or not.
Is it ok to build U-boot with CONFIG_DM_PCI disabled or  did I miss anything?

Thanks a lot,
Chi
--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.


More information about the U-Boot mailing list