diff options
-rw-r--r-- | meta-xilinx-standalone-experimental/classes/esw.bbclass | 16 | ||||
-rw-r--r-- | meta-xilinx-standalone/conf/distro/xilinx-standalone.inc | 2 |
2 files changed, 13 insertions, 5 deletions
diff --git a/meta-xilinx-standalone-experimental/classes/esw.bbclass b/meta-xilinx-standalone-experimental/classes/esw.bbclass index 53accd52..f9373b7a 100644 --- a/meta-xilinx-standalone-experimental/classes/esw.bbclass +++ b/meta-xilinx-standalone-experimental/classes/esw.bbclass | |||
@@ -32,37 +32,43 @@ do_configure[depends] += "device-tree:do_deploy" | |||
32 | do_compile[depends] += "device-tree:do_deploy" | 32 | do_compile[depends] += "device-tree:do_deploy" |
33 | do_install[depends] += "device-tree:do_deploy" | 33 | do_install[depends] += "device-tree:do_deploy" |
34 | 34 | ||
35 | def get_xlnx_cmake_machine(fam, d): | 35 | def get_xlnx_cmake_machine(fam, variant, d): |
36 | cmake_machine = fam | 36 | cmake_machine = fam |
37 | if (fam == 'zynqmp'): | 37 | if (fam == 'zynqmp'): |
38 | cmake_machine = 'ZynqMP' | 38 | cmake_machine = 'ZynqMP' |
39 | elif (fam == 'versal'): | 39 | elif (fam == 'versal'): |
40 | cmake_machine = 'Versal' | 40 | cmake_machine = 'Versal' |
41 | if (variant == 'net'): | ||
42 | cmake_machine = 'VersalNet' | ||
41 | elif (fam == 'zynq'): | 43 | elif (fam == 'zynq'): |
42 | cmake_machine = 'Zynq' | 44 | cmake_machine = 'Zynq' |
43 | return cmake_machine | 45 | return cmake_machine |
44 | 46 | ||
45 | def get_xlnx_cmake_processor(tune, machine, d): | 47 | def get_xlnx_cmake_processor(tune, machine, variant, d): |
46 | cmake_processor = tune | 48 | cmake_processor = tune |
47 | if tune.startswith('microblaze'): | 49 | if tune.startswith('microblaze'): |
48 | if (machine == 'psu_pmu_0'): | 50 | if (machine == 'psu_pmu_0'): |
49 | cmake_processor = 'pmu_microblaze' | 51 | cmake_processor = 'pmu_microblaze' |
50 | elif (machine == 'psv_pmc_0'): | 52 | elif (machine in [ 'psv_pmc_0', 'psx_pmc_0' ]): |
51 | cmake_processor = 'plm_microblaze' | 53 | cmake_processor = 'plm_microblaze' |
52 | else: | 54 | else: |
53 | cmake_processor = 'microblaze' | 55 | cmake_processor = 'microblaze' |
54 | elif tune == 'cortexr5': | 56 | elif tune == 'cortexr5': |
55 | cmake_processor = 'cortexr5' | 57 | cmake_processor = 'cortexr5' |
58 | elif tune == 'cortexr52': | ||
59 | cmake_processor = 'cortexr52' | ||
56 | elif tune.startswith('cortexa9'): | 60 | elif tune.startswith('cortexa9'): |
57 | cmake_processor = 'cortexa9' | 61 | cmake_processor = 'cortexa9' |
58 | elif (tune in [ 'cortexa53', 'cortexa72-cortexa53' ]): | 62 | elif (tune in [ 'cortexa53', 'cortexa72-cortexa53' ]): |
59 | cmake_processor = 'cortexa53' | 63 | cmake_processor = 'cortexa53' |
60 | elif tune == 'cortexa72': | 64 | elif tune == 'cortexa72': |
61 | cmake_processor = 'cortexa72' | 65 | cmake_processor = 'cortexa72' |
66 | if (variant == 'net'): | ||
67 | cmake_processor = 'cortexa78' | ||
62 | return cmake_processor | 68 | return cmake_processor |
63 | 69 | ||
64 | XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d)}" | 70 | XLNX_CMAKE_MACHINE = "${@get_xlnx_cmake_machine(d.getVar('SOC_FAMILY'), d.getVar('SOC_VARIANT'), d)}" |
65 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d)}" | 71 | XLNX_CMAKE_PROCESSOR = "${@get_xlnx_cmake_processor(d.getVar('DEFAULTTUNE'), d.getVar('ESW_MACHINE'), d.getVar('SOC_VARIANT'), d)}" |
66 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" | 72 | XLNX_CMAKE_SYSTEM_NAME ?= "Generic" |
67 | XLNX_CMAKE_BSP_VARS ?= "" | 73 | XLNX_CMAKE_BSP_VARS ?= "" |
68 | 74 | ||
diff --git a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc index 27c19081..62c5a211 100644 --- a/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc +++ b/meta-xilinx-standalone/conf/distro/xilinx-standalone.inc | |||
@@ -15,6 +15,8 @@ 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 |
17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" | 17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'cortexr5', ' -DARMR5', '', d)}" |
18 | TUNE_CCARGS:append:versal = " -Dversal" | ||
19 | TUNE_CCARGS:append:versal-net = " -DVERSAL_NET" | ||
18 | 20 | ||
19 | # Make sure all regular recipes are excluded from compatibility | 21 | # Make sure all regular recipes are excluded from compatibility |
20 | # Avoid using this for native, nativesdk or cross recipes | 22 | # Avoid using this for native, nativesdk or cross recipes |