From becdcc140559e48638771e7ba54099793aa401ea Mon Sep 17 00:00:00 2001 From: John Toomey Date: Thu, 21 Mar 2024 14:31:31 +0000 Subject: device-tree: Replace symlink with cp It is not currently possible to create symlinks in the /boot partition due to the use of the vfat filesystem and this causes an issue when trying to update the dtb using rpm packages which contain a symlink. Work around the issue by copying the dtb file to the symlink location. Signed-off-by: John Toomey Signed-off-by: Mark Hatle (cherry picked from commit 6ddde9a20775549f1434cba6006f84db1a223cb4) Signed-off-by: Mark Hatle --- meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb index 1f8ae2e3..9367fa2c 100644 --- a/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb +++ b/meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb @@ -130,7 +130,7 @@ devicetree_do_install:append() { fi if [ -e "${D}/boot/devicetree/${DTB_FILE_NAME}" ]; then # We need the output to be system.dtb for WIC setup to match XSCT flow - ln -sf devicetree/${DTB_FILE_NAME} ${D}/boot/system.dtb + cp ${D}/boot/devicetree/${DTB_FILE_NAME} ${D}/boot/system.dtb else bberror "Expected filename ${DTB_FILE_NAME} doesn't exist in ${DEPLOYDIR}/devicetree" fi -- cgit v1.2.3-54-g00ecf