[OE-core] [PATCH] os-release: sanitize required fields

2020-04-30 Thread Vyacheslav Yurkov
Currently only VERSION_ID field is sanitized, but os-release (5) has more fields with the same requirement. Moreover, those fields come unquoted in most distributions, because quotes are not needed for a values without whitespaces. Signed-off-by: Vyacheslav Yurkov --- meta/recipes-core/os

[OE-core] [PATCH] bitbake: fetch2: Fix CVS fetcher clean method

2020-05-04 Thread Vyacheslav Yurkov
From: Vyacheslav Yurkov Clean method assumes that download directory should be determined from CVSDIR variable, but this is handled differently in download method. Now we set download directory for the whole class in urldata_init Signed-off-by: Vyacheslav Yurkov --- bitbake/lib/bb/fetch2

[OE-core] [PATCH] module.bbclass: add HOSTCC for out-of-tree modules

2020-10-01 Thread Vyacheslav Yurkov
From: Vyacheslav Yurkov Module build environment should be aware of native C and C++ compiler's environment otherwise kernel Makefile might silently fail for some checks. A particular example is CONFIG_STACK_VALIDATION when CONFIG_UNWINDER_ORC is used, Makefile tries unsuccessfully locate libelf

Re: [OE-core] [PATCH] module.bbclass: add HOSTCC for out-of-tree modules

2020-10-01 Thread Vyacheslav Yurkov
On 01.10.2020 16:36, Bruce Ashfield wrote: We already ran into this with the main kernel flags, and we don't want to duplicate them here. Why aren't what we have in kernel.bbclass working in your scenario ? Bruce Because kernel.bbclass is not pulled in into the environment of out-of-tree

Re: [OE-core] [PATCH] module.bbclass: add HOSTCC for out-of-tree modules

2020-10-01 Thread Vyacheslav Yurkov
On 01.10.2020 16:53, Bruce Ashfield wrote: On Thu, Oct 1, 2020 at 10:47 AM Vyacheslav Yurkov wrote: On 01.10.2020 16:36, Bruce Ashfield wrote: We already ran into this with the main kernel flags, and we don't want to duplicate them here. Why aren't what we have in kernel.bbclass working

[OE-core] [PATCH] dhcp: use included bind version

2020-06-10 Thread Vyacheslav Yurkov
From: Vyacheslav Yurkov ISC DHCP should link against BIND9 libraries, which are tailored specifically for DHCP. BIND9 package in Yocto core layer has different configuraiton, in particular it has threads and epoll enabled. ISC DHCP isn't a multi-threaded application, running it with bind9

Re: [OE-core] [PATCH] dhcp: use included bind version

2020-06-10 Thread Vyacheslav Yurkov
On 10.06.2020 17:05, Richard Purdie wrote: You seem to disable parallel make yet no mention of that in the log? Right, I forgot to mention that in the commit message. Building bind at 'compile' stage breaks parallel make. I assume that can be addressed, but I'd need to take a look at how to

Re: [OE-core] [PATCH] dhcp: use included bind version

2020-06-10 Thread Vyacheslav Yurkov
On 10.06.2020 18:07, Adrian Bunk wrote: On Wed, Jun 10, 2020 at 04:35:20PM +0200, Vyacheslav Yurkov wrote: ... BIND9 libraries support a lot of options specifically geared towards optimizing DNS operations, many of which do not play nicely with ISC DHCP's "architecture". It isn't n

Re: [OE-core] [PATCH] dhcp: use included bind version

2020-06-10 Thread Vyacheslav Yurkov
On 10.06.2020 19:42, Adrian Bunk wrote: Right, but I don't think there's a way to build two configurations out of one recipe, isn't it? It is possible. More common is sharing the sources between two (or more) recipes with an .inc file. That's not really what I had in mind. That would result in

Re: [OE-core] [PATCH] dhcp: use included bind version

2020-06-13 Thread Vyacheslav Yurkov
On 13.06.2020 02:41, Khem Raj wrote: I think it would be good to share if we can. Shipping two versions of bind libraries is less than ideal, have you explored disabling threading in the bind recipe and see if named is happy with that ? Yes, I have. It partially solves the issue. At least DHCP

[OE-core] [PATCH] license_image.bbclass: use canonical name for license files

2020-11-17 Thread Vyacheslav Yurkov
From: Vyacheslav Yurkov When copying license files to the image rootfs, i.e to /usr/share/common-licenses, a canonical name of a license should be used, otherwise duplicated files end up in common-licenses directory. For example, GPL-2.0 license according to conf/license.conf can be referenced

