[OE-core][dunfell][PATCH v2 3/3] qemu: Enable seccomp if FEATURE is set

2021-07-23 Thread Ruslan Babayev (fib) via lists.openembedded.org
From: Armin Kuster 

Signed-off-by: Armin Kuster 
Signed-off-by: Richard Purdie 
Signed-off-by: Ruslan Babayev 
---
 meta/recipes-devtools/qemu/qemu_4.2.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/qemu/qemu_4.2.0.bb 
b/meta/recipes-devtools/qemu/qemu_4.2.0.bb
index 9c76144749..f9905e2812 100644
--- a/meta/recipes-devtools/qemu/qemu_4.2.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_4.2.0.bb
@@ -26,5 +26,6 @@ do_install_append_class-nativesdk() {
 PACKAGECONFIG ??= " \
 fdt sdl kvm \
 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa xen', d)} \
+${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
 "
 PACKAGECONFIG_class-nativesdk ??= "fdt sdl kvm"
-- 
2.26.2.Cisco


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154125): 
https://lists.openembedded.org/g/openembedded-core/message/154125
Mute This Topic: https://lists.openembedded.org/mt/84410824/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell][PATCH v2 1/3] cmake-native: enabled zstd support

2021-07-23 Thread Ruslan Babayev (fib) via lists.openembedded.org
From: Samuli Piippo 

CMake depends on having all formats supported and build issues can
arise when zstd is not available:
https://gitlab.kitware.com/cmake/cmake/-/issues/21552

Quote from a CMake dev:
"As far as CMake's design is concerned, we have no optional formats.
All should be supported. That's why we bundle sufficiently new versions
of libarchive and libzstd. If a distro builds with an older libarchive
that doesn't have zstd support, then that is not a proper packaging of CMake."

Signed-off-by: Samuli Piippo 
Signed-off-by: Richard Purdie 
Signed-off-by: Ruslan Babayev 
---
 meta/recipes-devtools/cmake/cmake-native_3.16.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/cmake/cmake-native_3.16.5.bb 
b/meta/recipes-devtools/cmake/cmake-native_3.16.5.bb
index b2952ee5f5..6034b654da 100644
--- a/meta/recipes-devtools/cmake/cmake-native_3.16.5.bb
+++ b/meta/recipes-devtools/cmake/cmake-native_3.16.5.bb
@@ -1,7 +1,7 @@
 require cmake.inc
 inherit native
 
-DEPENDS += "bzip2-replacement-native expat-native xz-native zlib-native 
curl-native ncurses-native"
+DEPENDS += "bzip2-replacement-native expat-native xz-native zlib-native 
curl-native ncurses-native zstd-native"
 
 SRC_URI += "file://OEToolchainConfig.cmake \
 file://environment.d-cmake.sh \
-- 
2.26.2.Cisco


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154123): 
https://lists.openembedded.org/g/openembedded-core/message/154123
Mute This Topic: https://lists.openembedded.org/mt/84410822/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core][dunfell][PATCH v2 2/3] qemu.inc: Add seccomp PACKAGECONFIG option

2021-07-23 Thread Ruslan Babayev (fib) via lists.openembedded.org
From: Nathan Rossi 

Add the seccomp PACKAGECONFIG option to allow building seccomp features
in QEMU. The libseccomp library is available in additional layers (e.g.
meta-security).

Additionally this serves as a way to disable seccomp by default to avoid
the configure of QEMU automatically finding it (via pkg-config) on the
build host when building qemu-system-native and auto enabling the
feature.

Signed-off-by: Nathan Rossi 
Signed-off-by: Richard Purdie 
Signed-off-by: Ruslan Babayev 
---
 meta/recipes-devtools/qemu/qemu.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/qemu/qemu.inc 
b/meta/recipes-devtools/qemu/qemu.inc
index 8f927bdf54..e25c2524aa 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -210,6 +210,7 @@ PACKAGECONFIG[glusterfs] = 
"--enable-glusterfs,--disable-glusterfs"
 PACKAGECONFIG[xkbcommon] = 
"--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
 PACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
 PACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2"
+PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
 
 INSANE_SKIP_${PN} = "arch"
 
-- 
2.26.2.Cisco


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154124): 
https://lists.openembedded.org/g/openembedded-core/message/154124
Mute This Topic: https://lists.openembedded.org/mt/84410823/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH 2/2] qemu.inc: Add seccomp PACKAGECONFIG option

2021-07-23 Thread Khem Raj
On Thu, Jul 22, 2021 at 2:51 PM Ruslan Babayev (fib) via
lists.openembedded.org  wrote:
>
> From: Nathan Rossi 
>
> Add the seccomp PACKAGECONFIG option to allow building seccomp features
> in QEMU. The libseccomp library is available in additional layers (e.g.
> meta-security).
>
> Additionally this serves as a way to disable seccomp by default to avoid
> the configure of QEMU automatically finding it (via pkg-config) on the
> build host when building qemu-system-native and auto enabling the
> feature.
>
> Signed-off-by: Nathan Rossi 
> Signed-off-by: Richard Purdie 
> ---
>  meta/recipes-devtools/qemu/qemu.inc | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-devtools/qemu/qemu.inc 
> b/meta/recipes-devtools/qemu/qemu.inc
> index 8f927bdf54..e25c2524aa 100644
> --- a/meta/recipes-devtools/qemu/qemu.inc
> +++ b/meta/recipes-devtools/qemu/qemu.inc
> @@ -210,6 +210,7 @@ PACKAGECONFIG[glusterfs] = 
> "--enable-glusterfs,--disable-glusterfs"
>  PACKAGECONFIG[xkbcommon] = 
> "--enable-xkbcommon,--disable-xkbcommon,libxkbcommon"
>  PACKAGECONFIG[libudev] = "--enable-libudev,--disable-libudev,eudev"
>  PACKAGECONFIG[libxml2] = "--enable-libxml2,--disable-libxml2,libxml2"
> +PACKAGECONFIG[seccomp] = "--enable-seccomp,--disable-seccomp,libseccomp"
>

also enable it when seccomp is in DISTRO_FEATURES please

>  INSANE_SKIP_${PN} = "arch"
>
> --
> 2.26.2.Cisco
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154122): 
https://lists.openembedded.org/g/openembedded-core/message/154122
Mute This Topic: https://lists.openembedded.org/mt/84389518/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] Revert "Revert "libubootenv: inherit uboot-config""

2021-07-23 Thread Richard Purdie
On Fri, 2021-07-23 at 17:52 -0300, Otavio Salvador wrote:
> I am against reverting it again. We discussed alternatives, which
> could solve the problem.
> 
> Em qui., 22 de jul. de 2021 às 21:19, Anuj Mittal
>  escreveu:
> > 
> > This reverts commit be1cf223bf9c514ee81820ded5b13318458c0daf.
> > 
> > The original change was added to resolve build errors [1] for MACHINE
> > values that don't have u-boot support. This recipe was, after that
> > change, skipped in world builds for those MACHINEs.
> > 
> > But we should be able to build libubootenv with or without u-boot
> > support [2] so the original solution to inherit uboot-config was not
> > perfect. But until we have a better solution, revert this so
> > builds don't fail for others.
> > 
> > [1] https://lists.openembedded.org/g/openembedded-core/message/153508
> > [2] https://lists.openembedded.org/g/openembedded-core/message/153614
> > 

Something needs to change. Perhaps the RRECOMMENDS should just be removed
as that seems to be the cause of the problems?

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154121): 
https://lists.openembedded.org/g/openembedded-core/message/154121
Mute This Topic: https://lists.openembedded.org/mt/84391892/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] Revert "Revert "libubootenv: inherit uboot-config""

2021-07-23 Thread Otavio Salvador
I am against reverting it again. We discussed alternatives, which
could solve the problem.

