Skip to main content
SigmaPrime
Associate III
December 8, 2020
Solved

Clean shell when sourcing this environment script

  • December 8, 2020
  • 3 replies
  • 3747 views

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 ?

This topic has been closed for replies.
Best answer by Olivier GALLIEN

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

3 replies

Olivier GALLIEN
Olivier GALLIENBest answer
ST Technical Moderator
December 8, 2020

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

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.
SigmaPrime
Associate III
December 8, 2020

Oh I get it now!

I misread your comment

Thank you

CARHERO
Associate II
May 12, 2021

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