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 authored and lsf37 committed Jan 24, 2024
1 parent 926def0 commit 7dae5f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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,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}
)
Expand Down

0 comments on commit 7dae5f3

Please sign in to comment.