Em qui., 22 de jul. de 2021 às 21:19, Anuj Mittal
 escreveu:
>
> This reverts commit be1cf223bf9c514ee81820ded5b13318458c0daf.
>
> The original change was added to resolve build errors [1] for MACHINE
> values that don't have u-boot support. This recipe was, after that
> change, skipped in world builds for those MACHINEs.
>
> But we should be able to build libubootenv with or without u-boot
> support [2] so the original solution to inherit uboot-config was not
> perfect. But until we have a better solution, revert this so
> builds don't fail for others.
>
> [1] https://lists.openembedded.org/g/openembedded-core/message/153508
> [2] https://lists.openembedded.org/g/openembedded-core/message/153614
>
> Signed-off-by: Anuj Mittal 
> ---
>  meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb 
> b/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb
> index 6774290ea5..cb59dd3f1d 100644
> --- a/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb
> +++ b/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb
> @@ -15,7 +15,7 @@ SRCREV = "ba7564f5006d09bec51058cf4f5ac90d4dc18b3c"
>
>  S = "${WORKDIR}/git"
>
> -inherit cmake lib_package
> +inherit uboot-config cmake lib_package
>
>  EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"
>
> --
> 2.31.1
>
>
> 
>


-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854  Mobile: +1 (347) 903-9750

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154120): 
https://lists.openembedded.org/g/openembedded-core/message/154120
Mute This Topic: https://lists.openembedded.org/mt/84391892/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH v2] rootfs: remove ldconfig auxiliary cache where appropriate

2021-07-23 Thread Andre McCurdy
On Fri, Jul 23, 2021 at 2:22 AM Damian Wrobel
 wrote:
>
> Removes the /var/cache/ldconfig auxiliary cache directory from
> the rootfs when:
>  - read-only-rootfs is in DISTRO_FEATURES,
>  - ldconfig is not in DISTRO_FEATURES.

Comments say DISTRO_FEATURES but code is checking IMAGE_FEATURES in both cases.

ldconfig is a distro feature and read-only-rootfs is an image feature,
so both the comments and code seem to be wrong...

> In both cases the /var/cache/ldconfig/aux-cache is useless.
>
> Signed-off-by: Damian Wrobel 
> ---
>  meta/lib/oe/rootfs.py | 10 ++
>  1 file changed, 10 insertions(+)
>
> diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
> index ad9fd77c8b..8e63ebac9b 100644
> --- a/meta/lib/oe/rootfs.py
> +++ b/meta/lib/oe/rootfs.py
> @@ -302,6 +302,16 @@ class Rootfs(object, metaclass=ABCMeta):
>  self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, '-c',
>'new', '-v', '-X'])
>
> +image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs",
> +True, False, self.d)
> +ldconfig_in_features = bb.utils.contains("IMAGE_FEATURES", 
> "ldconfig",
> + True, False, self.d)
> +if image_rorfs or not ldconfig_in_features:
> +ldconfig_cache_dir = os.path.join(self.image_rootfs, 
> "var/cache/ldconfig")
> +if os.path.exists(ldconfig_cache_dir):
> +bb.note("Removing ldconfig auxiliary cache...")
> +shutil.rmtree(ldconfig_cache_dir)
> +
>  def _check_for_kernel_modules(self, modules_dir):
>  for root, dirs, files in os.walk(modules_dir, topdown=True):
>  for name in files:
> --
> 2.31.1
>
>
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154119): 
https://lists.openembedded.org/g/openembedded-core/message/154119
Mute This Topic: https://lists.openembedded.org/mt/84397515/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] rootfs: remove ldconfig auxiliary cache where appropriate

2021-07-23 Thread Andre McCurdy
On Fri, Jul 23, 2021 at 2:16 AM Damian Wrobel
 wrote:
