Skip to content

Commit

Permalink
CMake: avoid using bash and output redirection
Browse files Browse the repository at this point in the history
Do no use shell features, just use program features

Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Jan 24, 2024
1 parent 926def0 commit 4bd7ed7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/Arm/vm_minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)
Expand Down Expand Up @@ -150,7 +149,7 @@ 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}
)
Expand Down

0 comments on commit 4bd7ed7

Please sign in to comment.