Update west manifest

I have a project using ncs 2.7 with the nrf9160.  My west manifest file is set up to import all and it takes forever, so I am trying to narrow it down to only what is needed, but when I change the manifest file and run the west init and west update commands, then try to build in the nrf connect vs code extension like I normally do, I get an error that west build is not recognized

What is the right way to add an allow list to limit what is downloaded using west update?


Original west.yml file

manifest:
  version: "0.10"
  remotes:
    # Add the Memfault GitHub repo
    - name: memfault
      url-base: https://github.com/memfault

  projects:

    # Specify the nRF-Connect SDK as a project dependency.
    - name: sdk-nrf
      path: nrf
      url: https://github.com/nrfconnect/sdk-nrf.git
      revision: v2.7.0
      import: true

    # Add the Memfault SDK
    - name: memfault-firmware-sdk
      path: modules/lib/memfault-firmware-sdk
      revision: 1.18.0
      remote: memfault

Updated west.yml file

manifest:
  version: "0.10"
  remotes:
    # Add the Memfault GitHub repo
    - name: memfault
      url-base: https://github.com/memfault

  projects:

    # Specify the nRF-Connect SDK as a project dependency
    - name: sdk-nrf
      path: nrf
      url: https://github.com/nrfconnect/sdk-nrf.git
      revision: v2.7.0
      import:
        name-allowlist:
        - hal_nordic
        - mcuboot
        - memfault-firmware-sdk
        - nrf
        - trusted-firmware-m

    # Add the Memfault SDK
    - name: memfault-firmware-sdk
      path: modules/lib/memfault-firmware-sdk
      revision: 1.18.0
      remote: memfault

Related