Hi Daniel,
thanks for the explanation. To be honest, when I was dealing with the
layer structure, I didn't take a case about the layer outside of "work"
directory.
Basically it's the same as mine, but respect the external layers
outside of work, right? So, your proposal makes sense to me.
layers
├── meta-my-layer
├── meta-openembedded
│ ├── meta-networking
│ └── meta-oe
└── poky
└── meta
Forget about the last variant. We don't want to remove the layer
structure.
Regards,
Andrej
On Fri, 2022-03-04 at 10:26 +0100, Daniel Wagenknecht wrote:
> Hello Andrej,
>
> On Thu, 2022-03-03 at 06:35 +0000, Andrej Valek wrote:
> > Hi Daniel,
> >
> > Could you please give here the examples how the layer structure looks
> > before and after change? I want to see how transformation looks like.
>
> With a directory-structure like
>
> /
> ├── repo
> │ └── layers
> │ └── meta-my-layer
> └── work
> ├── build
> └── layers
> └── external
> ├── meta-openembedded
> │ ├── meta-networking
> │ └── meta-oe
> └── poky
> └── meta
>
> and
>
> # Set through bitbake itself
> COREBASE = "/work/layers/external/poky"
> TOPDIR = "/work/build"
> # Set in bblayers.conf
> BBLAYERS = " \
> /repo/layers/meta-my-layer \
> /work/layers/external/meta-openembedded/meta-networking \
> /work/layers/external/meta-openembedded/meta-oe \
> /work/layers/external/poky/meta"
>
> The resulting eSDK layers directory will look like this:
>
> .
> ├── meta-my-layer
> ├── meta-openembedded
> │ ├── meta-networking
> │ └── meta-oe
> └── poky
> └── meta
>
> Without this patch the /repo/meta-my-layer layer broke the build:
> > > This patch resolves issues like
> > > ERROR: my-image-1.0-r0 do_populate_sdk_ext: Failed to generate
> > > filtered task list for extensible SDK:
> > >
> > > ### Shell environment set up for builds. ###
> > > [...]
> > >
> > > ERROR: bitbake failed:
> > > ERROR: The following layer directories do not exist:
> > > ERROR: /build/tmp/work/my-board-linux/my-image/1.0-r0/sdk-
> > > ext/image/tmp-renamed-sdk/layers/../../../repo/layers/meta-my-layer
> > > ERROR: Please check BBLAYERS in /build/tmp/work/my-board-
> > > linux/my-
> > > image/1.0-r0/sdk-ext/image/tmp-renamed-sdk/conf/bblayers.conf
> > > ERROR: Logfile of failure stored in: /build/tmp/work/my-board-
> > > linux/my-image/1.0-r0/temp/log.do_populate_sdk_ext.68844
> > >
>
> Without meta-my-layer this patch should not cause any change.
>
> The alternative
> > > Alternative to this patch:
> > > Delete the whole else / elseif block. This would lead to a layer
> > > structure in
> > > the eSDK like
> > > layers/poky/meta
> > > layers/meta-networking
> > > layers/meta-oe
> > > thus flattening the layer tree.
> would remove the special casing in the implementation (except for
> COREBASE
> sublayers), thus resulting in the following layer structure in the
> eSDKs layers
> directory:
>
> .
> ├── meta-my-layer
> ├── meta-networking
> ├── meta-oe
> └── poky
> └── meta
>
> --
> Sincerely
> Daniel Wagenknecht
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#162713):
https://lists.openembedded.org/g/openembedded-core/message/162713
Mute This Topic: https://lists.openembedded.org/mt/89508969/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-