aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-05-19 16:05:31 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2017-05-19 16:05:31 +0200
commit091c5e930dbcb16c8920fc550148d2ab4f5379bf (patch)
treeb0dcf60f6d6efe7a690baad0391db301da6c3c9f
parent4adf03cf90d72d79abc87d54d84e91fbfae384bd (diff)
downloadaports-091c5e930dbcb16c8920fc550148d2ab4f5379bf.tar.bz2
scripts/mkimg.arm: fix uboot
ref #7181
-rwxr-xr-xscripts/mkimg.arm.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mkimg.arm.sh b/scripts/mkimg.arm.sh
index d4b4ac6..d2be7d7 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