>
>   On Thu, 22 Jul 2021 21:00:15 +0200 Andre McCurdy  
> wrote 
>  > On Thu, Jul 22, 2021 at 2:48 AM Damian Wrobel
>  >  wrote:
>  > >
>  > > Removes the /var/cache/ldconfig auxiliary cache directory from
>  > > the rootfs when:
>  > >  - read-only-rootfs is in DISTRO_FEATURES,
>  > >  - ldconfig is not in DISTRO_FEATURES.
>  > >
>  > > In both cases the /var/cache/ldconfig/aux-cache is useless.
>  >
>  > Should there be a test for package management being supported in the
>  > image too? A read-only rootfs is one case where it's not possible to
>  > install ldconfig support at run time but a writeable rootfs without
>  > package management support would seem to be another?
>
> It seems to be perfectly fine to use the ldconfig without having any package 
> management system.

Of course. But if ldconfig support is disabled at build time (ie the
ldconfig distro feature is disabled) and there is no package
management support (so ldconfig can not be installed at run time) then
is there any need for /var/cache/ldconfig/aux-cache ?

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154118): 
https://lists.openembedded.org/g/openembedded-core/message/154118
Mute This Topic: https://lists.openembedded.org/mt/84375612/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] conf-notes.txt: now suggesting to run 'runqemu qemux86-64'

2021-07-23 Thread Michael Opdenacker
'runqemu qemux86' doesn't work any more.
The "Quick Build" documentation has already been updated
but this message that we get when sourcing "oe-init-build-env"

Signed-off-by: Michael Opdenacker 
---
 meta/conf/conf-notes.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/conf/conf-notes.txt b/meta/conf/conf-notes.txt
index 1a9414a040..cfd1f1977b 100644
--- a/meta/conf/conf-notes.txt
+++ b/meta/conf/conf-notes.txt
@@ -11,7 +11,7 @@ Common targets are:
 meta-toolchain
 meta-ide-support
 
-You can also run generated qemu images with a command like 'runqemu qemux86'.
+You can also run generated qemu images with a command like 'runqemu 
qemux86-64'.
 
 Other commonly useful commands are:
  - 'devtool' and 'recipetool' handle common recipe tasks
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154117): 
https://lists.openembedded.org/g/openembedded-core/message/154117
Mute This Topic: https://lists.openembedded.org/mt/84405438/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2] oe-setup-builddir: update YP docs and OE URLs

2021-07-23 Thread Michael Opdenacker
This updates the link to the YP docs
and proposes to access the OE website through https

Signed-off-by: Michael Opdenacker 
---
 scripts/oe-setup-builddir | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 30eaa8efbe..5a51fa793f 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -113,10 +113,10 @@ if [ ! -z "$SHOWYPDOC" ]; then
 cat 

[OE-core][dunfell 0/3] Pull request (cover letter only)

2021-07-23 Thread Steve Sakoman
The following changes since commit 9b83aefa9c4a21d9dc1eea4a6b00af379466a288:

  busybox: add tmpdir option into mktemp applet (2021-07-14 12:27:38 -1000)

are available in the Git repository at:

  git://git.openembedded.org/openembedded-core-contrib stable/dunfell-next
  
http://cgit.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-next

Bruce Ashfield (3):
  linux-yocto/5.4: update to v5.4.131
  linux-yocto/5.4: update to v5.4.132
  kernel-devsrc: fix 32bit ARM devsrc builds

 meta/recipes-kernel/linux/kernel-devsrc.bb|  2 +-
 .../linux/linux-yocto-rt_5.4.bb   |  6 ++---
 .../linux/linux-yocto-tiny_5.4.bb |  8 +++
 meta/recipes-kernel/linux/linux-yocto_5.4.bb  | 22 +--
 4 files changed, 19 insertions(+), 19 deletions(-)

-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154115): 
https://lists.openembedded.org/g/openembedded-core/message/154115
Mute This Topic: https://lists.openembedded.org/mt/84401988/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] oe-setup-builddir: update YP docs and OE URLs