[OE-core] [PATCH v2] npm.bbclass: use python3 for npm config

2021-01-28 Thread Vyacheslav Yurkov
python2-native executable is not available in sysroot anymore, which causes compilation of some nodejs modules to fail. Switch to python3 as a default python version. Signed-off-by: Vyacheslav Yurkov --- meta/classes/npm.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[OE-core] [PATCH] npm.bbclass: use python3 for npm config

2021-01-28 Thread Vyacheslav Yurkov
python2-native executable is not available in sysroot anymore, which causes compilation of some nodejs modules to fail. Switch to pytho3 as a default python version. Signed-off-by: Vyacheslav Yurkov --- meta/classes/npm.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

Re: [OE-core] [PATCH] overlayfs.bbclass: generate overlayfs mount units

2021-06-09 Thread Vyacheslav Yurkov
Hi Andrei, Like you mentioned, it's application specific. The advantage of overlayfs here is that you preserve the data that was changed by user (in case of persistent storage), which of course would hide the data from rootfs, or your just see the defaults from rootfs if the data was not

Re: [OE-core] [PATCH] overlayfs.bbclass: generate overlayfs mount units

2021-06-05 Thread Vyacheslav Yurkov
on /etc. However, that did not work with systemd. Did you ever try to add /etc as a mount point? On Thu, 2021-06-03 at 16:21 +0200, Vyacheslav Yurkov wrote: It's often desired in Embedded System design to have a read-only rootfs. But a lot of different applications might want to have a read-write

Re: [OE-core] [PATCH] overlayfs.bbclass: generate overlayfs mount units

2021-06-05 Thread Vyacheslav Yurkov
nt service. BR On 6/3/21 4:21 PM, Vyacheslav Yurkov wrote: It's often desired in Embedded System design to have a read-only rootfs. But a lot of different applications might want to have a read-write access to some parts of a filesystem. It can be especially useful when your update mechanism

[OE-core] [PATCH] overlayfs.bbclass: generate overlayfs mount units

2021-06-03 Thread Vyacheslav Yurkov
to be preserved between updates. This class provides a way to achieve that by means of overlayfs and at the same time keeping the base rootfs read-only. Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 132 + 1 file changed, 132 insertions

Re: [OE-core] [PATCH] overlayfs.bbclass: generate overlayfs mount units

2021-06-04 Thread Vyacheslav Yurkov
lease give me a few hints as to where current tests are stored and how to run them? Is it meta-selftest layer? It really also needs a maintainer entry, since otherwise the maintenance work falls to the same already overloaded folks. You mean just an entry like: MAINTAINER = "Vy

[OE-core] [PATCH v2 4/8] rootfs-postcommands: add QA check for overlayfs

2021-07-09 Thread Vyacheslav Yurkov
The check is conditional and only enabled when overlayfs is set in DISTRO_FEATURES Signed-off-by: Vyacheslav Yurkov --- meta/classes/rootfs-postcommands.bbclass | 24 1 file changed, 24 insertions(+) diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes

[OE-core] [PATCH v2 1/8] overlayfs-qa: common functions for overlayfs

2021-07-09 Thread Vyacheslav Yurkov
This class provides commom functions for overlayfs and its QA check, which is performed in ROOTFS_POSTPROCESS_COMMAND Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs-qa.bbclass | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 meta/classes/overlayfs

[OE-core] [PATCH v2 2/8] overlayfs.bbclass: generate overlayfs mount units

2021-07-09 Thread Vyacheslav Yurkov
to be preserved between updates. This class provides a way to achieve that by means of overlayfs and at the same time keeping the base rootfs read-only. Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 133 + 1 file changed, 133 insertions

[OE-core] [PATCH v2 6/8] overlayfs: meta-selftest recipe

2021-07-09 Thread Vyacheslav Yurkov
The recipe demonstrates example usage of overlayfs bbclass Signed-off-by: Vyacheslav Yurkov --- .../recipes-test/overlayfs/overlayfs-user.bb | 16 1 file changed, 16 insertions(+) create mode 100644 meta-selftest/recipes-test/overlayfs/overlayfs-user.bb diff --git a/meta

[OE-core] [PATCH v2 7/8] oeqa/selftest: overlayfs unit tests

2021-07-09 Thread Vyacheslav Yurkov
Unit tests for overlayfs.bbclass Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 126 ++ 1 file changed, 126 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/overlayfs.py diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py

[OE-core] [PATCH v2 8/8] docs: add overlayfs class

2021-07-09 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- documentation/ref-manual/classes.rst | 46 1 file changed, 46 insertions(+) diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 09878c480f..6d80e7dc4f 100644 --- a/documentation/ref

