u-boot-kobo-clara: add upgrade script (MR 4550)
[ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
219caeccad
commit
f2808cb350
2 changed files with 8 additions and 1 deletions
|
@ -11,6 +11,7 @@ url="https://github.com/akemnade/u-boot-fslc"
|
|||
makedepends="bash bc dtc bison flex openssl-dev"
|
||||
options="!check !tracedeps pmb:cross-native"
|
||||
|
||||
install="$pkgname.post-upgrade"
|
||||
_repository="u-boot-fslc"
|
||||
_commit="a3816f6b51b5dc9083af4142ca5f3a4e4a235336"
|
||||
source="
|
||||
|
@ -31,7 +32,7 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
install -D -m644 "$builddir/u-boot-dtb.imx" "$pkgdir/usr/share/u-boot/kobo-clara/u-boot.imx"
|
||||
install -Dm644 "$builddir/u-boot-dtb.imx" "$pkgdir/usr/share/u-boot/kobo-clara/u-boot.imx"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
DEV=`mount | sed -n -E 's:.*(/dev/mmcblk[0-9])p[0-9] on /boot .*:\1:p'`
|
||||
if [ -n "$DEV" ] ; then
|
||||
dd if=/usr/share/u-boot/kobo-clara/u-boot.imx bs=512 seek=2 of="$DEV"
|
||||
fi
|
||||
|
Loading…
Reference in a new issue