Last active
December 18, 2015 13:39
-
-
Save sakuramilk/5791980 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make_boot_image() | |
{ | |
./release-tools/mkbootfs $RAMDISK_TMP_DIR > $BIN_DIR/ramdisk-$IMAGE_NAME.cpio | |
lzma < $BIN_DIR/ramdisk-$IMAGE_NAME.cpio > $BIN_DIR/ramdisk-$IMAGE_NAME.img | |
./release-tools/mkbootimg --cmdline "androidboot.hardware=qcom user_debug=31 zcache" --base $KERNEL_BASEADDRESS --pagesize 2048 --ramdisk_offset $KERNEL_RAMDISK_OFFSET --kernel $BIN_DIR/kernel --ramdisk $BIN_DIR/ramdisk-$IMAGE_NAME.img --output $BIN_DIR/$IMAGE_NAME.img | |
echo " $BIN_DIR/$IMAGE_NAME.img" | |
rm $BIN_DIR/ramdisk-$IMAGE_NAME.img | |
rm $BIN_DIR/ramdisk-$IMAGE_NAME.cpio | |
rm $BIN_DIR/kernel | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment