Re: west: multiple local west project installations


David Leach
 

I want to be able to have multiple installations on my system. To expand out my example:

 

  • /home/dleach/work/zephyrproject
    • modules
    • zephyr
    • net-tools
    • tools
    • .west
  • /home/dleach/work/mytestzephyrproject
    • modules
    • zephyr
    • net-tools
    • tools
    • .west

 

I understand that I can’t instantiate a separate project directory tree from within a west created project area but I think I should be able to create multiple project directory trees. But the indication is that using west commits your whole machine to a single project.

 

David

 

From: Cufi, Carles <Carles.Cufi@...>
Sent: Friday, August 16, 2019 9:08 AM
To: David Leach <david.leach@...>; steven.l.wang@...; devel@...
Subject: RE: [Zephyr-devel] west: multiple local west project installations

 

I am not quite sure I understand David.

 

“west init” initializes an installation. It creates a top-level folder which then contains a .west/ subfolder and a bunch of other folders that correspond to the manifest repo and west projects.

Once you are inside that installation you cannot really refer to another installation, but you *can* switch the path to the manifest repository by using your ~/.westconfig or the “west config” command. Say you have a zephyrproject/ top-level installation folder and there’s a zephyr/ folder inside it, at the same level as the .west/ folder. Say also that you have a myrepo/ folder at the same folder level that contains a myrepo/west.yml with your own manifest. Then you can do:

 

west config manifest.path zephyr (&& west update)

west config manifest.path myrepo (&& west update)

 

to switch between manifest repos while remaining in a single installation.

 

Carles

 

From: devel@... <devel@...> On Behalf Of David Leach via Lists.Zephyrproject.Org
Sent: 16 August 2019 15:58
To: steven.l.wang@...; devel@...
Cc: devel@...
Subject: Re: [Zephyr-devel] west: multiple local west project installations

 

no. I want to initialize a second Zephyr project area in parallel. So for example:

 

/home/dleach/work/zephyrproject

/home/dleach/work/zephyrproject2

 

David

 

From: devel@... <devel@...> On Behalf Of via Lists.Zephyrproject.Org
Sent: Friday, August 16, 2019 12:52 AM
To: devel@...
Cc: devel@...
Subject: Re: [Zephyr-devel] west: multiple local west project installations

 

Hi David:

I'm not sure if I understand your question correctly.

Do you mean that you  created "zephyrproject_2" under "/home/dleach/work/zephyrproject" and run "west init"? If so, I don't think you should create "zephyrproject_2" like this. You should create it in another directory, rather than "/home/dleach/work/zephyrproject".

-Steven

On 8/16/2019 12:11 PM, David Leach 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

 

David Leach

 

NXP Semiconductors

phone: +1.210.241.6761

Email: david.leach@...

 

 

** PROPRIETARY & COMPANY-CONFIDENTIAL **

 

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