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 c152a09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/Arm/vm_minimal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ if("${KernelARMPlatform}" STREQUAL "tk1")
set(output_dtb_location "linux/linux-dtb")
add_custom_command(
OUTPUT "${output_dtb_location}"
COMMAND
bash -c
"which dtc && dtc -I dts -O dtb ${device_tree_src} > ${output_dtb_location}"
COMMAND dtc -I dts -O dtb -o ${output_dtb_location} ${device_tree_src}
VERBATIM
DEPENDS ${device_tree_src}
)
Expand Down

0 comments on commit c152a09

Please sign in to comment.