Re: Overriding import whitelist


Carles Cufi
 

Hi Jamie,

 

This seems to work fine for me locally:

 

$ cat app/west.yml

manifest:

  version: 0.7

 

  projects:

    - name: ncs

      path: nrf

      url: https://github.com/nrfconnect/sdk-nrf

      import:

        name-blacklist:

          - canopennode

  self:

    path: app

 

Carles

 

From: devel@... <devel@...> On Behalf Of lairdjm via lists.zephyrproject.org
Sent: 31 July 2020 09:47
To: devel@...
Subject: [Zephyr-devel] Overriding import whitelist

 

Hi,

For our projects, we are trying to minimise the components we need to check out and download so reduce disk space, bandwidth and automated build times. The default zephyr westyml pulls in a lot of repositories we don’t need and there is the import name whitelist feature which can be used which is what we’re looking for, however it seems that according to https://docs.zephyrproject.org/latest/guides/west/manifest.html#west-manifest-ex3-1 a whitelist overrides a blacklist. For our projects, we are using the Nordic nRF connect SDK which makes use of the name whitelist feature and the nRF connect SDK repository pulls in the zephyr component – is there a way to further limit this from our project? This is from the west.yml file in that repository:

        name-whitelist:

          - canopennode

          - ci-tools

          - cmsis

          - civetweb

          - edtt

          - fatfs

          - hal_nordic

          - hal_st

          - libmetal

          - littlefs

          - loramac-node

          - lvgl

          - mbedtls

          - mipi-sys-t

          - net-tools

          - nrf_hw_models

          - open-amp

          - openthread

          - segger

          - tinycbor

          - tinycrypt

 

So for example we don’t want canopennode so is there a way we can exclude it from our west.yml file which is above the nrf repository which will then be passed down to the zephyr manifest file through the nrf manifest file, whilst overriding the nrf whitelist (our west.yml > nrf west.yml > zephyr west.yml)?

Thanks,

Jamie

Join devel@lists.zephyrproject.org to automatically receive all group messages.