main/postmarketos-mkinitfs: add option to append SEANDROIDENFORCE to boot.img (!1000)

This commit is contained in:
Dolphin von Chips 2020-02-25 22:39:02 +05:00 committed by Alexey Min
parent f88b94ba7d
commit 2bb9599dce
No known key found for this signature in database
GPG key ID: 0B19D2A65870B448
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,6 @@
pkgname=postmarketos-mkinitfs
pkgver=0.9.1
pkgrel=0
pkgrel=1
pkgdesc="Tool to generate initramfs images for postmarketOS"
url="https://postmarketos.org"
# multipath-tools: kpartx
@ -26,4 +26,4 @@ package() {
sha512sums="1d49db8a48ad513cc548b8a0ea23cc64518e71c93863155b4e9d2271fb46090506331c03d6955d693c8568c248ecc76b218efe4a6f6bba57c41c5f6d775dc61b init.sh.in
3bcec7b35ced7e87c301f71a892e54aa40983396e2ebaa3c8cbd84c91f711b3ca0e30fbc3104b1a1018ec1af51844ba90a63d380359b51db6242562d21776ed0 init_functions.sh
3f46fc98f1f8839153858efb390abd6e2ef655ad46e471d14ab21c2a187776b4b5612aa4f25f136bb52cdcb9143169163ad73d539194459fcad3a8d42fc97bcd mkinitfs.sh"
88cda58aed10e7a8997b117b222b55d19d82e4317604f38fa82cf564858fef5bab94d2ef52b233df1ca262c1fc2c97f02dbe490cde0da7acf678804bf38f95a8 mkinitfs.sh"

View file

@ -312,6 +312,10 @@ create_bootimg()
blobpack "${outfile/initramfs-/blob-}" LNX \
"${outfile/initramfs-/boot.img-}" || exit 1
fi
if [ "${deviceinfo_bootimg_append_seandroidenforce}" == "true" ]; then
echo "==> initramfs: appending 'SEANDROIDENFORCE' to boot.img"
echo -n "SEANDROIDENFORCE" >> "${outfile/initramfs-/boot.img-}"
fi
}
# Append the correct device tree to the linux image file or copy the dtb to the boot partition