[OE-core] [PATCH v2 5/8] systemd-machine-units: add bbappend for meta-selftest

2021-07-09 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- .../systemd-machine-units/systemd-machine-units_%.bbappend | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-selftest/recipes-test/systemd-machine-units/systemd-machine-units_%.bbappend diff --git a/meta-selftest/recipes-test/systemd

[OE-core] [PATCH v2 3/8] maintainers.inc: overlayfs bbclass maintainer

2021-07-09 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/conf/distro/include/maintainers.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index e59f01d66a..90b20c9223 100644 --- a/meta/conf/distro/include

[OE-core] [PATCH v2 7/8] oeqa/selftest: overlayfs unit tests

2021-07-11 Thread Vyacheslav Yurkov
Unit tests for overlayfs.bbclass Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 167 ++ 1 file changed, 167 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/overlayfs.py diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py

Re: [OE-core] [PATCH v2 7/8] oeqa/selftest: overlayfs unit tests

2021-07-12 Thread Vyacheslav Yurkov
Hi Alexandre, I updated 6/8, could you please run them again? Thanks, Vyacheslav On 12.07.2021 11:14, Alexandre Belloni wrote: Hello, On 11/07/2021 17:16:29+0200, Vyacheslav Yurkov wrote: Unit tests for overlayfs.bbclass This still seems to fail the tests: https

[OE-core] [PATCH v2 6/8] overlayfs: meta-selftest recipe

2021-07-12 Thread Vyacheslav Yurkov
The recipe demonstrates example usage of overlayfs bbclass Signed-off-by: Vyacheslav Yurkov --- .../recipes-test/overlayfs/overlayfs-user.bb | 16 1 file changed, 16 insertions(+) create mode 100644 meta-selftest/recipes-test/overlayfs/overlayfs-user.bb diff --git a/meta

[OE-core] [PATCH v2 6/8] overlayfs: meta-selftest recipe

2021-07-12 Thread Vyacheslav Yurkov
The recipe demonstrates example usage of overlayfs bbclass Signed-off-by: Vyacheslav Yurkov --- .../overlayfs-user/overlayfs-user.bb| 17 + 1 file changed, 17 insertions(+) create mode 100644 meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb diff --git

[OE-core] [PATCH v2 7/8] oeqa/selftest: overlayfs unit tests

2021-07-12 Thread Vyacheslav Yurkov
Unit tests for overlayfs.bbclass Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 171 ++ 1 file changed, 171 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/overlayfs.py diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py

Re: [OE-core] [PATCH v2 7/8] oeqa/selftest: overlayfs unit tests

2021-07-10 Thread Vyacheslav Yurkov
, On 09/07/2021 13:31:45+0200, Vyacheslav Yurkov wrote: Unit tests for overlayfs.bbclass I believe I properly applied the series but it fails with: Parsing recipes...ERROR: /home/pokybuild/yocto-worker/oe-selftest-centos/build/build-st-1517413/meta-selftest/recipes-test/overlayfs/overlayfs

Re: [OE-core] [PATCH v3 2/8] overlayfs.bbclass: generate overlayfs mount units

2021-07-29 Thread Vyacheslav Yurkov
On 22.07.2021 23:13, Richard Purdie wrote: On Thu, 2021-07-15 at 21:39 +0200, Vyacheslav Yurkov wrote: It's often desired in Embedded System design to have a read-only rootfs. But a lot of different applications might want to have a read-write access to some parts of a filesystem. It can

[OE-core] [PATCH v4 1/7] lib/oe: add generic functions for overlayfs

2021-08-06 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/lib/oe/overlayfs.py | 43 1 file changed, 43 insertions(+) create mode 100644 meta/lib/oe/overlayfs.py diff --git a/meta/lib/oe/overlayfs.py b/meta/lib/oe/overlayfs.py new file mode 100644 index 00

[OE-core] [PATCH v4 2/7] overlayfs.bbclass: generate overlayfs mount units

2021-08-06 Thread Vyacheslav Yurkov
to be preserved between updates. This class provides a way to achieve that by means of overlayfs and at the same time keeping the base rootfs read-only. Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 111 + 1 file changed, 111 insertions

[OE-core] [PATCH v4 3/7] rootfs-postcommands: add QA check for overlayfs

2021-08-06 Thread Vyacheslav Yurkov
The check is conditional and only enabled when overlayfs is set in DISTRO_FEATURES Signed-off-by: Vyacheslav Yurkov --- meta/classes/rootfs-postcommands.bbclass | 25 1 file changed, 25 insertions(+) diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes

