From 672261a43ed2bd4227c57c3f17d022abdbcc9dae Mon Sep 17 00:00:00 2001 From: Chris Guikema Date: Thu, 21 Sep 2023 13:07:21 -0400 Subject: [PATCH] vm_arm, zynqmp: add cmake option for petalinux This commit adds a CMake option to allow the VM to be configured for different Petalinux versions. Currently, 2021.1 is supported; however, this will allow additional versions to be easily added to the project. Signed-off-by: Chris Guikema --- components/VM_Arm/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/VM_Arm/CMakeLists.txt b/components/VM_Arm/CMakeLists.txt index f88c6085..7deb35c9 100644 --- a/components/VM_Arm/CMakeLists.txt +++ b/components/VM_Arm/CMakeLists.txt @@ -137,6 +137,13 @@ config_option( "KernelPlatformExynos5410 OR KernelPlatformExynos5422 OR KernelPlatformZynqmp" ) +config_choice( + VmZynqmpPetalinuxVersion + ZYNQMP_PETALINUX_VERSION + "The version of Petalinux to use" + "2021_1;VmZynqmpPetalinux2021_1;ZYNQMP_PETALINUX_2021_1;KernelPlatformZynqmp" +) + add_config_library(arm_vm "${configure_string}") DeclareCAmkESARMVM(VM)