u-boot/arch/arm/mach-omap2
MD Danish Anwar e6ea13eba9 arm: mach-k3: Fix config check for FS_LOADER
load_firmware() API calls fs-loader APIs and checks for CONFIG_FS_LOADER
before calling those APIs. The if check only checks for CONFIG_FS_LOADER
but not for CONFIG_SPL_FS_LOADER.

When CONFIG_FS_LOADER is enabled, load_firmware() API calls fs-loader APIs
but this is done at SPL stage and at this time FS_LOADER is not built yet
as a result we see below build error.

  AR      spl/boot/built-in.o
  LD      spl/u-boot-spl
arm-none-linux-gnueabihf-ld.bfd: arch/arm/mach-k3/common.o: in function
`load_firmware':
/home/danish/workspace/u-boot/arch/arm/mach-k3/common.c:184: undefined
reference to `get_fs_loader'
arm-none-linux-gnueabihf-ld.bfd:
/home/danish/workspace/u-boot/arch/arm/mach-k3/common.c:185: undefined
reference to `request_firmware_into_buf'
make[2]: *** [/home/danish/workspace/u-boot/scripts/Makefile.spl:527:
spl/u-boot-spl] Error 1
make[1]: *** [/home/danish/workspace/u-boot/Makefile:2055:
spl/u-boot-spl] Error 2
make[1]: Leaving directory '/home/danish/uboot_images/am64x/r5'
make: *** [Makefile:177: sub-make] Error 2

Fix this by modifying the if check to CONFIG_IS_ENABLED(FS_LOADER) instead
of IS_ENABLED(CONFIG_FS_LOADER) as the former will check for the
appropriate config option (CONFIG_SPL_FS_LOADER / CONFIG_FS_LOADER) based
on the build stage.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Acked-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
2024-03-19 16:09:58 -04:00
..
am33xx mtd: Make CONFIG_MTD be the gate symbol for the menu 2024-01-22 14:18:54 -05:00
omap3 omap3: Make SPL_OMAP3_ID_NAND depend on NAND_OMAP_GPMC 2024-01-22 14:17:35 -05:00
omap4 arm: Remove kc1 board 2021-04-10 08:01:24 -04:00
omap5 arch/arm/mach-omap2/omap5/fdt.c: ft_fixup_clocks: use clock-output-names property as fallback (kernel 5.19+) 2024-03-05 08:39:17 -05:00
abb.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
boot-common.c arm: mach-k3: Fix config check for FS_LOADER 2024-03-19 16:09:58 -04:00
clocks-common.c arm: mach-omap2: load/start remoteproc IPU1/IPU2 2022-02-08 09:41:27 -05:00
config_secure.mk tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
config.mk tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00
emif-common.c arm: omap2: Fix warning in force_emif_self_refresh 2023-07-21 15:32:12 -04:00
fdt-common.c global: Finish CONFIG -> CFG migration 2023-01-20 12:27:24 -05:00
hwinit-common.c event: Convert existing spy records to simple 2023-08-31 13:16:54 -04:00
Kconfig arm: Remove ti816x_evm board and ti816x SoC support 2023-05-31 10:11:46 -04:00
lowlevel_init.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile scsi: Forceably finish migration to DM_SCSI 2023-11-07 18:36:06 -05:00
mem-common.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
omap-cache.c arm: omap2: remove arm_init_domains 2021-03-02 15:53:37 -05:00
reset.c reset: Remove addr parameter from reset_cpu() 2021-03-02 14:03:02 -05:00
sec-common.c global: Migrate CONFIG_MAX_RAM_BANK_SIZE to CFG 2022-12-23 10:14:51 -05:00
sysinfo-common.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c global: Move remaining CONFIG_SYS_* to CFG_SYS_* 2022-12-05 16:06:08 -05:00
u-boot-spl.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
utils.c common: Drop linux/printk.h from common header 2023-09-24 09:54:57 -04:00
vc.c tree-wide: Replace http:// link with https:// link for ti.com 2023-11-10 11:01:50 -05:00