[OE-core] [PATCH v4 4/7] systemd-machine-units: add bbappend for meta-selftest

2021-08-06 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- .../systemd-machine-units/systemd-machine-units_%.bbappend | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-selftest/recipes-test/systemd-machine-units/systemd-machine-units_%.bbappend diff --git a/meta-selftest/recipes-test/systemd

[OE-core] [PATCH v4 5/7] overlayfs: meta-selftest recipe

2021-08-06 Thread Vyacheslav Yurkov
The recipe demonstrates example usage of overlayfs bbclass Signed-off-by: Vyacheslav Yurkov --- .../overlayfs-user/overlayfs-user.bb| 17 + 1 file changed, 17 insertions(+) create mode 100644 meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb diff --git

[OE-core] [PATCH v4 6/7] oeqa/selftest: overlayfs unit tests

2021-08-06 Thread Vyacheslav Yurkov
Unit tests for overlayfs.bbclass Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 171 ++ 1 file changed, 171 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/overlayfs.py diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py

[OE-core] [PATCH v4 7/7] MAINTAINERS: add overlayfs maintainer

2021-08-06 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- MAINTAINERS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 2ddcde6878..36a9bde90c 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -40,6 +40,7 @@ Component/Subsystem Maintainers * opkg: Alex Stewart * devtool

Re: [OE-core] [PATCH v4 2/7] overlayfs.bbclass: generate overlayfs mount units

2021-08-06 Thread Vyacheslav Yurkov
Slava, Richard, > > > > On 8/6/21 2:06 PM, Vyacheslav Yurkov wrote: > > > It's often desired in Embedded System design to have a read-only > rootfs. > > > But a lot of different applications might want to have a read-write > access > > > to some parts of

Re: [OE-core] [meta-java] why openjdk-8-native is need to build openjdk-8 ?

2021-10-21 Thread Vyacheslav Yurkov
I believe this should be sent to openembedded-de...@lists.openembedded.org Vyacheslav On 21.10.2021 12:11, Akira Shibakawa wrote: Hi. I have a question about openjdk-8 recipe. openjdk-8 seems to be built using openjdk-8-native as boot JDK. And the openjdk-8-native seems to be built using

[OE-core] [PATCH 1/5] overlayfs: all overlays unit

2021-10-17 Thread Vyacheslav Yurkov
Application can depend on several overlayfs mount points. Provide a systemd unit application can depend on to make sure all overlays are mounted before it is started to avoid any race conditions Signed-off-by: Bruno Knittel Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass

[OE-core] [PATCH 2/5] oeqa/selftest: refactor common functions

2021-10-17 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b/meta/lib/oeqa/selftest/cases/overlayfs.py index 0184d52494..f0c9860b48 100644

[OE-core] [PATCH 3/5] overlayfs: meta-selftest recipe fix

2021-10-17 Thread Vyacheslav Yurkov
Avoid strict assignment in the recipe to allow overrides in .inc file Signed-off-by: Vyacheslav Yurkov --- meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb

[OE-core] [PATCH 5/5] overlayfs: add debug information

2021-10-17 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 6 ++ 1 file changed, 6 insertions(+) diff --git a/meta/classes/overlayfs.bbclass b/meta/classes/overlayfs.bbclass index 9397ab44f9..3c0f4dc882 100644 --- a/meta/classes/overlayfs.bbclass +++ b/meta/classes

[OE-core] [PATCH 4/5] oeqa/selftest: extend overlayfs test

2021-10-17 Thread Vyacheslav Yurkov
Test that overlayfs.bbclass generates one systemd unit, that applications can set dependencies on, and that this unit mounts all required overlays Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 42 +++ 1 file changed, 42 insertions(+) diff

[OE-core] [PATCH 0/6] Pull request (cover letter only)

2021-11-18 Thread Vyacheslav Yurkov
000) are available in the Git repository at: git://github.com/UVV-gh/openembedded-core feature/overlayfs-etc https://github.com/UVV-gh/openembedded-core/tree/feature/overlayfs-etc Vyacheslav Yurkov (6): overlayfs-etc: mount etc as overlayfs wic: image for overlayfs-etc tests image:

[OE-core] [PATCH 2/6] wic: image for overlayfs-etc tests

2021-11-18 Thread Vyacheslav Yurkov
Introduce wic image for overlayfs-etc tests with a dedicated /data partition and configurable kernel parameters Signed-off-by: Vyacheslav Yurkov --- meta-selftest/wic/overlayfs_etc.wks.in | 4 1 file changed, 4 insertions(+) create mode 100644 meta-selftest/wic/overlayfs_etc.wks.in diff

