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 Jun 6, 2023
1 parent 7cfa149 commit 170234d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/Arm/vm_minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,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

0 comments on commit 170234d

Please sign in to comment.