Skip to content

Can I use west to configure a CMake style in-repo but out-of-source setup? #53872

Closed Answered by yashi
inkychris asked this question in Q&A
Discussion options

You must be logged in to vote

A simple answer is "No. West is designed to have a workspace".

With a scheme like Python virtual env, you can't have the T3 topology, which West is required to support.

You can have a west.yml just like the following to put everything under your project. But, West still needs a workspace one above your project directory. This puts all modules under your project directory.

manifest:

  projects:
    - name: zephyr
      url: https://github.com/zephyrproject-rtos/zephyr
      revision: main
      path: zephyr
      west-commands: scripts/west-commands.yml
      import:
        path-prefix: foo/modules/
        name-allowlist:
          - cmsis
          - hal_stm32
          - picolibc

  self

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@inkychris
Comment options

Answer selected by inkychris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants