All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
To: <openembedded-core@lists.openembedded.org>
Subject: [PATCH 2/2] kernel.bbclass: Fix fitimage deploy errors
Date: Wed, 13 Dec 2017 18:23:51 -0800	[thread overview]
Message-ID: <1513218231-12626-3-git-send-email-manjukumar.harthikote-matha@xilinx.com> (raw)
In-Reply-To: <1513218231-12626-1-git-send-email-manjukumar.harthikote-matha@xilinx.com>

When deploying fitImage with initramfs bundle deploy fails with
following error

| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_deploy
| install: cannot stat 'arch/arm64/boot/fitImage': No such file or
directory

Skip using the do_deploy for fitimage in kernel.bbclass, this is handled
by kernel-fitimage.bbclass

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
---
 meta/classes/kernel.bbclass | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 4240752..757bc73 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -630,8 +630,10 @@ MODULE_TARBALL_DEPLOY ?= "1"
 
 kernel_do_deploy() {
 	for type in ${KERNEL_IMAGETYPES} ; do
-		base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
-		install -m 0644 ${KERNEL_OUTPUT_DIR}/${type} ${DEPLOYDIR}/${base_name}.bin
+		if [ "$type" != "fitImage" ] ; then
+			base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
+			install -m 0644 ${KERNEL_OUTPUT_DIR}/${type} ${DEPLOYDIR}/${base_name}.bin
+		fi
 	done
 	if [ ${MODULE_TARBALL_DEPLOY} = "1" ] && (grep -q -i -e '^CONFIG_MODULES=y$' .config); then
 		mkdir -p ${D}/lib
@@ -640,10 +642,12 @@ kernel_do_deploy() {
 	fi
 
 	for type in ${KERNEL_IMAGETYPES} ; do
-		base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
-		symlink_name=${type}-${KERNEL_IMAGE_SYMLINK_NAME}
-		ln -sf ${base_name}.bin ${DEPLOYDIR}/${symlink_name}.bin
-		ln -sf ${base_name}.bin ${DEPLOYDIR}/${type}
+		if [ "$type" != "fitImage" ] ; then
+			base_name=${type}-${KERNEL_IMAGE_BASE_NAME}
+			symlink_name=${type}-${KERNEL_IMAGE_SYMLINK_NAME}
+			ln -sf ${base_name}.bin ${DEPLOYDIR}/${symlink_name}.bin
+			ln -sf ${base_name}.bin ${DEPLOYDIR}/${type}
+		fi
 	done
 
 	cd ${B}
-- 
2.7.4



  parent reply	other threads:[~2017-12-14  2:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-14  2:23 [PATCH 0/2] Fix build issues with fitimage Manjukumar Matha
2017-12-14  2:23 ` [PATCH 1/2] kernel.bbclass: Fix fitimage build failure Manjukumar Matha
2017-12-14  2:23 ` Manjukumar Matha [this message]
2017-12-14 11:18 ` [PATCH 0/2] Fix build issues with fitimage André Draszik
2017-12-15  0:18   ` Denys Dmytriyenko
2017-12-15  0:56     ` Manjukumar Harthikote Matha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513218231-12626-3-git-send-email-manjukumar.harthikote-matha@xilinx.com \
    --to=manjukumar.harthikote-matha@xilinx.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.