[OE-core] [PATCH 1/6] overlayfs-etc: mount etc as overlayfs

2021-11-18 Thread Vyacheslav Yurkov
This class provides an image feature that mounts /etc as an overlayfs file system. This is an extension for existing overlayfs class, which doesn't support /etc Signed-off-by: Alfred Schapansky Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs-etc.bbclass | 93

[OE-core] [PATCH 4/6] oeqa/selftest: overlayfs helper function

2021-11-18 Thread Vyacheslav Yurkov
Move helper functions out of class scope so they can be used in other tests Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 32 +++ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b

[OE-core] [PATCH 3/6] image: add overlayfs-etc image feature

2021-11-18 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 6c759fdf70..e198f041b1 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass

[OE-core] [PATCH 5/6] oeqa/selftest: unit tests for overlayfs-etc

2021-11-18 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 141 ++ 1 file changed, 141 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b/meta/lib/oeqa/selftest/cases/overlayfs.py index 43415778ce..4623215a47 100644 --- a/meta/lib

[OE-core] [PATCH 6/6] overlayfs: update notes on /etc

2021-11-18 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/overlayfs.bbclass b/meta/classes/overlayfs.bbclass index 3c0f4dc882..f1b8086ea8 100644 --- a/meta/classes/overlayfs.bbclass +++ b/meta/classes/overlayfs.bbclass

[OE-core] [PATCH] rootfs-postcommands: update systemd_create_users

2021-11-19 Thread Vyacheslav Yurkov
-default.rules:39 Unknown group 'render', ignoring systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:40 Unknown group 'render', ignoring systemd-udevd[166]: /lib/udev/rules.d/50-udev-default.rules:42 Unknown group 'sgx', ignoring Signed-off-by: Vyacheslav Yurkov --- meta/classes/rootfs

Re: [OE-core] Suggestion to use python-parameterized for QA

2021-11-15 Thread Vyacheslav Yurkov
This is still work-in-progress, but I'm working on overlayfs-etc class, which would have different behavior depending on an input variable. You can see the example here

Re: [OE-core] Suggestion to use python-parameterized for QA

2021-11-15 Thread Vyacheslav Yurkov
It's substituted further down into def test_sbin_init(self, _, origInit): parameterized.expand generates two tests out of it. The string parameter is used as a suffix for the test, the rest is used as input parameters, i.e. the first test would be called with origInit=True, the second one

[OE-core] Suggestion to use python-parameterized for QA

2021-11-15 Thread Vyacheslav Yurkov
Hi guys, I have a suggestion to add https://pypi.org/project/parameterized/ as a required package for QA selftests. Together with python unittest module it can be useful to increase code coverage and reduce duplication in case you want to do the same test with different input values.

Re: [OE-core] Suggestion to use python-parameterized for QA

2021-11-15 Thread Vyacheslav Yurkov
Yes, technically it would be the same. Thanks for the hint. Vyacheslav On 15.11.2021 21:56, Alexander Kanavin wrote: Can't we achieve the same by abstracting the common part into a function and defining the two tests explicitly? Alex On Mon, 15 Nov 2021 at 21:26, Vyacheslav Yurkov wrote

Re: [OE-core] [docs] [PATCH] dev-manual: how to purge duplicate sstate cache files

2021-11-26 Thread Vyacheslav Yurkov
Hi Michael On 23.11.2021 10:14, Michael Opdenacker wrote: Greetings, On 11/19/21 5:06 PM, Michael Opdenacker wrote: Signed-off-by: Michael Opdenacker --- documentation/dev-manual/common-tasks.rst | 25 ++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git

Re: [OE-core] patch files in a directory aren't applied

2021-12-01 Thread Vyacheslav Yurkov
Hi Max, I think you are interpreting it not entirely correctly. You are reading do_patch() description and the task would pick up all patches it finds. But SRC_URI is another thing and it is looked at during parsing time. Vyacheslav On 01.12.2021 15:26, Max Krummenacher wrote: Hello I

Re: [OE-core] [PATCH 0/6] Pull request (cover letter only)

2021-11-30 Thread Vyacheslav Yurkov
Just pinging to check if anyone had a chance to take a look at it Thanks, Vyacheslav On 19.11.2021 07:15, Vyacheslav Yurkov via lists.openembedded.org wrote: This is a V1 of overlayfs-etc image feature implementation, that allows to setup the whole /etc under overlayfs. Please review and merge

Re: [OE-core] [PATCH 1/6] overlayfs-etc: mount etc as overlayfs

