diff options
Diffstat (limited to 'anykernel.sh')
-rwxr-xr-x | anykernel.sh | 4 |
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 |