mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
d50d6817b5
Building U-Boot with CONFIG_PCI and CONFIG_DM_PCI enabled, but CONFIG_SPL_PCI_SUPPORT disabled, results in following linker error: lib/built-in.o: In function `fdtdec_get_pci_bar32': lib/fdtdec.c:305: undefined reference to `dm_pci_read_bar32' fdtdec.c:305:(.text.fdtdec_get_pci_bar32+0x24): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `dm_pci_read_bar32' This is because reference to dm_pci_read_bar32() remains in lib/fdtdec.c while SPL build does not descend into drivers/pci directory in drivers/Makefile if CONFIG_SPL_PCI_SUPPORT is not enabled. Fix this by applying appropriate #define guards in lib/fdtdec.c. It looks like ns16550.c has the same problem, so fixed that too. To simplify this, CONFIG_SPL_PCI_SUPPORT is renamed to CONFIG_SPL_PCI (enables use of CONFIG_IS_ENABLED() macro). Suggested-by: Vignesh R <vigneshr@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
74 lines
1.8 KiB
Text
74 lines
1.8 KiB
Text
CONFIG_X86=y
|
|
CONFIG_SYS_TEXT_BASE=0x1110000
|
|
CONFIG_SPL_LIBCOMMON_SUPPORT=y
|
|
CONFIG_SPL_LIBGENERIC_SUPPORT=y
|
|
CONFIG_SYS_MALLOC_F_LEN=0x1000
|
|
CONFIG_MAX_CPUS=2
|
|
CONFIG_SPL_SERIAL_SUPPORT=y
|
|
CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
|
|
CONFIG_DEBUG_UART_BASE=0x3f8
|
|
CONFIG_DEBUG_UART_CLOCK=1843200
|
|
CONFIG_SPL_SPI_SUPPORT=y
|
|
CONFIG_X86_RUN_64BIT=y
|
|
CONFIG_TARGET_QEMU_X86_64=y
|
|
CONFIG_DEBUG_UART=y
|
|
CONFIG_SMP=y
|
|
CONFIG_GENERATE_PIRQ_TABLE=y
|
|
CONFIG_GENERATE_MP_TABLE=y
|
|
CONFIG_GENERATE_ACPI_TABLE=y
|
|
CONFIG_NR_DRAM_BANKS=8
|
|
CONFIG_BUILD_ROM=y
|
|
CONFIG_FIT=y
|
|
CONFIG_SPL_LOAD_FIT=y
|
|
CONFIG_BOOTSTAGE=y
|
|
CONFIG_BOOTSTAGE_REPORT=y
|
|
CONFIG_USE_BOOTARGS=y
|
|
CONFIG_BOOTARGS="root=/dev/sdb3 init=/sbin/init rootwait ro"
|
|
CONFIG_SYS_CONSOLE_INFO_QUIET=y
|
|
CONFIG_DISPLAY_BOARDINFO_LATE=y
|
|
CONFIG_LAST_STAGE_INIT=y
|
|
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
|
|
CONFIG_SPL_CPU_SUPPORT=y
|
|
CONFIG_SPL_ENV_SUPPORT=y
|
|
CONFIG_SPL_NET_SUPPORT=y
|
|
CONFIG_SPL_PCI=y
|
|
CONFIG_SPL_PCH_SUPPORT=y
|
|
CONFIG_SPL_RTC_SUPPORT=y
|
|
CONFIG_HUSH_PARSER=y
|
|
CONFIG_CMD_CPU=y
|
|
# CONFIG_CMD_BOOTEFI_HELLO_COMPILE is not set
|
|
CONFIG_CMD_BOOTEFI_SELFTEST=y
|
|
# CONFIG_CMD_FLASH is not set
|
|
CONFIG_CMD_IDE=y
|
|
CONFIG_CMD_SF=y
|
|
CONFIG_CMD_SPI=y
|
|
CONFIG_CMD_USB=y
|
|
# CONFIG_CMD_SETEXPR is not set
|
|
CONFIG_CMD_DHCP=y
|
|
# CONFIG_CMD_NFS is not set
|
|
CONFIG_CMD_PING=y
|
|
CONFIG_CMD_TIME=y
|
|
CONFIG_CMD_QFW=y
|
|
CONFIG_CMD_BOOTSTAGE=y
|
|
CONFIG_CMD_EXT2=y
|
|
CONFIG_CMD_EXT4=y
|
|
CONFIG_CMD_EXT4_WRITE=y
|
|
CONFIG_CMD_FAT=y
|
|
CONFIG_CMD_FS_GENERIC=y
|
|
CONFIG_SPL_OF_CONTROL=y
|
|
CONFIG_DEFAULT_DEVICE_TREE="qemu-x86_i440fx"
|
|
CONFIG_SPL_DM=y
|
|
CONFIG_REGMAP=y
|
|
CONFIG_SPL_REGMAP=y
|
|
CONFIG_SYSCON=y
|
|
CONFIG_SPL_SYSCON=y
|
|
CONFIG_CPU=y
|
|
CONFIG_SPL_DM_RTC=y
|
|
CONFIG_SPI=y
|
|
CONFIG_SPL_TIMER=y
|
|
CONFIG_USB_STORAGE=y
|
|
CONFIG_USB_KEYBOARD=y
|
|
CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
|
|
CONFIG_FRAMEBUFFER_VESA_MODE_USER=y
|
|
CONFIG_FRAMEBUFFER_VESA_MODE=0x144
|
|
CONFIG_CONSOLE_SCROLL_LINES=5
|