Automatically dd u-boot on pinephone and pinetab.

This commit is contained in:
parazyd 2020-02-24 12:19:30 +01:00
parent cf48703321
commit c9888cfa97
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
3 changed files with 12 additions and 3 deletions

View File

@ -58,7 +58,7 @@ prebuild() {
postbuild() {
fn postbuild
req=(device_name compiler)
req=(device_name compiler loopdevice)
ckreq || return 1
notice "executing $device_name postbuild"
@ -94,6 +94,9 @@ EOF
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
popd
sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \
bs=1024 conv=notrunc,nocreat
postbuild-clean
}

View File

@ -56,7 +56,7 @@ prebuild() {
postbuild() {
fn postbuild
req=(device_name compiler)
req=(device_name compilerl loopdevice)
ckreq || return 1
notice "executing $device_name postbuild"
@ -92,6 +92,9 @@ EOF
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
popd
sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \
bs=1024 conv=notrunc,nocreat
postbuild-clean
}

View File

@ -56,7 +56,7 @@ prebuild() {
postbuild() {
fn postbuild
req=(device_name compiler)
req=(device_name compiler loopdevice)
ckreq || return 1
notice "executing $device_name postbuild"
@ -92,6 +92,9 @@ EOF
sudo mkimage -C none -A arm -T script -d boot.txt boot.scr
popd
sudo dd if="$R/dist/u-boot-sunxi-with-spl-sopine.bin" of="${loopdevice}" seek=8 \
bs=1024 conv=notrunc,nocreat
postbuild-clean
}