diff options
Diffstat (limited to 'meta/classes/kernel-fitimage.bbclass')
-rw-r--r-- | meta/classes/kernel-fitimage.bbclass | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/meta/classes/kernel-fitimage.bbclass b/meta/classes/kernel-fitimage.bbclass index 8718ce7e16..11dce67400 100644 --- a/meta/classes/kernel-fitimage.bbclass +++ b/meta/classes/kernel-fitimage.bbclass | |||
@@ -722,22 +722,30 @@ kernel_do_deploy:append() { | |||
722 | if [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ]; then | 722 | if [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ]; then |
723 | echo "Copying fit-image.its source file..." | 723 | echo "Copying fit-image.its source file..." |
724 | install -m 0644 ${B}/fit-image.its "$deployDir/fitImage-its-${KERNEL_FIT_NAME}.its" | 724 | install -m 0644 ${B}/fit-image.its "$deployDir/fitImage-its-${KERNEL_FIT_NAME}.its" |
725 | ln -snf fitImage-its-${KERNEL_FIT_NAME}.its "$deployDir/fitImage-its-${KERNEL_FIT_LINK_NAME}" | 725 | if [ -n "${KERNEL_FIT_LINK_NAME}" ] ; then |
726 | ln -snf fitImage-its-${KERNEL_FIT_NAME}.its "$deployDir/fitImage-its-${KERNEL_FIT_LINK_NAME}" | ||
727 | fi | ||
726 | 728 | ||
727 | echo "Copying linux.bin file..." | 729 | echo "Copying linux.bin file..." |
728 | install -m 0644 ${B}/linux.bin $deployDir/fitImage-linux.bin-${KERNEL_FIT_NAME}.bin | 730 | install -m 0644 ${B}/linux.bin $deployDir/fitImage-linux.bin-${KERNEL_FIT_NAME}.bin |
729 | ln -snf fitImage-linux.bin-${KERNEL_FIT_NAME}.bin "$deployDir/fitImage-linux.bin-${KERNEL_FIT_LINK_NAME}" | 731 | if [ -n "${KERNEL_FIT_LINK_NAME}" ] ; then |
732 | ln -snf fitImage-linux.bin-${KERNEL_FIT_NAME}.bin "$deployDir/fitImage-linux.bin-${KERNEL_FIT_LINK_NAME}" | ||
733 | fi | ||
730 | fi | 734 | fi |
731 | 735 | ||
732 | if [ -n "${INITRAMFS_IMAGE}" ]; then | 736 | if [ -n "${INITRAMFS_IMAGE}" ]; then |
733 | echo "Copying fit-image-${INITRAMFS_IMAGE}.its source file..." | 737 | echo "Copying fit-image-${INITRAMFS_IMAGE}.its source file..." |
734 | install -m 0644 ${B}/fit-image-${INITRAMFS_IMAGE}.its "$deployDir/fitImage-its-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.its" | 738 | install -m 0644 ${B}/fit-image-${INITRAMFS_IMAGE}.its "$deployDir/fitImage-its-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.its" |
735 | ln -snf fitImage-its-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.its "$deployDir/fitImage-its-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_LINK_NAME}" | 739 | if [ -n "${KERNEL_FIT_LINK_NAME}" ] ; then |
740 | ln -snf fitImage-its-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.its "$deployDir/fitImage-its-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_LINK_NAME}" | ||
741 | fi | ||
736 | 742 | ||
737 | if [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ]; then | 743 | if [ "${INITRAMFS_IMAGE_BUNDLE}" != "1" ]; then |
738 | echo "Copying fitImage-${INITRAMFS_IMAGE} file..." | 744 | echo "Copying fitImage-${INITRAMFS_IMAGE} file..." |
739 | install -m 0644 ${B}/arch/${ARCH}/boot/fitImage-${INITRAMFS_IMAGE} "$deployDir/fitImage-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.bin" | 745 | install -m 0644 ${B}/arch/${ARCH}/boot/fitImage-${INITRAMFS_IMAGE} "$deployDir/fitImage-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.bin" |
740 | ln -snf fitImage-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.bin "$deployDir/fitImage-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_LINK_NAME}" | 746 | if [ -n "${KERNEL_FIT_LINK_NAME}" ] ; then |
747 | ln -snf fitImage-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_NAME}.bin "$deployDir/fitImage-${INITRAMFS_IMAGE_NAME}-${KERNEL_FIT_LINK_NAME}" | ||
748 | fi | ||
741 | fi | 749 | fi |
742 | fi | 750 | fi |
743 | fi | 751 | fi |