summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Kovacsics <robert.kovacsics@carallon.com>2024-05-09 14:28:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-05-14 12:43:23 +0100
commitec478262ac00ca5e025e043b32c7a3d393af565d (patch)
tree617ed52c50389d29539346a1e191ba6f037ea5d5
parent136f0ee780ef6c14950549cb8b8b44e5fe87ab23 (diff)
downloadpoky-ec478262ac00ca5e025e043b32c7a3d393af565d.tar.gz
sdk: Fix path length limit to match reserved size
There were two different interpreter lengths in use, make them match. (From OE-Core rev: b175f9cdc3d87bef5c89cc337c2a7e2674732b29) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/files/toolchain-shar-extract.sh4
-rw-r--r--meta/recipes-core/meta/uninative-tarball.bb2
2 files changed, 5 insertions, 1 deletions
diff --git a/meta/files/toolchain-shar-extract.sh b/meta/files/toolchain-shar-extract.sh
index 4386b985bb..89d30005fd 100644
--- a/meta/files/toolchain-shar-extract.sh
+++ b/meta/files/toolchain-shar-extract.sh
@@ -164,7 +164,9 @@ else
164fi 164fi
165 165
166# limit the length for target_sdk_dir, ensure the relocation behaviour in relocate_sdk.py has right result. 166# limit the length for target_sdk_dir, ensure the relocation behaviour in relocate_sdk.py has right result.
167if [ ${#target_sdk_dir} -gt 2048 ]; then 167# This is due to ELF interpreter being set to 'a'*1024 in
168# meta/recipes-core/meta/uninative-tarball.bb
169if [ ${#target_sdk_dir} -gt 1024 ]; then
168 echo "Error: The target directory path is too long!!!" 170 echo "Error: The target directory path is too long!!!"
169 exit 1 171 exit 1
170fi 172fi
diff --git a/meta/recipes-core/meta/uninative-tarball.bb b/meta/recipes-core/meta/uninative-tarball.bb
index 7eebcaf11a..0fd01fdb64 100644
--- a/meta/recipes-core/meta/uninative-tarball.bb
+++ b/meta/recipes-core/meta/uninative-tarball.bb
@@ -58,6 +58,8 @@ fakeroot archive_sdk() {
58 DEST="./${SDK_ARCH}-${SDK_OS}" 58 DEST="./${SDK_ARCH}-${SDK_OS}"
59 mv sysroots/${SDK_SYS} $DEST 59 mv sysroots/${SDK_SYS} $DEST
60 rm sysroots -rf 60 rm sysroots -rf
61 # There is a check in meta/files/toolchain-shar-extract.sh -- make sure to
62 # keep that check up to date if changing the `1024`
61 patchelf --set-interpreter ${@''.join('a' for n in range(1024))} $DEST/usr/bin/patchelf 63 patchelf --set-interpreter ${@''.join('a' for n in range(1024))} $DEST/usr/bin/patchelf
62 mv $DEST/usr/bin/patchelf $DEST/usr/bin/patchelf-uninative 64 mv $DEST/usr/bin/patchelf $DEST/usr/bin/patchelf-uninative
63 ${SDK_ARCHIVE_CMD} 65 ${SDK_ARCHIVE_CMD}