diff options
-rw-r--r-- | meta/classes-recipe/kernel.bbclass | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/meta/classes-recipe/kernel.bbclass b/meta/classes-recipe/kernel.bbclass index 36ce659762..2d9943c8a0 100644 --- a/meta/classes-recipe/kernel.bbclass +++ b/meta/classes-recipe/kernel.bbclass | |||
@@ -84,6 +84,10 @@ python __anonymous () { | |||
84 | types = (alttype + ' ' + types).strip() | 84 | types = (alttype + ' ' + types).strip() |
85 | d.setVar('KERNEL_IMAGETYPES', types) | 85 | d.setVar('KERNEL_IMAGETYPES', types) |
86 | 86 | ||
87 | # Since kernel-fitimage.bbclass got replaced by kernel-fit-image.bbclass | ||
88 | if "fitImage" in types: | ||
89 | bb.error("fitImage is no longer supported as a KERNEL_IMAGETYPE(S). FIT images are built by the linux-yocto-fitimage recipe.") | ||
90 | |||
87 | # KERNEL_IMAGETYPES may contain a mixture of image types supported directly | 91 | # KERNEL_IMAGETYPES may contain a mixture of image types supported directly |
88 | # by the kernel build system and types which are created by post-processing | 92 | # by the kernel build system and types which are created by post-processing |
89 | # the output of the kernel build system (e.g. compressing vmlinux -> | 93 | # the output of the kernel build system (e.g. compressing vmlinux -> |
@@ -477,17 +481,10 @@ kernel_do_install() { | |||
477 | install -d ${D}/${KERNEL_IMAGEDEST} | 481 | install -d ${D}/${KERNEL_IMAGEDEST} |
478 | 482 | ||
479 | # | 483 | # |
480 | # When including an initramfs bundle inside a FIT image, the fitImage is created after the install task | 484 | # bundle_initramfs runs after do_install before do_deploy. do_deploy does what's needed therefore. |
481 | # by do_assemble_fitimage_initramfs. | ||
482 | # This happens after the generation of the initramfs bundle (done by do_bundle_initramfs). | ||
483 | # So, at the level of the install task we should not try to install the fitImage. fitImage is still not | ||
484 | # generated yet. | ||
485 | # After the generation of the fitImage, the deploy task copies the fitImage from the build directory to | ||
486 | # the deploy folder. | ||
487 | # | 485 | # |
488 | |||
489 | for imageType in ${KERNEL_IMAGETYPES} ; do | 486 | for imageType in ${KERNEL_IMAGETYPES} ; do |
490 | if [ $imageType != "fitImage" ] || [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ] ; then | 487 | if [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ] ; then |
491 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION} | 488 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType ${D}/${KERNEL_IMAGEDEST}/$imageType-${KERNEL_VERSION} |
492 | fi | 489 | fi |
493 | done | 490 | done |
@@ -845,9 +842,6 @@ kernel_do_deploy() { | |||
845 | 842 | ||
846 | if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then | 843 | if [ ! -z "${INITRAMFS_IMAGE}" -a x"${INITRAMFS_IMAGE_BUNDLE}" = x1 ]; then |
847 | for imageType in ${KERNEL_IMAGETYPES} ; do | 844 | for imageType in ${KERNEL_IMAGETYPES} ; do |
848 | if [ "$imageType" = "fitImage" ] ; then | ||
849 | continue | ||
850 | fi | ||
851 | initramfsBaseName=$imageType-${INITRAMFS_NAME} | 845 | initramfsBaseName=$imageType-${INITRAMFS_NAME} |
852 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.initramfs $deployDir/$initramfsBaseName${KERNEL_IMAGE_BIN_EXT} | 846 | install -m 0644 ${KERNEL_OUTPUT_DIR}/$imageType.initramfs $deployDir/$initramfsBaseName${KERNEL_IMAGE_BIN_EXT} |
853 | if [ -n "${INITRAMFS_LINK_NAME}" ] ; then | 847 | if [ -n "${INITRAMFS_LINK_NAME}" ] ; then |