2021-12-09 Thread Vyacheslav Yurkov
On 09.12.2021 12:08, Richard Purdie wrote: The second thing which I don't really like is this mix of shell and python, it is very confusing to read. I'd much rather we put template files into meta/lib/files/ and then read them from there for the variable substitutions. We do this for other

Re: [OE-core] [PATCH 1/6] overlayfs-etc: mount etc as overlayfs

2021-12-09 Thread Vyacheslav Yurkov
On 09.12.2021 11:59, Ross Burton wrote: On Fri, 19 Nov 2021 at 06:15, Vyacheslav Yurkov wrote: +# Class for setting up /etc in overlayfs +# +# In order to have /etc directory in overlayfs a special handling at early boot stage is required +# The idea is to supply a custom init script

[OE-core] [PATCH v3 0/8] Pull request (cover letter only)

2021-12-10 Thread Vyacheslav Yurkov
-09 13:56:07 +) are available in the Git repository at: git://github.com/UVV-gh/openembedded-core feature/overlayfs-etc https://github.com/UVV-gh/openembedded-core/tree/feature/overlayfs-etc Vyacheslav Yurkov (8): files: add overlayfs-etc-preinit.sh.in overlayfs-etc: mount etc

[OE-core] [PATCH 1/8] files: add overlayfs-etc-preinit.sh.in

2021-12-10 Thread Vyacheslav Yurkov
A template init script for overlayfs-etc class Signed-off-by: Vyacheslav Yurkov --- meta/files/overlayfs-etc-preinit.sh.in | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 meta/files/overlayfs-etc-preinit.sh.in diff --git a/meta/files/overlayfs-etc

[OE-core] [PATCH 4/8] image: add overlayfs-etc image feature

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 8a46b4852c..2b0ce4a988 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass

[OE-core] [PATCH 3/8] wic: image for overlayfs-etc tests

2021-12-10 Thread Vyacheslav Yurkov
Introduce wic image for overlayfs-etc tests with a dedicated /data partition and configurable kernel parameters Signed-off-by: Vyacheslav Yurkov --- meta-selftest/wic/overlayfs_etc.wks.in | 4 1 file changed, 4 insertions(+) create mode 100644 meta-selftest/wic/overlayfs_etc.wks.in diff

[OE-core] [PATCH 3/8] wic: image for overlayfs-etc tests

2021-12-10 Thread Vyacheslav Yurkov
Introduce wic image for overlayfs-etc tests with a dedicated /data partition and configurable kernel parameters Signed-off-by: Vyacheslav Yurkov --- meta-selftest/wic/overlayfs_etc.wks.in | 4 1 file changed, 4 insertions(+) create mode 100644 meta-selftest/wic/overlayfs_etc.wks.in diff

[OE-core] [PATCH 1/8] files: add preinit.sh.in

2021-12-10 Thread Vyacheslav Yurkov
A template init script for overlayfs-etc class Signed-off-by: Vyacheslav Yurkov --- meta/files/preinit.sh.in | 29 + 1 file changed, 29 insertions(+) create mode 100644 meta/files/preinit.sh.in diff --git a/meta/files/preinit.sh.in b/meta/files/preinit.sh.in new

[OE-core] [PATCH 4/8] image: add overlayfs-etc image feature

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 8a46b4852c..2b0ce4a988 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass

[OE-core] [PATCH 5/8] oeqa/selftest: overlayfs helper function

2021-12-10 Thread Vyacheslav Yurkov
Move helper functions out of class scope so they can be used in other tests Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 32 +++ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b

[OE-core] [PATCH 2/8] overlayfs-etc: mount etc as overlayfs

2021-12-10 Thread Vyacheslav Yurkov
This class provides an image feature that mounts /etc as an overlayfs file system. This is an extension for existing overlayfs class, which doesn't support /etc Signed-off-by: Alfred Schapansky Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs-etc.bbclass | 76

[OE-core] [PATCH 7/8] overlayfs: update notes on /etc

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/overlayfs.bbclass b/meta/classes/overlayfs.bbclass index 3c0f4dc882..f1b8086ea8 100644 --- a/meta/classes/overlayfs.bbclass +++ b/meta/classes/overlayfs.bbclass

[OE-core] [PATCH 6/8] oeqa/selftest: unit tests for overlayfs-etc

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 184 ++ 1 file changed, 184 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b/meta/lib/oeqa/selftest/cases/overlayfs.py index 43415778ce..82007fade7 100644 --- a/meta/lib

[OE-core] [PATCH v2 0/8] Pull request (cover letter only)

