Commit 4fd088e2 authored by Florent Revest's avatar Florent Revest

mkboot, mkbootimg, abootimg: Use newer KERNEL_OUTPUT format for OE morty

parent e2f87587
......@@ -2,6 +2,8 @@
# This class is used to create Android device compatible boot.img files with kernel and initrd using abootimg
#
KERNEL_OUTPUT ?= "${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}"
ABOOTIMG_ARGS ?= ""
do_compile[depends] += "initramfs-android-image:do_image_complete"
......@@ -15,8 +17,14 @@ do_compile_append() {
}
do_deploy_append() {
cp ${B}/boot.img ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.fastboot
ln -sf ${KERNEL_IMAGE_BASE_NAME}.fastboot ${DEPLOYDIR}/${KERNEL_IMAGE_SYMLINK_NAME}.fastboot
# We're probably interested only in zImage KERNEL_IMAGETYPE, but keep
# the for loop for consistency with other bbclasses
for type in ${KERNEL_IMAGETYPES} ; do
base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
symlink_name=${type}-${KERNEL_IMAGE_SYMLINK_NAME}
cp ${B}/boot.img ${DEPLOYDIR}/${base_name}.fastboot
ln -sf ${base_name}.fastboot ${DEPLOYDIR}/${symlink_name}.fastboot
done
}
# Update mechanism
......
......@@ -2,6 +2,8 @@
# This class is used to create Android device compatible boot.img files with kernel and initrd using mkboot
#
KERNEL_OUTPUT ?= "${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}"
do_compile[depends] += "initramfs-android-image:do_image_complete"
DEPENDS += "mkbootimg-tools-native"
......@@ -14,8 +16,14 @@ do_compile_append() {
}
do_deploy_append() {
cp ${B}/boot.img ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.fastboot
ln -sf ${KERNEL_IMAGE_BASE_NAME}.fastboot ${DEPLOYDIR}/${KERNEL_IMAGE_SYMLINK_NAME}.fastboot
# We're probably interested only in zImage KERNEL_IMAGETYPE, but keep
# the for loop for consistency with other bbclasses
for type in ${KERNEL_IMAGETYPES} ; do
base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
symlink_name=${type}-${KERNEL_IMAGE_SYMLINK_NAME}
cp ${B}/boot.img ${DEPLOYDIR}/${base_name}.fastboot
ln -sf ${base_name}.fastboot ${DEPLOYDIR}/${symlink_name}.fastboot
done
}
# Update mechanism
......
......@@ -3,6 +3,7 @@
#
MKBOOTIMG_ARGS ?= ""
KERNEL_OUTPUT ?= "${KERNEL_OUTPUT_DIR}/${KERNEL_IMAGETYPE}"
do_compile[depends] += "initramfs-android-image:do_image_complete"
DEPENDS += "mkbootimg-tools-native"
......@@ -15,8 +16,14 @@ do_compile_append() {
}
do_deploy_append() {
cp ${B}/boot.img ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.fastboot
ln -sf ${KERNEL_IMAGE_BASE_NAME}.fastboot ${DEPLOYDIR}/${KERNEL_IMAGE_SYMLINK_NAME}.fastboot
# We're probably interested only in zImage KERNEL_IMAGETYPE, but keep
# the for loop for consistency with other bbclasses
for type in ${KERNEL_IMAGETYPES} ; do
base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
symlink_name=${type}-${KERNEL_IMAGE_SYMLINK_NAME}
cp ${B}/boot.img ${DEPLOYDIR}/${base_name}.fastboot
ln -sf ${base_name}.fastboot ${DEPLOYDIR}/${symlink_name}.fastboot
done
}
# Update mechanism
......
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