Skip to content

Commit

Permalink
kernel_android: update for new KERNEL_* variables from oe-core
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
  • Loading branch information
shr-project committed Aug 19, 2018
1 parent 6b4d415 commit 5e70b37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions meta-android/classes/kernel_android.bbclass
Expand Up @@ -33,10 +33,8 @@ do_deploy_append() {
# 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
cp ${B}/boot.img ${DEPLOYDIR}/${type}-${KERNEL_IMAGE_NAME}.fastboot
ln -snvf ${type}-${KERNEL_IMAGE_NAME}.fastboot ${DEPLOYDIR}/${type}-${KERNEL_IMAGE_LINK_NAME}.fastboot
done
}

Expand Down
Expand Up @@ -20,8 +20,7 @@ DEPENDS += "abootimg-native"

RDEPENDS_${PN} += "abootimg"

inherit deploy
do_deploy[vardepsexclude] = "KERNEL_IMAGE_BASE_NAME"
inherit deploy kernel-artifact-names
do_compile[depends] += "initramfs-android-image:do_image_complete virtual/kernel:do_deploy"

do_compile() {
Expand All @@ -45,10 +44,8 @@ do_deploy() {
# 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
cp ${B}/boot.img ${DEPLOYDIR}/${type}-${KERNEL_IMAGE_NAME}.fastboot
ln -snvf ${type}-${KERNEL_IMAGE_NAME}.fastboot ${DEPLOYDIR}/${type}-${KERNEL_IMAGE_LINK_NAME}.fastboot
done
}
addtask deploy after do_install before do_build
Expand Down

0 comments on commit 5e70b37

Please sign in to comment.