2021-12-10 Thread Vyacheslav Yurkov
-09 13:56:07 +) are available in the Git repository at: git://github.com/UVV-gh/openembedded-core feature/overlayfs-etc https://github.com/UVV-gh/openembedded-core/tree/feature/overlayfs-etc Vyacheslav Yurkov (8): files: add preinit.sh.in overlayfs-etc: mount etc as overlayfs wic

[OE-core] [PATCH 8/8] overlayfs: move templates to files directory

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 52 meta/files/overlayfs-all-overlays.service.in | 12 + meta/files/overlayfs-create-dirs.service.in | 14 ++ meta/files/overlayfs-unit.mount.in | 13 + 4 files changed

[OE-core] [PATCH 7/8] overlayfs: update notes on /etc

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/overlayfs.bbclass b/meta/classes/overlayfs.bbclass index 3c0f4dc882..f1b8086ea8 100644 --- a/meta/classes/overlayfs.bbclass +++ b/meta/classes/overlayfs.bbclass

[OE-core] [PATCH 6/8] oeqa/selftest: unit tests for overlayfs-etc

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 184 ++ 1 file changed, 184 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b/meta/lib/oeqa/selftest/cases/overlayfs.py index 43415778ce..82007fade7 100644 --- a/meta/lib

[OE-core] [PATCH 2/8] overlayfs-etc: mount etc as overlayfs

2021-12-10 Thread Vyacheslav Yurkov
This class provides an image feature that mounts /etc as an overlayfs file system. This is an extension for existing overlayfs class, which doesn't support /etc Signed-off-by: Alfred Schapansky Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs-etc.bbclass | 76

[OE-core] [PATCH 8/8] overlayfs: move templates to files directory

2021-12-10 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 52 meta/files/overlayfs-all-overlays.service.in | 12 + meta/files/overlayfs-create-dirs.service.in | 14 ++ meta/files/overlayfs-unit.mount.in | 13 + 4 files changed

[OE-core] [PATCH 5/8] oeqa/selftest: overlayfs helper function

2021-12-10 Thread Vyacheslav Yurkov
Move helper functions out of class scope so they can be used in other tests Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 32 +++ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py b

[OE-core] [PATCH v3 1/8] overlayfs-qa: common functions for overlayfs

2021-07-15 Thread Vyacheslav Yurkov
This class provides commom functions for overlayfs and its QA check, which is performed in ROOTFS_POSTPROCESS_COMMAND Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs-qa.bbclass | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 meta/classes/overlayfs

[OE-core] [PATCH v3 2/8] overlayfs.bbclass: generate overlayfs mount units

2021-07-15 Thread Vyacheslav Yurkov
to be preserved between updates. This class provides a way to achieve that by means of overlayfs and at the same time keeping the base rootfs read-only. Signed-off-by: Vyacheslav Yurkov --- meta/classes/overlayfs.bbclass | 133 + 1 file changed, 133 insertions

[OE-core] [PATCH v3 3/8] maintainers.inc: overlayfs bbclass maintainer

2021-07-15 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- meta/conf/distro/include/maintainers.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index e59f01d66a..90b20c9223 100644 --- a/meta/conf/distro/include

[OE-core] [PATCH v3 4/8] rootfs-postcommands: add QA check for overlayfs

2021-07-15 Thread Vyacheslav Yurkov
The check is conditional and only enabled when overlayfs is set in DISTRO_FEATURES Signed-off-by: Vyacheslav Yurkov --- meta/classes/rootfs-postcommands.bbclass | 24 1 file changed, 24 insertions(+) diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes

[OE-core] [PATCH v3 5/8] systemd-machine-units: add bbappend for meta-selftest

2021-07-15 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- .../systemd-machine-units/systemd-machine-units_%.bbappend | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 meta-selftest/recipes-test/systemd-machine-units/systemd-machine-units_%.bbappend diff --git a/meta-selftest/recipes-test/systemd

[OE-core] [PATCH v3 6/8] overlayfs: meta-selftest recipe

2021-07-15 Thread Vyacheslav Yurkov
The recipe demonstrates example usage of overlayfs bbclass Signed-off-by: Vyacheslav Yurkov --- .../overlayfs-user/overlayfs-user.bb| 17 + 1 file changed, 17 insertions(+) create mode 100644 meta-selftest/recipes-test/overlayfs-user/overlayfs-user.bb diff --git

[OE-core] [PATCH v3 8/8] docs: add overlayfs class

2021-07-15 Thread Vyacheslav Yurkov
Signed-off-by: Vyacheslav Yurkov --- documentation/ref-manual/classes.rst | 46 1 file changed, 46 insertions(+) diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 09878c480f..6d80e7dc4f 100644 --- a/documentation/ref

[OE-core] [PATCH v3 7/8] oeqa/selftest: overlayfs unit tests

