diff options
Diffstat (limited to 'scripts/mkimg.arm.sh')
-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 |