summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2019-01-09 09:02:12 +0000
committerDenys Dmytriyenko <denys@ti.com>2019-01-09 19:57:45 +0000
commit9debfc6155ac97050cb85833515ef2617919d6de (patch)
treee26966725aa7000c6a8159702896051d560d5fdf /recipes-kernel
parent06192ea1216f7d18ebac005ac71cd259a67d703e (diff)
downloadmeta-ti-9debfc6155ac97050cb85833515ef2617919d6de.tar.gz
cmem.inc: add arm64 support for cmem injection
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> Reviewed-by: Suman Anna <s-anna@ti.com> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/cmem.inc7
1 files 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() {
70 70
71 # Get destination directory and destination dtsi filename which adds 71 # Get destination directory and destination dtsi filename which adds
72 # the MACHINE prefix. 72 # the MACHINE prefix.
73 dst_dir = os.path.join(localdata.getVar('S'), 'arch/arm/boot/dts') 73 dst_dir = os.path.join(localdata.getVar('S'), localdata.expand('arch/${ARCH}/boot/dts'))
74 dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}') 74 dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}')
75 75
76 # Copy cmem.dtsi into source tree 76 # Copy cmem.dtsi into source tree
77 shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi)) 77 if localdata.getVar('ARCH') is 'arm64':
78 shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,'ti',dst_dtsi))
79 else:
80 shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi))
78 81
79 # Inject dtsi into each dts in list 82 # Inject dtsi into each dts in list
80 for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split(): 83 for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split():