Re: west: multiple local west project installations


David Leach
 

Yeah, I'm trying to do some work to add a module when requires 1) adding the module, 2) updating west.yaml, and 3) making changes to the zephyr CMakeLists.txt tree to build the module. But I didn't want to muck with my current project area so hoped that I could just create a new project area.

Unfortunate that it is global if that is true.

David

-----Original Message-----
From: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Sent: Friday, August 16, 2019 2:36 AM
To: David Leach <david.leach@nxp.com>
Cc: zephyr-devel <zephyr-devel@lists.zephyrproject.org>
Subject: Re: [Zephyr-devel] west: multiple local west project installations

Hello David,

On Fri, 16 Aug 2019 04:11:32 +0000
"David Leach" <david.leach@nxp.com> wrote:

Can I use west to initialize multiple working directories?

I'm experimenting with adding a module and I wanted to a setup so I
created a 'zephyrproject_2' directory and ran a 'west init' command
with some additional parameters to use the west.yaml of my url/branch
but it returns an error which leads me to think a system can only have
one installation:

FATAL ERROR: already in an installation
(/home/dleach/work/zephyrproject), aborting
My understanding is that *west* installation (i.e. the tool itself) is indeed single/global (though you probably can work that around using Python virtualenv's). But west can definitely manage multiple local "workspaces". I figure the requirement for those is that they don't overlap (which includes containment).

For example, I historically had Zephyr checkout under ~/projects-3rdparty/Embedded/Zephyr/ , and when west became unavoidable, I converted that path to a west "workspace".

Recently, I wanted to create another workspace, and tried to do that under the same ~/projects-3rdparty/Embedded/Zephyr/, but it failed with a message similar to the above. So, I went to create another workspace under ~/projects-3rdparty/Embedded/zephyr-googleiot/ , which worked.



David Leach

NXP Semiconductors
phone: +1.210.241.6761
Email: david.leach@nxp.com<mailto:david.leach@nxp.com>

[cid:image002.png@01D1496D.4A813660]

** PROPRIETARY & COMPANY-CONFIDENTIAL **





--
Best Regards,
Paul

Linaro.org | Open source software for ARM SoCs Follow Linaro: https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLinaro&;data=02%7C01%7Cdavid.leach%40nxp.com%7Ce9d2c87148654f168c7908d7221c5493%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637015377391350705&amp;sdata=8HqSPZCEGE8sXzLzJ3J6R3%2BUfBLCrt6EQ3PMZuCBILw%3D&amp;reserved=0
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Ftwitter.com%2F%23!%2Flinaroorg&amp;data=02%7C01%7Cdavid.leach%40nxp.com%7Ce9d2c87148654f168c7908d7221c5493%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637015377391350705&amp;sdata=1hfXId%2Ffe70iNsIyCJ2xAUKNephzxux%2BiN52rSDe8mQ%3D&amp;reserved=0 - https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.linaro.org%2Flinaro-blog&;data=02%7C01%7Cdavid.leach%40nxp.com%7Ce9d2c87148654f168c7908d7221c5493%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637015377391350705&amp;sdata=sFpqi%2BGwnrcW9ya8h3VZf9lXI4NnTYu0BqwOyOkWILI%3D&amp;reserved=0

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