Newbie problem with paths just building Poky

10 views
Skip to first unread message

Pauli Heikkinen

unread,
Jan 19, 2026, 4:17:40 AMJan 19
to kas-devel
Hi,

According to https://github.com/siemens/kas/issues/175 this should be a place not just for patches and announcements but also for Q&A so here goes...

I made a basic kas file like this:

header:
version: 20

build_system: openembedded

machine: genericx86-64
distro: poky

repos:
# Initially we use poky to build.
# Later on we may be able to dump poky and go with a curated list of repos and our own distro.
# That will have an effect on paths in general as well, as poky has its own "funny" structure.
poky:
tag: "scarthgap-5.0.14"

kas checkout works, but kas build does not:

kas build censored.config.yaml
2026-01-19 10:31:16 - INFO     - kas 5.1 started on Ubuntu 24.04
2026-01-19 10:31:16 - WARNING  - Using tag without commit for repository "poky" is unsafe as tags are mutable.
2026-01-19 10:31:16 - INFO     - Repository poky already contains scarthgap-5.0.14 as tag
2026-01-19 10:31:19 - INFO     - Repository poky checked out to 7e8674996b0164b07e56bc066d0fba790e627061
2026-01-19 10:31:19 - INFO     - /home/pauli/censored/censored-iot-yocto/build$ /home/pauli/censored/censored-iot-yocto/poky/bitbake/bin/bitbake -c build core-image-minimal
ERROR: Unable to parse /home/pauli/censored/censored-iot-yocto/poky/bitbake/lib/bb/parse/__init__.py
Traceback (most recent call last):
  File "/home/pauli/censored/censored-iot-yocto/poky/bitbake/lib/bb/parse/__init__.py", line 145, in resolve_file
    raise IOError(errno.ENOENT, "file %s not found" % fn)
FileNotFoundError: [Errno 2] file /home/pauli/censored/censored-iot-yocto/build/../poky/conf/layer.conf not found

2026-01-19 10:31:20 - ERROR    - Command "/home/pauli/censored/censored-iot-yocto/poky/bitbake/bin/bitbake -c build core-image-minimal" failed with error 1


Now, clearly it's looking in the wrong place - poky/conf instead of poky/build/conf - but what am I doing wrong and how do I fix this, or is this some weird bug?

I could use kas for just checkout, it would still help keep everything organized, but I'd like to do the build step as well if I only only knew how to make it work:

--Pauli

Pauli Heikkinen

unread,
Jan 19, 2026, 4:29:27 AMJan 19
to kas-devel
Sorry,

Actually the conf files were created in build/conf, not in poky/build/conf. Which just adds to my confusion :(

-Pauli

Jan Kiszka

unread,
Jan 19, 2026, 5:17:53 AMJan 19
to Pauli Heikkinen, kas-devel
On 19.01.26 10:17, Pauli Heikkinen wrote:
Hi,

According to https://github.com/siemens/kas/issues/175 this should be a place not just for patches and announcements but also for Q&A so here goes...

I made a basic kas file like this:

header:
version: 20
build_system: openembedded
machine: genericx86-64
distro: poky
repos:
# Initially we use poky to build.
# Later on we may be able to dump poky and go with a curated list of repos and our own distro.
# That will have an effect on paths in general as well, as poky has its own "funny" structure.
poky:
tag: "scarthgap-5.0.14"


This is a multi-layer repo, so you need to specify the layers you want to use here:

  poky:
    ...
    layers:
      meta:
      meta-poly:
      ...

Jan
-- 
Siemens AG, Foundational Technologies
Linux Expert Center

Pauli Heikkinen

unread,
Jan 19, 2026, 6:37:41 AMJan 19
to kas-devel
Thanks, that was indeed the problem.

Would it make sense for kas to detect this and warn the user?

-Pauli

Jan Kiszka

unread,
Jan 19, 2026, 9:19:44 AMJan 19
to Pauli Heikkinen, kas-devel
On 19.01.26 12:37, Pauli Heikkinen wrote:
> Thanks, that was indeed the problem.
>
> Would it make sense for kas to detect this and warn the user?
>

Hmm, that would mean doing the work that bitbake does, checking for
layer.conf, once more in kas. Not too nice in the "fast" path. In an
ideal world, bitbake would give some additional hint...

Jan

> -Pauli
>
> maanantai 19. tammikuuta 2026 klo 12.17.53 UTC+2 jan.kiszka kirjoitti:
>
> On 19.01.26 10:17, Pauli Heikkinen wrote:
>> Hi,
>>
>> According to https://github.com/siemens/kas/issues/175 <https://
>> github.com/siemens/kas/issues/175> this should be a place not just
>> for patches and announcements but also for Q&A so here goes...
>>
>> I made a basic kas file like this:
>>
>> header:
>> version: 20
>> build_system: openembedded
>> machine: genericx86-64
>> distro: poky
>> repos:
>> # Initially we use poky to build.
>> # Later on we may be able to dump poky and go with a curated list
>> of repos and our own distro.
>> # That will have an effect on paths in general as well, as poky
>> has its own "funny" structure.
>> poky:
>> url: "git://git.yoctoproject.org/git/poky <http://
>> git.yoctoproject.org/git/poky>"
>> tag: "scarthgap-5.0.14"
>>
>
> This is a multi-layer repo, so you need to specify the layers you
> want to use here:
>
>   poky:
>     ...
>     layers:
>       meta:
>       meta-poly:
>       ...
>
> Jan
>
> --
> Siemens AG, Foundational Technologies
> Linux Expert Center
>
> --
> You received this message because you are subscribed to the Google
> Groups "kas-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to kas-devel+...@googlegroups.com <mailto:kas-
> devel+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/kas-
> devel/5a1c7fe8-dd7f-4bb2-bb64-100e3da42bffn%40googlegroups.com <https://
> groups.google.com/d/msgid/kas-devel/5a1c7fe8-dd7f-4bb2-
> bb64-100e3da42bffn%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages