diff mbox series

[dunfell,4/4] arago-image: fix bashisms

Message ID 20221222221205.1312505-4-denis@denix.org
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [dunfell,1/4] meta-toolchain-arago: fix bashisms | expand

Commit Message

Denys Dmytriyenko Dec. 22, 2022, 10:12 p.m. UTC
From: Denys Dmytriyenko <denys@konsulko.com>

Remove postprocessing code for making /boot symlinks relative. That hasn't
been needed for some time now - a more generic code for this is in OE-Core.

Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
---
 .../recipes-core/images/arago-image.inc        | 18 ------------------
 1 file changed, 18 deletions(-)
diff mbox series

Patch

diff --git a/meta-arago-distro/recipes-core/images/arago-image.inc b/meta-arago-distro/recipes-core/images/arago-image.inc
index e068287e..5d517b2e 100644
--- a/meta-arago-distro/recipes-core/images/arago-image.inc
+++ b/meta-arago-distro/recipes-core/images/arago-image.inc
@@ -22,24 +22,6 @@  IMAGE_LINGUAS = ""
 TOOLCHAIN_HOST_TASK += "nativesdk-buildtools-perl-dummy"
 SDK_PACKAGE_ARCHS += "buildtools-dummy-${SDKPKGSUFFIX}"
 
-make_bootfiles_symlinks_relative() {
-    for f in "${IMAGE_ROOTFS}/boot"/*
-    do
-        [ -L "$f" ] || continue
-
-        l=$(readlink "$f")
-        if [ "${l:0:6}" == "/boot/" ]
-        then
-            ln -sf "${l##/boot/}" "$f"
-        elif ["${l:0:1}" == "/" ]
-        then
-            ln -sf "..$l" "$f"
-        fi
-    done
-}
-
-ROOTFS_POSTPROCESS_COMMAND += "make_bootfiles_symlinks_relative;"
-
 BAD_RECOMMENDATIONS += " \
     ti-llvm3.6-dev \
     opencl-monitor-dev \