2021-07-23 Thread Martin Jansa
The 2nd chunk doesn't look correct, the 's' has eaten the ':'.

On Fri, Jul 23, 2021 at 3:53 PM Michael Opdenacker <
michael.opdenac...@bootlin.com> wrote:

> This updates the link to the YP docs
> and proposes to access the OE website through https
>
> Signed-off-by: Michael Opdenacker 
> ---
>  scripts/oe-setup-builddir | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
> index 30eaa8efbe..75f63f5680 100755
> --- a/scripts/oe-setup-builddir
> +++ b/scripts/oe-setup-builddir
> @@ -113,10 +113,10 @@ if [ ! -z "$SHOWYPDOC" ]; then
>  cat <  The Yocto Project has extensive documentation about OE including a
> reference
>  manual which can be found at:
> -http://yoctoproject.org/documentation
> +https://docs.yoctoproject.org
>
>  For more information about OpenEmbedded see their website:
> -http://www.openembedded.org/
> +https//www.openembedded.org/
>
>  EOM
>  #unset SHOWYPDOC
> --
> 2.25.1
>
>
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154114): 
https://lists.openembedded.org/g/openembedded-core/message/154114
Mute This Topic: https://lists.openembedded.org/mt/84401182/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] oe-setup-builddir: update YP docs and OE URLs

2021-07-23 Thread Robert P. J. Day
On Fri, 23 Jul 2021, Michael Opdenacker wrote:

> This updates the link to the YP docs
> and proposes to access the OE website through https
>
> Signed-off-by: Michael Opdenacker 
> ---
>  scripts/oe-setup-builddir | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
> index 30eaa8efbe..75f63f5680 100755
> --- a/scripts/oe-setup-builddir
> +++ b/scripts/oe-setup-builddir
> @@ -113,10 +113,10 @@ if [ ! -z "$SHOWYPDOC" ]; then
>  cat <  The Yocto Project has extensive documentation about OE including a reference
>  manual which can be found at:
> -http://yoctoproject.org/documentation
> +https://docs.yoctoproject.org
>
>  For more information about OpenEmbedded see their website:
> -http://www.openembedded.org/
> +https//www.openembedded.org/

   missing colon.

rday

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154113): 
https://lists.openembedded.org/g/openembedded-core/message/154113
Mute This Topic: https://lists.openembedded.org/mt/84401182/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH] oe-setup-builddir: update YP docs and OE URLs

2021-07-23 Thread Michael Opdenacker
This updates the link to the YP docs
and proposes to access the OE website through https

Signed-off-by: Michael Opdenacker 
---
 scripts/oe-setup-builddir | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/oe-setup-builddir b/scripts/oe-setup-builddir
index 30eaa8efbe..75f63f5680 100755
--- a/scripts/oe-setup-builddir
+++ b/scripts/oe-setup-builddir
@@ -113,10 +113,10 @@ if [ ! -z "$SHOWYPDOC" ]; then
 cat 

[OE-core] [dunfell][PATCH 1/1] ovmf: Fix VLA warnings with GCC 11

2021-07-23 Thread Andrei Gherzan
From: Khem Raj 

(From OE-Core rev: 5406ce83e07c3f89b9f2bb26f083861467b7bc59)

Signed-off-by: Khem Raj 
Signed-off-by: Richard Purdie 
---
 .../ovmf/0001-Fix-VLA-parameter-warning.patch | 51 +++
 meta/recipes-core/ovmf/ovmf_git.bb|  3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch

diff --git a/meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch 
b/meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch
new file mode 100644
index 00..d658123b81
--- /dev/null
+++ b/meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch
@@ -0,0 +1,51 @@
+From 498627ebda6271b59920f43a0b9b6187edeb7b09 Mon Sep 17 00:00:00 2001
+From: Adrian Herrera 
+Date: Mon, 22 Mar 2021 21:06:47 +
+Subject: [PATCH] Fix VLA parameter warning
+
+Make VLA buffer types consistent in declarations and definitions.
+Resolves build crash when using -Werror due to "vla-parameter" warning.
+
+Upstream-Status: Submitted [https://github.com/google/brotli/pull/893]
+Signed-off-by: Adrian Herrera 
+---
+ c/dec/decode.c | 6 --
+ c/enc/encode.c | 5 +++--
+ 2 files changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c 
b/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
+index 114c505..bb6f1ab 100644
+--- a/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
 b/BaseTools/Source/C/BrotliCompress/brotli/c/dec/decode.c
+@@ -2030,8 +2030,10 @@ static BROTLI_NOINLINE BrotliDecoderErrorCode 
SafeProcessCommands(
+ }
+ 
+ BrotliDecoderResult BrotliDecoderDecompress(
+-size_t encoded_size, const uint8_t* encoded_buffer, size_t* decoded_size,
+-uint8_t* decoded_buffer) {
++size_t encoded_size,
++const uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(encoded_size)],
++size_t* decoded_size,
++uint8_t decoded_buffer[BROTLI_ARRAY_PARAM(*decoded_size)]) {
+   BrotliDecoderState s;
+   BrotliDecoderResult result;
+   size_t total_out = 0;
+diff --git a/c/enc/encode.c b/c/enc/encode.c
+index 68548ef..ab0a490 100644
+--- a/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
 c/BaseTools/Source/C/BrotliCompress/brotli/c/enc/encode.c
+@@ -1470,8 +1470,9 @@ static size_t MakeUncompressedStream(
+ 
+ BROTLI_BOOL BrotliEncoderCompress(
+ int quality, int lgwin, BrotliEncoderMode mode, size_t input_size,
+-const uint8_t* input_buffer, size_t* encoded_size,
+-uint8_t* encoded_buffer) {
++const uint8_t input_buffer[BROTLI_ARRAY_PARAM(input_size)],
++size_t* encoded_size,
++uint8_t encoded_buffer[BROTLI_ARRAY_PARAM(*encoded_size)]) {
+   BrotliEncoderState* s;
+   size_t out_size = *encoded_size;
+   const uint8_t* input_start = input_buffer;
+-- 
+2.31.1
+
diff --git a/meta/recipes-core/ovmf/ovmf_git.bb 
b/meta/recipes-core/ovmf/ovmf_git.bb
index 088e348bdc..a73bb916b0 100644
--- a/meta/recipes-core/ovmf/ovmf_git.bb
+++ b/meta/recipes-core/ovmf/ovmf_git.bb
@@ -17,7 +17,8 @@ SRC_URI = 
"gitsm://github.com/tianocore/edk2.git;branch=master;protocol=https \

file://0002-BaseTools-makefile-adjust-to-build-in-under-bitbake.patch \
file://0003-ovmf-enable-long-path-file.patch \
file://0004-ovmf-Update-to-latest.patch \
-"
+   file://0001-Fix-VLA-parameter-warning.patch \
+   "
 
 PV = "edk2-stable202008"
 SRCREV = "06dc822d045c2bb42e497487935485302486e151"
-- 
2.31.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154111): 
https://lists.openembedded.org/g/openembedded-core/message/154111
Mute This Topic: https://lists.openembedded.org/mt/84398113/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [dunfell][PATCH 0/1] Backport an ovmf GCC11 fix

2021-07-23 Thread Andrei Gherzan
From: Andrei Gherzan 

There can be situations where downstreamers work with updated GCC
versions and this fix would help. Even if that is not the case, the fix
is an improvement nevertheless.

Khem Raj (1):
  ovmf: Fix VLA warnings with GCC 11

 .../ovmf/0001-Fix-VLA-parameter-warning.patch | 51 +++
 meta/recipes-core/ovmf/ovmf_git.bb|  3 +-
 2 files changed, 53 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-core/ovmf/ovmf/0001-Fix-VLA-parameter-warning.patch

-- 
2.31.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154110): 
https://lists.openembedded.org/g/openembedded-core/message/154110
Mute This Topic: https://lists.openembedded.org/mt/84398112/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[OE-core] [PATCH v2] rootfs: remove ldconfig auxiliary cache where appropriate

2021-07-23 Thread Damian Wrobel
Removes the /var/cache/ldconfig auxiliary cache directory from
the rootfs when:
 - read-only-rootfs is in DISTRO_FEATURES,
 - ldconfig is not in DISTRO_FEATURES.

In both cases the /var/cache/ldconfig/aux-cache is useless.

Signed-off-by: Damian Wrobel 
---
 meta/lib/oe/rootfs.py | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index ad9fd77c8b..8e63ebac9b 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -302,6 +302,16 @@ class Rootfs(object, metaclass=ABCMeta):
 self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, '-c',
   'new', '-v', '-X'])
 
