diff options
| author | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-17 17:38:59 -0700 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@xilinx.com> | 2020-03-17 17:43:51 -0700 |
| commit | 7fd6e4ec662894123d6148698b048c3a8570203d (patch) | |
| tree | 6c025de06a3f0190240dee97d6ae2d7735371d04 /meta-xilinx-standalone | |
| parent | 6b1368de94a8c7a49d80e52f5920db0d094d1ba5 (diff) | |
| download | meta-xilinx-7fd6e4ec662894123d6148698b048c3a8570203d.tar.gz | |
esw.bbclass: Adjust get_xlnx_cmake_process to use both tune and machine
Using just machine requires us to list all possible machines, which
really isn't sustainable long term. Instead we want to look at the tune
and translate that to the xlnx cmake specific value. In some microblaze
instances we want to use also use the machine to select custom variants.
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Diffstat (limited to 'meta-xilinx-standalone')
| -rw-r--r-- | meta-xilinx-standalone/classes/esw.bbclass | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/meta-xilinx-standalone/classes/esw.bbclass b/meta-xilinx-standalone/classes/esw.bbclass index 1db34bc6..4a58f705 100644 --- a/meta-xilinx-standalone/classes/esw.bbclass +++ b/meta-xilinx-standalone/classes/esw.bbclass | |||
| @@ -53,23 +53,25 @@ def get_xlnx_cmake_machine(fam, d): | |||
| 53 | cmake_machine = 'Versal' | 53 | cmake_machine = 'Versal' |
| 54 | return cmake_machine | 54 | return cmake_machine |
| 55 | 55 | ||
| 56 | def get_xlnx_cmake_processor(machine, d): | 56 | def get_xlnx_cmake_processor(tune, machine, d): |
| 57 | if (machine == 'cortexa53-zynqmp'): | 57 | cmake_processor = tune |
| 58 | cmake_processor = 'cortexa53' | 58 | if tune.startswith('microblaze'): |
| 59 | elif (machine == 'cortexr5-zynqmp'): | 59 | if (machine == 'microblaze-pmu'): |
| 60 | cmake_processor = 'cortexr5' | 60 | cmake_processor = 'pmu_microblaze' |
| 61 | elif (machine == 'cortexr5-versal'): | 61 | elif (machine == 'microblaze-plm'): |
| 62 | cmake_processor = 'plm_microblaze' | ||
| 63 | else: | ||
| 64 | cmake_processor = 'microblaze' | ||
| 65 | elif (tune in [ 'cortexr5', 'cortexr5f' ]): | ||
| 62 | cmake_processor = 'cortexr5' | 66 | cmake_processor = 'cortexr5' |
| 63 | elif (machine == 'cortexa72-versal'): | 67 | elif (tune in [ 'cortexa53', 'cortexa72-cortexa53' ]): |
| 68 | cmake_processor = 'cortexa53' | ||
| 69 | elif tune == 'cortexa72': | ||
| 64 | cmake_processor = 'cortexa72' | 70 | cmake_processor = 'cortexa72' |
| 65 | elif (machine == 'microblaze-pmu'): | ||
| 66 | cmake_processor = 'pmu_microblaze' | ||
| 67 | elif (machine == 'microblaze-plm'): | ||
| 68 | cmake_processor = 'plm_microblaze' | ||
| 69 | return cmake_processor | 71 | return cmake_processor |
| 70 | 72 | ||
| 71 | XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" | 73 | XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" |
| 72 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('MACHINE'), d)}" | 74 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('MACHINE'), d)}" |
| 73 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" | 75 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" |
| 74 | 76 | ||
| 75 | cmake_do_generate_toolchain_file_append() { | 77 | cmake_do_generate_toolchain_file_append() { |