2021-07-15 Thread Vyacheslav Yurkov
Unit tests for overlayfs.bbclass Signed-off-by: Vyacheslav Yurkov --- meta/lib/oeqa/selftest/cases/overlayfs.py | 171 ++ 1 file changed, 171 insertions(+) create mode 100644 meta/lib/oeqa/selftest/cases/overlayfs.py diff --git a/meta/lib/oeqa/selftest/cases/overlayfs.py

Re: [OE-core] [PATCH v2 0/4] Patches and bugfixes for overlayfs

2022-03-10 Thread Vyacheslav Yurkov
On 10.03.2022 14:13, Claudius Heine wrote: Hi, I bundled my patches to overlayfs and overlayfs-etc togehter in this patchset and fixed the whitespace issues. regards, Claudius -- Changes from v1: - fixed whitespace issues: converted tabs to 4 spaces. - changed git commit title of patch

Re: [OE-core] [PATCH v2] initramfs-framework: Add overlayroot module

2022-02-02 Thread Vyacheslav Yurkov
Hi Alejandro On 02.02.2022 07:58, Alejandro Hernandez wrote: Hey Vyacheslav, ...I definitely tried extending the overlay-etc class but it simply does not work for this, since the rootfs becomes inaccessible once the system has booted, ... That's what I meant. What if we added another

Re: [OE-core] [PATCH] initramfs-framework: Add overlayroot module

2022-01-27 Thread Vyacheslav Yurkov
On 26.01.2022 19:09, Alejandro Hernandez Samaniego wrote: Oops! completely forgot!, I'll add it. This is loosely based on the overlay-etc.bbclass the difference is that the class only works for overlaying /etc and it doesnt require an initramfs, but, while its possible to tinker it in such a

Re: [OE-core] [PATCH] initramfs-framework: Add overlayroot module

2022-01-26 Thread Vyacheslav Yurkov
Hi Alejandro, Thanks for your patch. I recently submitted two classes overlayfs and overlayfs-etc to do the same thing you want to achieve. Could you please take a look if you can use them instead? If not, perhaps we could adapt it to suit your needs? Regards, Vyacheslav On 26.01.2022

Re: [OE-core] [PATCH v2] initramfs-framework: Add overlayroot module

2022-01-31 Thread Vyacheslav Yurkov
Hi Alejandro, Thanks for the v2, but my questions from v1 are still left unanswered. 1. Do you really need the whole rootfs to be in overlay? Perhaps you have another use case in mind, but the more scope overlay has, the more migration effort you need in order to update upper layer on image

Re: [OE-core] [RFC] support for multi project toolchain-cmake

2022-02-08 Thread Vyacheslav Yurkov
On 07.02.2022 16:30, Tobias Neumann wrote: Because a SDK is specific for a hardware platform, but not for a project using that hardware platform, it is readonly and can be used for all projects with this hardware. This however requires that the compiled libraries generated with this SDK during

[OE-core] Dependency on packages

2023-10-17 Thread Vyacheslav Yurkov
Hey everyone. As you know, DEPENDS operates on a recipe name basis, and RDEPENDS on a package name basis. I'm working on a dependency issue in meta-openembedded, where I need to indicate a package dependency during a build stage. Any advice how should I do it? (if any details necessary it's

[OE-core] [PATCH] lib/oe/path: Deploy files can start only with a dot

2023-11-02 Thread Vyacheslav Yurkov
From: Vyacheslav Yurkov There might be only hidden files deployed. In that case we don't need a generic wildcard present in copy command, otherwise it fails with: Exception: subprocess.CalledProcessError: Command 'cp -afl --preserve=xattr ./.??* ./* /tmp/deploy/images/qemux86-64' returned non

Re: [OE-Core][PATCH v2 0/4] recipetool: Add handler to create go recipes

2023-10-23 Thread Vyacheslav Yurkov
On 23.10.2023 14:18, Lukas Funke wrote: Hi Slava, On 22.10.2023 20:34, Vyacheslav Yurkov wrote: Hey Lukas, Thanks a lot for the patch. A few questions/comments from my initial test below. - I tried it with a go-based backend I have by providing ssh URL to github. It seems like

Re: [OE-Core][PATCH v2 0/4] recipetool: Add handler to create go recipes

2023-10-22 Thread Vyacheslav Yurkov
Hey Lukas, Thanks a lot for the patch. A few questions/comments from my initial test below. - I tried it with a go-based backend I have by providing ssh URL to github. It seems like the GO_IMPORT is set to a module name from go.mod of my project, which of course fails to fetch it like that,

  1   2   >