Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # Script to re-generate pseudo-prebuilt-2.33.tar.xz |
| 4 | # |
| 5 | # Copyright (C) 2021 Richard Purdie |
| 6 | # |
| 7 | # SPDX-License-Identifier: GPL-2.0-only |
| 8 | # |
| 9 | |
| 10 | for i in x86_64 aarch64 i686; do |
| 11 | if [ ! -e $i-nativesdk-libc.tar.xz ]; then |
| 12 | wget http://downloads.yoctoproject.org/releases/uninative/3.2/$i-nativesdk-libc.tar.xz |
| 13 | fi |
| 14 | tar -xf $i-nativesdk-libc.tar.xz --wildcards \*/lib/libpthread\* \*/lib/libdl\* |
| 15 | cd $i-linux/lib |
| 16 | ln -s libdl.so.2 libdl.so |
| 17 | ln -s libpthread.so.0 libpthread.so |
| 18 | cd ../.. |
| 19 | done |
| 20 | tar -cJf pseudo-prebuilt-2.33.tar.xz *-linux |