When using the buildroot compiler, it builds the u-boot.itb immediately after building the fit-dtb.blob. This causes a build failure when using the CONFIG_MULTI_DTB_FIT build configuration. This patch adds the necessary dependency to guarantee that the fit-dtb.blob has finished building before trying to build the u-boot.itb. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/3310463281 This patch has been submitted to u-boot mainline: https://lore.kernel.org/all/20221221075446.47141-1-neal.frager@amd.com/ Signed-off-by: Neal Frager <neal.frager@amd.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
13 lines
575 B
Bash
Executable File
13 lines
575 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This is a temporary work around for generating kv260 u-boot.itb.
|
|
# The problem is there is no way to currently configure u-boot to apply
|
|
# the carrier board dtb overlay during build, so all kv260 carrier board
|
|
# drivers are missing.
|
|
# This will be removed when u-boot can build the kv260 u-boot.itb natively.
|
|
|
|
UBOOT_DIR=$4
|
|
|
|
fdtoverlay -o ${UBOOT_DIR}/fit-dtb.blob -i ${UBOOT_DIR}/arch/arm/dts/zynqmp-smk-k26-revA.dtb ${UBOOT_DIR}/arch/arm/dts/zynqmp-sck-kv-g-revB.dtbo
|
|
${UBOOT_DIR}/tools/mkimage -E -f ${UBOOT_DIR}/u-boot.its -B 0x8 ${BINARIES_DIR}/u-boot.itb
|