cancel
Showing results for 
Search instead for 
Did you mean: 

Clean shell when sourcing this environment script

SigmaPrime
Senior

Hello

I switched to the Distribution package to have access to the layers provided by ST.

After I use command repo sync I, a file named layer is created.

When I:

DISTRO=openstlinux-weston MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.sh 

I get the following error

[source layers/openembedded-core/oe-init-build-env][from nothing]

Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script.

How can I clean the shell environment ?

1 ACCEPTED SOLUTION

Accepted Solutions
Olivier GALLIEN
ST Employee

Hi @SigmaPrime​ 

Indeed you can not use Distribution in a shell you initially source the SDK for Developer package.

Simple way is just to open a new shell terminal.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
Olivier GALLIEN
ST Employee

Hi @SigmaPrime​ 

Indeed you can not use Distribution in a shell you initially source the SDK for Developer package.

Simple way is just to open a new shell terminal.

Olivier

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Oh I get it now!

I misread your comment

Thank you

CARHERO
Associate III

I also had the same error and recovered by opening a new terminal. Thank you