]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mach-imx: bootaux: fix building with disabled bootelf
authorOleksandr Suvorov <oleksandr.suvorov@foundries.io>
Thu, 31 Aug 2023 14:03:52 +0000 (17:03 +0300)
committerStefano Babic <sbabic@denx.de>
Sat, 23 Sep 2023 16:45:33 +0000 (18:45 +0200)
If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends
up with a linking error [1]. Select LIB_ELF to fix the building
issue.

[1]
ld: /tmp/ccaF1rpv.ltrans0.ltrans.o: in function `do_bootaux':
arch/arm/mach-imx/imx_bootaux.c:108: undefined reference to `valid_elf_image'

Fixes: c0f037f6a2a ("mach-imx: bootaux: elf firmware support")
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@foundries.io>
arch/arm/mach-imx/Kconfig

index d94b5828d0d4f3270e93176fa378e393cc490141..fda762426ef2c915fb7c454785322a0f48e5c03a 100644 (file)
@@ -32,6 +32,7 @@ config IMX_RDC
 config IMX_BOOTAUX
        bool "Support boot auxiliary core"
        depends on ARCH_MX7 || ARCH_MX6 || ARCH_VF610 || ARCH_IMX8 || ARCH_IMX8M
+       select LIB_ELF
        help
          bootaux [addr] to boot auxiliary core.