Skip to content

Commit

Permalink
cmake: cleanup old west version support
Browse files Browse the repository at this point in the history
When west is used by Zephyr, then minimum required version is 0.14.0.
Therefore cleanup west.cmake by removing code which are created to
support west versions =< 0.7.x.

Signed-off-by: Torsten Rasmussen <[email protected]>
  • Loading branch information
tejlmand authored and carlescufi committed Aug 24, 2023
1 parent f69d83a commit 5e4710c
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions cmake/modules/west.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,9 @@ else()
${PYTHON_EXECUTABLE_OUT_OF_SYNC}\n")
endif()

# Set WEST to a COMMAND prefix as if it were a find_program()
# result.
#
# From west 0.8 forward, you can run 'python -m west' to run
# the command line application.
set(WEST_MODULE west)
if(${west_version} VERSION_LESS 0.8)
# In west 0.7.x, this wasn't supported yet, but it happens to be
# possible to run 'python -m west.app.main'.
string(APPEND WEST_MODULE .app.main)
endif()

# Need to cache this so the Zephyr Eclipse plugin knows
# how to invoke West.
set(WEST ${PYTHON_EXECUTABLE} -m ${WEST_MODULE} CACHE INTERNAL "West")
# Set WEST to a COMMAND prefix as if it were a find_program() result, and
# cache the value so the Zephyr Eclipse plugin knows how to invoke West.
set(WEST ${PYTHON_EXECUTABLE} -m west CACHE INTERNAL "West")

# Print information about the west module we're relying on. This
# will still work even after output is one line.
Expand Down

0 comments on commit 5e4710c

Please sign in to comment.