File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: Apache-2.0
2
2
3
- set (GEN_KOBJECT_LIST ${ZEPHYR_BASE} /scripts/build/gen_kobject_list.py )
3
+ find_program (GEN_KOBJECT_LIST NAMES gen_kobject_list gen_kobject_list.py PATHS ${ZEPHYR_BASE} /scripts/build )
4
+ message (STATUS "Found gen_kobject_list: ${GEN_KOBJECT_LIST} " )
5
+ if (GEN_KOBJECT_LIST MATCHES "\. py$" )
6
+ set (GEN_KOBJECT_LIST_INTERPRETER ${PYTHON_EXECUTABLE} )
7
+ endif ()
4
8
5
9
# Invokes gen_kobject_list.py with the given SCRIPT_ARGS, creating a TARGET that depends on the
6
10
# script's OUTPUTS
@@ -16,7 +20,7 @@ function(gen_kobject_list)
16
20
add_custom_command (
17
21
OUTPUT ${arg_OUTPUTS}
18
22
COMMAND
19
- ${PYTHON_EXECUTABLE }
23
+ ${GEN_KOBJECT_LIST_INTERPRETER }
20
24
${GEN_KOBJECT_LIST}
21
25
${arg_SCRIPT_ARGS}
22
26
$< $< BOOL:${CMAKE_VERBOSE_MAKEFILE} > :--verbose>
You can’t perform that action at this time.
0 commit comments