From 7dae5f33f1d1cc2ad7c6e53af83fdf1036eae2cd Mon Sep 17 00:00:00 2001 From: Axel Heider Date: Fri, 5 May 2023 15:55:26 +0200 Subject: [PATCH] CMake: avoid using bash and output redirection Do no use shell features, just use program features Signed-off-by: Axel Heider --- apps/Arm/vm_minimal/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/Arm/vm_minimal/CMakeLists.txt b/apps/Arm/vm_minimal/CMakeLists.txt index 3ceae3fd..b4fc6474 100644 --- a/apps/Arm/vm_minimal/CMakeLists.txt +++ b/apps/Arm/vm_minimal/CMakeLists.txt @@ -31,8 +31,7 @@ if("${KernelARMPlatform}" STREQUAL "tk1") add_custom_command( OUTPUT linux/linux-dtb COMMAND - bash -c - "which dtc && dtc -I dts -O dtb ${CAMKES_ARM_LINUX_DIR}/${device_tree_src} > linux/linux-dtb" + dtc -I dts -O dtb -o linux/linux-dtb ${CAMKES_ARM_LINUX_DIR}/${device_tree_src} VERBATIM DEPENDS ${CAMKES_ARM_LINUX_DIR}/${device_tree_src} ) @@ -150,7 +149,8 @@ elseif("${KernelARMPlatform}" STREQUAL "zcu102") add_custom_command( OUTPUT linux/linux-dtb - COMMAND bash -c "which dtc && dtc -q -I dts -O dtb ${dts_file} > linux/linux-dtb" + COMMAND + dtc -q -I dts -O dtb -o linux/linux-dtb ${dts_file} VERBATIM DEPENDS ${dts_file} )