]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
boards/zynq: rename the DTB to be loaded by U-Boot
authorLuca Ceresoli <luca@lucaceresoli.net>
Sat, 9 Dec 2017 21:30:06 +0000 (22:30 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 11 Dec 2017 21:35:12 +0000 (22:35 +0100)
commit6465e4d34a4c1d94e73ec849297fc77b47b498a6
tree01eab836cd676d14f3e6af5ce2bc7e0307f02c12
parent7d1e2a893b09862548bf3394e0cbc76d58ebd84f
boards/zynq: rename the DTB to be loaded by U-Boot

We are about to introduce genimage support for the Zynq boards. For
all of them U-Boot loads the DTB from a file named "devicetree.dtb" so
we need to rename it on the SD card image.

We could use genimage itself to rename files while creating the
image. But this would require a different genimage.cfg for each board,
leading to duplicate code.

Instead let's create a "devicetree.dtb" symlink pointing to the dtb
listed in the configuration. Currently all the Zynq-based boards have
only one DTS configured, but if one had two or more of them, the
symlink would point to the first one.

[Peter: only create symlink if dtb option is available]
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/zynq/post-image.sh [new file with mode: 0755]
configs/zynq_microzed_defconfig
configs/zynq_zc706_defconfig
configs/zynq_zed_defconfig