Commit cf139eff authored by anyc's avatar anyc

mkboot.bbclass: fill in actual kernel and ramdisk size on demand

parent 35e4cd1a
......@@ -11,7 +11,9 @@ do_compile_append() {
cd ${B}
cp ${WORKDIR}/img_info .
sed -i "s@%%KERNEL%%@${B}/${KERNEL_OUTPUT}@" img_info
sed -i "s@%%KERNEL_SIZE%%@$(stat --printf="%s" ${B}/${KERNEL_OUTPUT})@" img_info
sed -i "s@%%RAMDISK%%@${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz@" img_info
sed -i "s@%%RAMDISK_SIZE%%@$(stat --printf="%s" ${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz)@" img_info
mkboot . boot.img || { echo "mkboot failed"; exit 1; }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment