summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOnkar Harsh <onkar.harsh@amd.com>2024-02-06 16:33:24 +0530
committerMark Hatle <mark.hatle@amd.com>2024-02-09 09:42:33 -0600
commitfb339f5e1f2d3173addbb7acd31d63c78d63a21d (patch)
tree3f17b2a5daabf397e95384b037ff6021b6a63266
parent2e97fa352b5cf5f17712de96951ffca82c879bae (diff)
downloadmeta-xilinx-fb339f5e1f2d3173addbb7acd31d63c78d63a21d.tar.gz
standalone: Add support for r5/r52 hf tunes
c45298aaf4fe commit (machine/include/arm: Backport tune files from master) in meta-xilinx layer added the support for cortex-r5 and cortexr-r52 hard float ABI tunes. Update the conditions that generate the CMAKE_SYSTEM_PROCESSOR to incorporate these two new tunes. Moreover, some additional cflags (-DARMR5 -DARMR52) are needed to compile Cortex R52 specific boot code in embeddedsw. Update the same. Signed-off-by: Onkar Harsh <onkar.harsh@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--meta-xilinx-standalone-experimental/classes/esw.bbclass4
-rw-r--r--meta-xilinx-standalone/conf/distro/xilinx-standalone.inc1
2 files changed, 3 insertions, 2 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass
index f9373b7a..f13df66b 100644
--- a/meta-xilinx-standalone-experimental/classes/esw.bbclass
+++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass
@@ -53,9 +53,9 @@ def get_xlnx_cmake_processor(tune, machine, variant, d):
53 cmake_processor = 'plm_microblaze' 53 cmake_processor = 'plm_microblaze'
54 else: 54 else:
55 cmake_processor = 'microblaze' 55 cmake_processor = 'microblaze'
56 elif tune == 'cortexr5': 56 elif (tune in [ 'cortexr5', 'cortexr5hf' ]):
57 cmake_processor = 'cortexr5' 57 cmake_processor = 'cortexr5'
58 elif tune == 'cortexr52': 58 elif (tune in [ 'cortexr52', 'cortexr52hf' ]):
59 cmake_processor = 'cortexr52' 59 cmake_processor = 'cortexr52'
60 elif tune.startswith('cortexa9'): 60 elif tune.startswith('cortexa9'):
61 cmake_processor = 'cortexa9' 61 cmake_processor = 'cortexa9'
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
index 62c5a211..e38342b5 100644
--- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
+++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc
@@ -15,6 +15,7 @@ ESW_CFLAGS ?= ""
15 15
16# Cortex R5 requires an additional cflag to be passed for compatibility with the embeddedsw 16# Cortex R5 requires an additional cflag to be passed for compatibility with the embeddedsw
17TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" 17TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}"
18TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr52', ' -DARMR5 -DARMR52', '', d)}"
18TUNE_CCARGS:append:versal = " -Dversal" 19TUNE_CCARGS:append:versal = " -Dversal"
19TUNE_CCARGS:append:versal-net = " -DVERSAL_NET" 20TUNE_CCARGS:append:versal-net = " -DVERSAL_NET"
20 21