Openembedded Core Discussions
 help / color / mirror / Atom feed
From: <b28495@freescale.com>
To: <openembedded-core@lists.openembedded.org>
Cc: b29882@freescale.com
Subject: [PATCH] linux-dtb.inc: update dtb name to keep it same in D and DEPLOYDIR
Date: Thu, 12 Jul 2012 04:17:26 -0500	[thread overview]
Message-ID: <1342084646-23822-2-git-send-email-b28495@freescale.com> (raw)
In-Reply-To: <1342084646-23822-1-git-send-email-b28495@freescale.com>

From: Ting Liu <b28495@freescale.com>

Device tree binary is named as "devicetree-*" in ${D},
"${KERNEL_IMAGETYPE}-*" in ${DEPLOYDIR}. Keep them the same.

Signed-off-by: Ting Liu <b28495@freescale.com>
---
 meta/recipes-kernel/linux/linux-dtb.inc |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc
index 8aa1458..3dd4d41 100644
--- a/meta/recipes-kernel/linux/linux-dtb.inc
+++ b/meta/recipes-kernel/linux/linux-dtb.inc
@@ -1,5 +1,5 @@
 # Support for device tree generation
-FILES_kernel-devicetree = "/boot/devicetree*"
+FILES_kernel-devicetree = "/boot/*.dtb"
 KERNEL_DEVICETREE_FLAGS = "-R 8 -p 0x3000"
 
 python __anonymous () {
@@ -10,7 +10,7 @@ python __anonymous () {
 	depends = d.getVar("DEPENDS", True)
 	d.setVar("DEPENDS", "%s dtc-native" % depends)
 	packages = d.getVar("PACKAGES", True)
-	d.setVar("PACKAGES", "%s kernel-devicetree" % packages)
+	d.setVar("PACKAGES", "kernel-devicetree %s" % packages)
 }
 
 do_install_append() {
@@ -24,7 +24,10 @@ do_install_append() {
             DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
             DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
             dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o ${DTS_BASE_NAME} ${DTS_FILE}
-            install -m 0644 ${DTS_BASE_NAME} ${D}/boot/devicetree-${DTB_SYMLINK_NAME}.dtb
+            install -m 0644 ${DTS_BASE_NAME} ${D}/boot/${DTB_NAME}.dtb
+            cd ${D}/boot/
+            ln -sf ${DTB_NAME}.dtb ${DTB_SYMLINK_NAME}.dtb
+            cd -
         done
     fi
 }
-- 
1.7.3.4





  reply	other threads:[~2012-07-12  9:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-12  9:17 [PATCH] kernel.bbclass: update image name to keep it same in D and DEPLOYDIR b28495
2012-07-12  9:17 ` b28495 [this message]
2012-07-12 11:03   ` [PATCH] linux-dtb.inc: update dtb " Richard Purdie
2012-07-15 11:07     ` Liu Ting-B28495
2012-07-16 22:23       ` McClintock Matthew-B29882
2012-07-12 11:02 ` [PATCH] kernel.bbclass: update image " Richard Purdie
2012-07-15 11:18   ` Liu Ting-B28495
2012-07-15 16:02     ` Khem Raj
2012-07-17  8:30       ` Liu Ting-B28495
2012-07-16 22:20     ` McClintock Matthew-B29882

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=1342084646-23822-2-git-send-email-b28495@freescale.com \
    --to=b28495@freescale.com \
    --cc=b29882@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox