summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Toomey <john.toomey@amd.com>2024-03-21 14:31:31 +0000
committerMark Hatle <mark.hatle@amd.com>2024-03-25 10:23:59 -0500
commitbecdcc140559e48638771e7ba54099793aa401ea (patch)
treee66c0a7dae3f5fd0689c422ee81ba0811fcf0095
parent5783686895aedd5cf613665d7d53fe5c638d8196 (diff)
downloadmeta-xilinx-becdcc140559e48638771e7ba54099793aa401ea.tar.gz
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 <john.toomey@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com> (cherry picked from commit 6ddde9a20775549f1434cba6006f84db1a223cb4) Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-core/recipes-bsp/device-tree/device-tree.bb2
1 files changed, 1 insertions, 1 deletions
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() {
130 fi 130 fi
131 if [ -e "${D}/boot/devicetree/${DTB_FILE_NAME}" ]; then 131 if [ -e "${D}/boot/devicetree/${DTB_FILE_NAME}" ]; then
132 # We need the output to be system.dtb for WIC setup to match XSCT flow 132 # We need the output to be system.dtb for WIC setup to match XSCT flow
133 ln -sf devicetree/${DTB_FILE_NAME} ${D}/boot/system.dtb 133 cp ${D}/boot/devicetree/${DTB_FILE_NAME} ${D}/boot/system.dtb
134 else 134 else
135 bberror "Expected filename ${DTB_FILE_NAME} doesn't exist in ${DEPLOYDIR}/devicetree" 135 bberror "Expected filename ${DTB_FILE_NAME} doesn't exist in ${DEPLOYDIR}/devicetree"
136 fi 136 fi