How do I use a custom version of Zephyr with NCS?

We have our application in a git repository with a minimal west.yml as below. We want for Zephyr and have the manifest import our fork, instead of recursively getting from nrfconnect manifest. What is the syntax for that? I'd rather fork zephyr only and not whole NCS just to change the manifest.

manifest:
self:
west-commands: scripts/west-commands.yml

remotes:
- name: ncs
url-base: https://github.com/nrfconnect

projects:
- name: nrf
repo-path: sdk-nrf
remote: ncs
revision: v3.1.0
import: true
Parents
  • Solved it this way: Explicitly adding the Zephyr before NCS will override the Zephyr from NCS.

    manifest:
    self:
    west-commands: scripts/west-commands.yml

    remotes:
    - name: <own remote>
    url-base: https://github.com/<own>
    - name: ncs
    url-base: https://github.com/nrfconnect

    projects:
    - name: zephyr
    remote: <own remote>
    repo-path: zephyr
    # always point this to a tag(better) or hash, never a branch!
    revision: <own tag>
    import:
    # Recursively import these from Zephyr
    # Please keep this list sorted alphabetically.
    name-allowlist:
    - ...

    - name: nrf
    repo-path: sdk-nrf
    remote: ncs
    revision: v3.1.0
    # recursively import EVERYTHING from NCS.
    # This has lower priority than explicitly listed ones.
    # Zephyr above overrides the zephyr from NCS
    import: true
Reply
  • Solved it this way: Explicitly adding the Zephyr before NCS will override the Zephyr from NCS.

    manifest:
    self:
    west-commands: scripts/west-commands.yml

    remotes:
    - name: <own remote>
    url-base: https://github.com/<own>
    - name: ncs
    url-base: https://github.com/nrfconnect

    projects:
    - name: zephyr
    remote: <own remote>
    repo-path: zephyr
    # always point this to a tag(better) or hash, never a branch!
    revision: <own tag>
    import:
    # Recursively import these from Zephyr
    # Please keep this list sorted alphabetically.
    name-allowlist:
    - ...

    - name: nrf
    repo-path: sdk-nrf
    remote: ncs
    revision: v3.1.0
    # recursively import EVERYTHING from NCS.
    # This has lower priority than explicitly listed ones.
    # Zephyr above overrides the zephyr from NCS
    import: true
Children
Related