Patchwork [v2] linux-dtb: add dtb into deploy cache package

login
register
mail settings
Submitter Zhenhua Luo
Date Dec. 23, 2011, 3 a.m.
Message ID <1324609224-28618-1-git-send-email-b19537@freescale.com>
Download mbox | patch
Permalink /patch/17539/
State Superseded
Headers show

Comments

Zhenhua Luo - Dec. 23, 2011, 3 a.m.
From: Zhenhua Luo <b19537@freescale.com>

    > current dtb is not included in the deploy cache package, dtb is missing
      when build kernel from caches

Signed-off-by: Zhenhua Luo <b19537@freescale.com>
---
 meta/recipes-kernel/linux/linux-dtb.inc |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Zhenhua Luo - Dec. 27, 2011, 3:25 a.m.
Please ignore. 

A new version will be submitted. 


Best Regards,

Zhenhua


> -----Original Message-----
> From: Luo Zhenhua-B19537
> Sent: Friday, December 23, 2011 11:00 AM
> To: openembedded-core@lists.openembedded.org
> Cc: Luo Zhenhua-B19537
> Subject: [PATCH v2 oe-core] linux-dtb: add dtb into deploy cache package
> 
> From: Zhenhua Luo <b19537@freescale.com>
> 
>     > current dtb is not included in the deploy cache package, dtb is missing
>       when build kernel from caches
> 
> Signed-off-by: Zhenhua Luo <b19537@freescale.com>
> ---
>  meta/recipes-kernel/linux/linux-dtb.inc |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-
> kernel/linux/linux-dtb.inc
> index 7ec7584..e537d86 100644
> --- a/meta/recipes-kernel/linux/linux-dtb.inc
> +++ b/meta/recipes-kernel/linux/linux-dtb.inc
> @@ -25,3 +25,11 @@ do_install_append() {
>      fi
>  }
> 
> +do_deploy_append() {
> +    if test -n "${KERNEL_DEVICETREE}"; then
> +        install -d ${DEPLOYDIR}
> +        install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.dtb
> ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.dtb
> +        cd ${DEPLOYDIR}
> +        ln -sf ${KERNEL_IMAGE_BASE_NAME}.dtb ${KERNEL_IMAGE_SYMLINK_NAME}.dtb
> +    fi
> +}
> --
> 1.7.0.4

Patch

diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc
index 7ec7584..e537d86 100644
--- a/meta/recipes-kernel/linux/linux-dtb.inc
+++ b/meta/recipes-kernel/linux/linux-dtb.inc
@@ -25,3 +25,11 @@  do_install_append() {
     fi
 }
 
+do_deploy_append() {
+    if test -n "${KERNEL_DEVICETREE}"; then
+        install -d ${DEPLOYDIR}
+        install -m 0644 ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE_BASE_NAME}.dtb ${DEPLOYDIR}/${KERNEL_IMAGE_BASE_NAME}.dtb
+        cd ${DEPLOYDIR}
+        ln -sf ${KERNEL_IMAGE_BASE_NAME}.dtb ${KERNEL_IMAGE_SYMLINK_NAME}.dtb
+    fi
+}