All of lore.kernel.org
 help / color / mirror / Atom feed
* [rocko/master][PATCH] cmem.inc: add arm64 support for cmem injection
@ 2019-01-09  3:02 Denys Dmytriyenko
  2019-01-09  6:03 ` Suman Anna
  0 siblings, 1 reply; 2+ messages in thread
From: Denys Dmytriyenko @ 2019-01-09  3:02 UTC (permalink / raw)
  To: meta-ti; +Cc: Suman Anna

Since cmem 4.16 now supports arm64, update cmem injection code accordingly
to work with arm64 DTS files.

Cc: Sam Nelson <sam.nelson@ti.com>
Cc: Jacob Stiffler <j-stiffler@ti.com>
Cc: Suman Anna <s-anna@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
 recipes-kernel/linux/cmem.inc | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc
index 0327557f..5fd0b9d9 100644
--- a/recipes-kernel/linux/cmem.inc
+++ b/recipes-kernel/linux/cmem.inc
@@ -70,11 +70,14 @@ python do_setup_cmem() {
 
             # Get destination directory and destination dtsi filename which adds
             #   the MACHINE prefix.
-            dst_dir  = os.path.join(localdata.getVar('S'), 'arch/arm/boot/dts')
+            dst_dir  = os.path.join(localdata.getVar('S'), localdata.expand('arch/${ARCH}/boot/dts'))
             dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}')
 
             # Copy cmem.dtsi into source tree
-            shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi))
+            if localdata.getVar('ARCH') is 'arm64':
+                shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,'ti',dst_dtsi))
+            else:
+                shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi))
 
             # Inject dtsi into each dts in list
             for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split():
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [rocko/master][PATCH] cmem.inc: add arm64 support for cmem injection
  2019-01-09  3:02 [rocko/master][PATCH] cmem.inc: add arm64 support for cmem injection Denys Dmytriyenko
@ 2019-01-09  6:03 ` Suman Anna
  0 siblings, 0 replies; 2+ messages in thread
From: Suman Anna @ 2019-01-09  6:03 UTC (permalink / raw)
  To: Denys Dmytriyenko, meta-ti

On 1/8/19 9:02 PM, Denys Dmytriyenko wrote:
> Since cmem 4.16 now supports arm64, update cmem injection code accordingly
> to work with arm64 DTS files.
> 
> Cc: Sam Nelson <sam.nelson@ti.com>
> Cc: Jacob Stiffler <j-stiffler@ti.com>
> Cc: Suman Anna <s-anna@ti.com>
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>

Thanks for the patch Denys. This is definitely needed to scale for both
v7 and v8 platforms.

Reviewed-by: Suman Anna <s-anna@ti.com>

> ---
>  recipes-kernel/linux/cmem.inc | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc
> index 0327557f..5fd0b9d9 100644
> --- a/recipes-kernel/linux/cmem.inc
> +++ b/recipes-kernel/linux/cmem.inc
> @@ -70,11 +70,14 @@ python do_setup_cmem() {
>  
>              # Get destination directory and destination dtsi filename which adds
>              #   the MACHINE prefix.
> -            dst_dir  = os.path.join(localdata.getVar('S'), 'arch/arm/boot/dts')
> +            dst_dir  = os.path.join(localdata.getVar('S'), localdata.expand('arch/${ARCH}/boot/dts'))
>              dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}')
>  
>              # Copy cmem.dtsi into source tree
> -            shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi))
> +            if localdata.getVar('ARCH') is 'arm64':
> +                shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,'ti',dst_dtsi))
> +            else:
> +                shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi))
>  
>              # Inject dtsi into each dts in list
>              for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split():
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-09  6:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-09  3:02 [rocko/master][PATCH] cmem.inc: add arm64 support for cmem injection Denys Dmytriyenko
2019-01-09  6:03 ` Suman Anna

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.