+image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs",
+True, False, self.d)
+ldconfig_in_features = bb.utils.contains("IMAGE_FEATURES", "ldconfig",
+ True, False, self.d)
+if image_rorfs or not ldconfig_in_features:
+ldconfig_cache_dir = os.path.join(self.image_rootfs, 
"var/cache/ldconfig")
+if os.path.exists(ldconfig_cache_dir):
+bb.note("Removing ldconfig auxiliary cache...")
+shutil.rmtree(ldconfig_cache_dir)
+
 def _check_for_kernel_modules(self, modules_dir):
 for root, dirs, files in os.walk(modules_dir, topdown=True):
 for name in files:
-- 
2.31.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154109): 
https://lists.openembedded.org/g/openembedded-core/message/154109
Mute This Topic: https://lists.openembedded.org/mt/84397515/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] rootfs: remove ldconfig auxiliary cache where appropriate

2021-07-23 Thread Damian Wrobel



  On Fri, 23 Jul 2021 00:37:08 +0200 Alexandre Belloni 
 wrote 
 > On 22/07/2021 11:48:22+0200, Damian Wrobel wrote:
 > > Removes the /var/cache/ldconfig auxiliary cache directory from
 > > the rootfs when:
 > >  - read-only-rootfs is in DISTRO_FEATURES,
 > >  - ldconfig is not in DISTRO_FEATURES.
 > > 
 > > In both cases the /var/cache/ldconfig/aux-cache is useless.
 > > 
 > 
 > This breaks the do_rootfs task of most of the builds with:

Thank you for the feedback.
I will send v2 with an additional check and remove the directory only if it 
exists.

--
Regards,
Damian
 > 
 > Exception: FileNotFoundError: [Errno 2] No such file or directory: 
 > '/home/pokybuild/yocto-worker/qemuarm64-ltp/build/build/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/rootfs/var/cache/ldconfig'
 > ERROR: Logfile of failure stored in: 
 > /home/pokybuild/yocto-worker/qemuarm64-ltp/build/build/tmp/work/qemuarm64-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.51846
 > NOTE: recipe core-image-sato-1.0-r0: task do_rootfs: Failed
 > ERROR: Task 
 > (/home/pokybuild/yocto-worker/qemuarm64-ltp/build/meta/recipes-sato/images/core-image-sato.bb:do_rootfs)
 >  failed with exit code '1'
 > 
 > Example here:
 > https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/1983/steps/11/logs/stdio
 > 
 > > Signed-off-by: Damian Wrobel 
 > > ---
 > >  meta/lib/oe/rootfs.py | 9 +
 > >  1 file changed, 9 insertions(+)
 > > 
 > > diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
 > > index ad9fd77c8b..80673fab3f 100644
 > > --- a/meta/lib/oe/rootfs.py
 > > +++ b/meta/lib/oe/rootfs.py
 > > @@ -302,6 +302,15 @@ class Rootfs(object, metaclass=ABCMeta):
 > >  self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, 
 > > '-c',
 > >'new', '-v', '-X'])
 > >  
 > > +image_rorfs = bb.utils.contains("IMAGE_FEATURES", 
 > > "read-only-rootfs",
 > > +True, False, self.d)
 > > +ldconfig_in_features = bb.utils.contains("IMAGE_FEATURES", 
 > > "ldconfig",
 > > + True, False, self.d)
 > > +if image_rorfs or not ldconfig_in_features:
 > > +ldconfig_cache_dir = os.path.join(self.image_rootfs, 
 > > "var/cache/ldconfig")
 > > +bb.note("Removing ldconfig auxiliary cache...")
 > > +shutil.rmtree(ldconfig_cache_dir)
 > > +
 > >  def _check_for_kernel_modules(self, modules_dir):
 > >  for root, dirs, files in os.walk(modules_dir, topdown=True):
 > >  for name in files:
 > > -- 
 > > 2.31.1
 > > 
 > 
 > > 
 > > 
 > > 
 > 
 > 
 > -- 
 > Alexandre Belloni, co-owner and COO, Bootlin
 > Embedded Linux and Kernel engineering
 > https://bootlin.com
 > 
 > 
 > 
 > 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154108): 
https://lists.openembedded.org/g/openembedded-core/message/154108
Mute This Topic: https://lists.openembedded.org/mt/84375612/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [OE-core] [PATCH] rootfs: remove ldconfig auxiliary cache where appropriate

2021-07-23 Thread Damian Wrobel



  On Thu, 22 Jul 2021 21:00:15 +0200 Andre McCurdy  
wrote 
 > On Thu, Jul 22, 2021 at 2:48 AM Damian Wrobel
 >  wrote:
 > >
 > > Removes the /var/cache/ldconfig auxiliary cache directory from
 > > the rootfs when:
 > >  - read-only-rootfs is in DISTRO_FEATURES,
 > >  - ldconfig is not in DISTRO_FEATURES.
 > >
 > > In both cases the /var/cache/ldconfig/aux-cache is useless.
 > 
 > Should there be a test for package management being supported in the
 > image too? A read-only rootfs is one case where it's not possible to
 > install ldconfig support at run time but a writeable rootfs without
 > package management support would seem to be another?

It seems to be perfectly fine to use the ldconfig without having any package 
management system.

--
Regards,
Damian

 > 
 > > Signed-off-by: Damian Wrobel 
 > > ---
 > >  meta/lib/oe/rootfs.py | 9 +
 > >  1 file changed, 9 insertions(+)
 > >
 > > diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
 > > index ad9fd77c8b..80673fab3f 100644
 > > --- a/meta/lib/oe/rootfs.py
 > > +++ b/meta/lib/oe/rootfs.py
 > > @@ -302,6 +302,15 @@ class Rootfs(object, metaclass=ABCMeta):
 > >  self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, 
 > > '-c',
 > >'new', '-v', '-X'])
 > >
 > > +image_rorfs = bb.utils.contains("IMAGE_FEATURES", 
 > > "read-only-rootfs",
 > > +True, False, self.d)
 > > +ldconfig_in_features = bb.utils.contains("IMAGE_FEATURES", 
 > > "ldconfig",
 > > + True, False, self.d)
 > > +if image_rorfs or not ldconfig_in_features:
 > > +ldconfig_cache_dir = os.path.join(self.image_rootfs, 
 > > "var/cache/ldconfig")
 > > +bb.note("Removing ldconfig auxiliary cache...")
 > > +shutil.rmtree(ldconfig_cache_dir)
 > > +
 > >  def _check_for_kernel_modules(self, modules_dir):
 > >  for root, dirs, files in os.walk(modules_dir, topdown=True):
 > >  for name in files:
 > > --
 > > 2.31.1
 > >
 > >
 > > 
 > >
 > 

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154107): 
https://lists.openembedded.org/g/openembedded-core/message/154107
Mute This Topic: https://lists.openembedded.org/mt/84375612/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-