From: "S. Lockwood-Childs" <sjl@vctlabs.com>
To: meta-freescale@yoctoproject.org
Subject: [PATCH] image_types_fsl.bbclass: make sdcard compatible with fitImage
Date: Fri, 27 Oct 2017 02:03:32 -0700 [thread overview]
Message-ID: <20171027090332.GV1001@vctlabs.com> (raw)
Fixes error along the lines of
ERROR: imx-blah.dtb does not exist.
The sdcard image format was assuming all applicable devicetree files
would be available in the deploy area. This is not the case for
fitImage kernel format, which packs both the kernel and all enabled
devicetree files into a single file.
Treat fitImage as an exception, skipping separate install of dtb files
since they get installed as part of the kernel file instead.
Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
---
classes/image_types_fsl.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/classes/image_types_fsl.bbclass b/classes/image_types_fsl.bbclass
index 4709af9..cde1af7 100644
--- a/classes/image_types_fsl.bbclass
+++ b/classes/image_types_fsl.bbclass
@@ -97,7 +97,7 @@ _generate_boot_image() {
done
# Copy device tree file
- if test -n "${KERNEL_DEVICETREE}"; then
+ if [ -n "${KERNEL_DEVICETREE}" -a ${KERNEL_IMAGETYPE} != fitImage ]; then
for DTS_FILE in ${KERNEL_DEVICETREE}; do
DTS_BASE_NAME=`basename ${DTS_FILE} .dtb`
if [ -e "${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${DTS_BASE_NAME}.dtb" ]; then
--
1.9.4
next reply other threads:[~2017-10-27 9:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-27 9:03 S. Lockwood-Childs [this message]
2017-10-27 12:06 ` [PATCH] image_types_fsl.bbclass: make sdcard compatible with fitImage Otavio Salvador
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=20171027090332.GV1001@vctlabs.com \
--to=sjl@vctlabs.com \
--cc=meta-freescale@yoctoproject.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.