amazon-soho: Fix postprocess script (MR 2602)

[ci:skip-build] already built successfully in CI
This commit is contained in:
kekzoz 2021-10-13 21:15:56 +01:00 committed by Clayton Craft
parent 4194abfdfa
commit 08bdfccec7
No known key found for this signature in database
GPG key ID: 7A3461CA187CEA54
2 changed files with 7 additions and 5 deletions

View file

@ -2,7 +2,7 @@
pkgname=device-amazon-soho pkgname=device-amazon-soho
pkgdesc="Amazon Kindle Fire HD (3rd Generation)" pkgdesc="Amazon Kindle Fire HD (3rd Generation)"
pkgver=0.1 pkgver=0.1
pkgrel=2 pkgrel=3
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="armv7" arch="armv7"
@ -32,7 +32,9 @@ nonfree_firmware() {
mkdir "$subpkgdir" mkdir "$subpkgdir"
} }
sha512sums="c77494e106caa7c1df36f5b1bc32a178c96eade1f9663d092d59d62935bec30bbe105ba80a591b25335dd3a531800f42bf4cba3a60e063bc093755593d0e7d21 deviceinfo sha512sums="
c77494e106caa7c1df36f5b1bc32a178c96eade1f9663d092d59d62935bec30bbe105ba80a591b25335dd3a531800f42bf4cba3a60e063bc093755593d0e7d21 deviceinfo
1aca985770246b9ca140996a498815b5c9ca3458a6cb84db85825344f01deda8b1de7c88e2e0c610df636ad2179faac7fd90d9992add51186a6449f2d43a3f71 initfs-hook.sh 1aca985770246b9ca140996a498815b5c9ca3458a6cb84db85825344f01deda8b1de7c88e2e0c610df636ad2179faac7fd90d9992add51186a6449f2d43a3f71 initfs-hook.sh
8944b00650e0e19bb5d7f6063827b6a8b9627fabe91f770729881813b7492e4c68a58ac14d98d961cade8290e07a44c8e4a162ec3983c6c1ab88149cd4589b34 amazon-omap-boot-hack.sh b031a2bd8e0e206196df9bfa5299c7172ce5d185c77a148422269e2c8a556769b5f6e29dcfe3f4e50968f8a860a8f927a6fcab2021d48e8912c3d5e76b50d61b amazon-omap-boot-hack.sh
61e8becbf6fa7c1c6c42e481083f5981ae7af33a48cbc53e817d8ac2c6a8e4f67a54b32ae3b8f5f25f7b412165a849dc93a629110dc47b0d16927bf2a12eb7e1 modules-load.conf" 61e8becbf6fa7c1c6c42e481083f5981ae7af33a48cbc53e817d8ac2c6a8e4f67a54b32ae3b8f5f25f7b412165a849dc93a629110dc47b0d16927bf2a12eb7e1 modules-load.conf
"

View file

@ -5,7 +5,7 @@ SOHO_HEADER_DATA='\x50\x03\x00\x00\x00\x25\xe4\x00'
SOHO_HEADER_SIZE=848 SOHO_HEADER_SIZE=848
SOHO_HEADER_OFFSET=52 SOHO_HEADER_OFFSET=52
tempfile=$(mktemp) tempfile=$(mktemp)
bootimgfile=$(echo "${1}" | sed 's/initramfs-/boot.img-/g') bootimgfile=$(echo "${1}" | sed 's/initramfs/boot.img/g')
dd if=/dev/zero of="${tempfile}" bs=$SOHO_HEADER_SIZE count=1 dd if=/dev/zero of="${tempfile}" bs=$SOHO_HEADER_SIZE count=1
printf "%b" $SOHO_HEADER_DATA | dd of="${tempfile}" bs=$SOHO_HEADER_OFFSET seek=1 conv=notrunc printf "%b" $SOHO_HEADER_DATA | dd of="${tempfile}" bs=$SOHO_HEADER_OFFSET seek=1 conv=notrunc
cat "${bootimgfile}" >> "${tempfile}" cat "${bootimgfile}" >> "${tempfile}"