diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-19 16:05:31 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-05-19 16:05:31 +0200 |
commit | 091c5e930dbcb16c8920fc550148d2ab4f5379bf (patch) | |
tree | b0dcf60f6d6efe7a690baad0391db301da6c3c9f | |
parent | 4adf03cf90d72d79abc87d54d84e91fbfae384bd (diff) | |
download | aports-091c5e930dbcb16c8920fc550148d2ab4f5379bf.tar.bz2 aports-091c5e930dbcb16c8920fc550148d2ab4f5379bf.tar.xz |
scripts/mkimg.arm: fix uboot
ref #7181
-rwxr-xr-x | scripts/mkimg.arm.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mkimg.arm.sh b/scripts/mkimg.arm.sh index d4b4ac6a78..d2be7d78c0 100755 --- a/scripts/mkimg.arm.sh +++ b/scripts/mkimg.arm.sh @@ -58,10 +58,11 @@ profile_rpi() { } build_uboot() { + set -x # FIXME: Fix apk-tools to extract packages directly - local pkg pkgs="$(apk fetch --simulate --root /tmp/timo/apkroot-armhf/ --recursive u-boot-all | sed -ne "s/^Downloading \([^0-9.]*\)\-.*$/\1/p")" + local pkg pkgs="$(apk fetch --simulate --root "$APKROOT" --recursive u-boot-all | sed -ne "s/^Downloading \([^0-9.]*\)\-.*$/\1/p")" for pkg in $pkgs; do - [ "$pkg" == "u-boot-all" ] || apk fetch --root "$APKROOT" --stdout $pkg | tar -C "$DESTDIR" -xz usr + [ "$pkg" = "u-boot-all" ] || apk fetch --root "$APKROOT" --stdout $pkg | tar -C "$DESTDIR" -xz usr done mkdir -p "$DESTDIR"/u-boot mv "$DESTDIR"/usr/sbin/update-u-boot "$DESTDIR"/usr/share/u-boot/* "$DESTDIR"/u-boot |