]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: Fix u-boot-rockchip.bin build
authorJohan Gunnarsson <johan.gunnarsson@gmail.com>
Sun, 25 Jul 2021 14:25:58 +0000 (16:25 +0200)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 12 Aug 2021 01:34:07 +0000 (09:34 +0800)
Currently there are a few arm32 rockchip board configs that don't
generate u-boot-rockchip.bin when running make because CONFIG_BINMAN
is not enabled. This patch changes CONFIG_ARCH_ROCKCHIP to also select
CONFIG_BINMAN if CONFIG_SPL and !CONFIG_ARM64.

Example builds that don't generate u-boot-rockchip.bin without this
patch:

export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
make kylin-rk3036_defconfig
make

export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
make rock_defconfig
make

export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
make tinker-rk3288_defconfig
make

Signed-off-by: Johan Gunnarsson <johan.gunnarsson@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/Kconfig

index e935c60bd773edc5437d583a6ac9415a391e8a22..d692139199c4114550e27bcf1dc515bfb333b03d 100644 (file)
@@ -1801,7 +1801,7 @@ config ARCH_STM32MP
 config ARCH_ROCKCHIP
        bool "Support Rockchip SoCs"
        select BLK
-       select BINMAN if SPL_OPTEE
+       select BINMAN if SPL_OPTEE || (SPL && !ARM64)
        select DM
        select DM_GPIO
        select DM_I2C