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>
85 lines
2.0 KiB
Plaintext
85 lines
2.0 KiB
Plaintext
CONFIG_X86=y
|
|
CONFIG_SPL_GPIO_SUPPORT=y
|
|
CONFIG_SPL_LIBCOMMON_SUPPORT=y
|
|
CONFIG_SPL_LIBGENERIC_SUPPORT=y
|
|
CONFIG_SYS_MALLOC_F_LEN=0x2000
|
|
CONFIG_SPL_SERIAL_SUPPORT=y
|
|
CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
|
|
CONFIG_DEBUG_UART_BOARD_INIT=y
|
|
CONFIG_DEBUG_UART_BASE=0x3f8
|
|
CONFIG_DEBUG_UART_CLOCK=1843200
|
|
CONFIG_SPL_SPI_FLASH_SUPPORT=y
|
|
CONFIG_SPL_SPI_SUPPORT=y
|
|
CONFIG_X86_RUN_64BIT=y
|
|
CONFIG_VENDOR_GOOGLE=y
|
|
CONFIG_TARGET_CHROMEBOOK_LINK64=y
|
|
CONFIG_DEBUG_UART=y
|
|
CONFIG_HAVE_MRC=y
|
|
CONFIG_SMP=y
|
|
CONFIG_HAVE_VGA_BIOS=y
|
|
CONFIG_NR_DRAM_BANKS=8
|
|
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_MISC_INIT_R=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_I2C_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_FLASH is not set
|
|
CONFIG_CMD_GPIO=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_BOOTSTAGE=y
|
|
CONFIG_CMD_TPM=y
|
|
CONFIG_CMD_TPM_TEST=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="chromebook_link"
|
|
CONFIG_SPL_DM=y
|
|
CONFIG_REGMAP=y
|
|
CONFIG_SPL_REGMAP=y
|
|
CONFIG_SYSCON=y
|
|
CONFIG_SPL_SYSCON=y
|
|
CONFIG_CPU=y
|
|
CONFIG_DM_I2C=y
|
|
CONFIG_SYS_I2C_INTEL=y
|
|
CONFIG_CROS_EC=y
|
|
CONFIG_CROS_EC_LPC=y
|
|
CONFIG_SPL_DM_RTC=y
|
|
CONFIG_SYS_NS16550=y
|
|
CONFIG_SPI=y
|
|
CONFIG_SPL_TIMER=y
|
|
CONFIG_TPM_TIS_LPC=y
|
|
CONFIG_USB_STORAGE=y
|
|
CONFIG_USB_KEYBOARD=y
|
|
CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
|
|
CONFIG_FRAMEBUFFER_VESA_MODE_11A=y
|
|
CONFIG_VIDEO_IVYBRIDGE_IGD=y
|
|
CONFIG_CONSOLE_SCROLL_LINES=5
|
|
CONFIG_CMD_DHRYSTONE=y
|
|
CONFIG_TPM=y
|