Skip to content

Commit

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

Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Mar 23, 2023
1 parent 7150f6b commit 1e71adf
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 @@ -30,8 +30,7 @@ if("${KernelARMPlatform}" STREQUAL "tk1")
add_custom_command(
OUTPUT "${output_dtb_location}"
COMMAND
bash -c
"which dtc && dtc -I dts -O dtb ${device_tree_src} > ${output_dtb_location}"
dtc -I dts -O dtb -o ${output_dtb_location} ${device_tree_src}
VERBATIM
DEPENDS ${device_tree_src}
)
Expand Down

0 comments on commit 1e71adf

Please sign in to comment.