70477e5fee
If using BR2_LINUX_KERNEL_CUSTOM_DTS_PATH to copy .dts files from buildroot into the linux tree, these .dts files are copied to arch/arm64/boot. Unfortunately, the post-image.sh script expects to find them in arch/arm64/boot/xilinx. This patch does not require the xilinx/ prefix to be present when symlinking the device-tree to system.dtb where u-boot expects to find it. Signed-off-by: Graeme Smecher <gsmecher@threespeedlogic.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Reviewed-by: Neal Frager <neal.frager@amd.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
16 lines
484 B
Bash
Executable File
16 lines
484 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# By default U-Boot loads DTB from a file named "system.dtb", so
|
|
# let's use a symlink with that name that points to the *first*
|
|
# devicetree listed in the config.
|
|
|
|
FIRST_DT=$(sed -nr \
|
|
-e 's|^BR2_LINUX_KERNEL_INTREE_DTS_NAME="(xilinx/)?([-_/[:alnum:]\\.]*).*"$|\2|p' \
|
|
${BR2_CONFIG})
|
|
|
|
[ -z "${FIRST_DT}" ] || ln -fs ${FIRST_DT}.dtb ${BINARIES_DIR}/system.dtb
|
|
|
|
BOARD_DIR="$(dirname $0)"
|
|
|
|
support/scripts/genimage.sh -c $BOARD_DIR/genimage.cfg
|