Skip to content
Snippets Groups Projects
Commit 091c5e93 authored by Natanael Copa's avatar Natanael Copa
Browse files

scripts/mkimg.arm: fix uboot

ref #7181
parent 4adf03cf
No related branches found
No related tags found
No related merge requests found
...@@ -58,10 +58,11 @@ profile_rpi() { ...@@ -58,10 +58,11 @@ profile_rpi() {
} }
build_uboot() { build_uboot() {
set -x
# FIXME: Fix apk-tools to extract packages directly # 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 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 done
mkdir -p "$DESTDIR"/u-boot mkdir -p "$DESTDIR"/u-boot
mv "$DESTDIR"/usr/sbin/update-u-boot "$DESTDIR"/usr/share/u-boot/* "$DESTDIR"/u-boot mv "$DESTDIR"/usr/sbin/update-u-boot "$DESTDIR"/usr/share/u-boot/* "$DESTDIR"/u-boot
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment