summaryrefslogtreecommitdiff
path: root/anykernel.sh
diff options
context:
space:
mode:
authorosm0sis <osm0sis@outlook.com>2016-11-24 09:53:56 -0400
committerosm0sis <osm0sis@outlook.com>2016-11-24 09:53:56 -0400
commit8534510bf849f092b0eb4424502b8186f9d0ab7d (patch)
tree7e346ed1042faec1f7d591788a30745c49a0aa20 /anykernel.sh
parentedf85e5599a5d845f663a91f883c2e33ddae0763 (diff)
AK2: add os_version/os_patch_level support
(unpack/mk support already in latest binaries)
Diffstat (limited to 'anykernel.sh')
-rwxr-xr-xanykernel.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/anykernel.sh b/anykernel.sh
index 9500a2a..5e8b781 100755
--- a/anykernel.sh
+++ b/anykernel.sh
@@ -65,6 +65,8 @@ write_boot() {
kerneloff=`cat *-kerneloff`;
ramdiskoff=`cat *-ramdiskoff`;
tagsoff=`cat *-tagsoff`;
+ osver=`cat *-osversion`;
+ oslvl=`cat *-oslevel`;
if [ -f *-second ]; then
second=`ls *-second`;
second="--second $split_img/$second";
@@ -94,7 +96,7 @@ write_boot() {
if [ $? != 0 ]; then
ui_print " "; ui_print "Repacking ramdisk failed. Aborting..."; exit 1;
fi;
- $bin/mkbootimg --kernel $kernel --ramdisk /tmp/anykernel/ramdisk-new.cpio.gz $second --cmdline "$cmdline" --board "$board" --base $base --pagesize $pagesize --kernel_offset $kerneloff --ramdisk_offset $ramdiskoff $secondoff --tags_offset $tagsoff $dtb --output /tmp/anykernel/boot-new.img;
+ $bin/mkbootimg --kernel $kernel --ramdisk /tmp/anykernel/ramdisk-new.cpio.gz $second --cmdline "$cmdline" --board "$board" --base $base --pagesize $pagesize --kernel_offset $kerneloff --ramdisk_offset $ramdiskoff $secondoff --tags_offset $tagsoff --os_version "$osver" --os_patch_level "$oslvl" $dtb --output /tmp/anykernel/boot-new.img;
if [ $? != 0 ]; then
ui_print " "; ui_print "Repacking image failed. Aborting..."; exit 1;
elif [ `wc -c < /tmp/anykernel/boot-new.img` -gt `wc -c < /tmp/anykernel/boot.img` ]; then