]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
meta: scripts - relocation script adapted to support big-endian machines
authorSundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Tue, 5 Apr 2022 09:58:19 +0000 (15:28 +0530)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Apr 2022 21:22:22 +0000 (22:22 +0100)
commit7d6f4b1373e4dfafc63702ef2426cd45100f18a3
tree87896cca988eed9b6d4ecc6dcfcfe138a0a5d638
parent6311fb6f412ef923cc0b34a821e875990fc043f5
meta: scripts - relocation script adapted to support big-endian machines

relocate_sdk.py was developed for little-endian architures and when tries
to install SDK for big-endian machines errors like below will be shown.
Error: struct.error: unpack requires a string argument of length 32. SDK could
not be set up. Relocate script failed. Abort!
Error: IOError: [Errno 22] Invalid argument. SDK could not be set up. Relocate
script failed. Abort!

To fix this, script is modified to support big-endian architecture.

Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/relocate_sdk.py