diff options
| author | Robert Kovacsics <robert.kovacsics@carallon.com> | 2024-05-09 14:28:17 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-07-17 05:36:13 -0700 |
| commit | 8824da319b17c3a401b68962b18ef09ef4625b15 (patch) | |
| tree | 20cc2c38088b64f3c5dfe4f7af1f005949f27068 | |
| parent | 3775d83439322e4b5861305046fbd80a7839a9a7 (diff) | |
| download | poky-8824da319b17c3a401b68962b18ef09ef4625b15.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: 98119e3f452ebf6cb5f17049aef3a9a3ef7116c8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b175f9cdc3d87bef5c89cc337c2a7e2674732b29)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
| -rw-r--r-- | meta/files/toolchain-shar-extract.sh | 4 | ||||
| -rw-r--r-- | meta/recipes-core/meta/uninative-tarball.bb | 2 |
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 | |||
| 164 | fi | 164 | fi |
| 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. |
| 167 | if [ ${#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 | ||
| 169 | if [ ${#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 |
| 170 | fi | 172 | fi |
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} |
