[OE-core] [PATCH] sdk: Support usrmerge in toolchain SDK builds

2024-12-30 Thread Philip Lorenz via lists.openembedded.org
SDKs which aren't built from an image recipe should also come with drop-in symlinks for `/bin`, `/lib` and `/sbin`. Support this by moving the common functionality into `populate_sdk_base` and enabling the symlink creation when the `usrmerge` DISTRO_FEATURE is on. Signed-off-by: Philip L

[OE-core] [kirkstone][PATCH] cmake: Fix sporadic issues when determining compiler internals

2024-11-07 Thread Philip Lorenz
| | ^~ | compilation terminated. | ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. Fix this stripping `-pipe` from the command line used to determine compiler internals. Signed-off-by: Philip Lorenz --- meta/recipes-devtools

[OE-core] [scarthgap][PATCH] cmake: Fix sporadic issues when determining compiler internals

2024-11-07 Thread Philip Lorenz
| | ^~ | compilation terminated. | ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. Fix this stripping `-pipe` from the command line used to determine compiler internals. Signed-off-by: Philip Lorenz --- meta/recipes-devtools

[OE-core] [PATCH] cmake: Fix sporadic issues when determining compiler internals

2024-11-05 Thread Philip Lorenz
| | ^~ | compilation terminated. | ninja: build stopped: subcommand failed. | WARNING: exit code 1 from a shell command. Fix this stripping `-pipe` from the command line used to determine compiler internals. Signed-off-by: Philip Lorenz --- meta/recipes-devtools

[OE-core] [PATCH] curl: Reenable auth support for native and nativesdk

2024-08-05 Thread Philip Lorenz
PACKAGECONFIG variable for the flags common to all recipe variants to avoid such regressions in the future. Signed-off-by: Philip Lorenz --- meta/recipes-support/curl/curl_8.8.0.bb | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/meta/recipes-support/curl/curl_8.8.0.bb b

[OE-core] [scarthgap][PATCH 2/2] ipk: Fix clean up of extracted IPK payload

2024-05-28 Thread Philip Lorenz
extract method. Signed-off-by: Philip Lorenz Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie (cherry picked from commit 1e2b02a54f482159e21902eeb997b21e00e9588e) --- meta/lib/oe/package_manager/ipk/__init__.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[OE-core] [scarthgap][PATCH 1/2] lib/package_manager/ipk: Do not hardcode payload compression algorithm

2024-05-28 Thread Philip Lorenz
The chosen payload compression algorithm can be changed by overriding `OPKGBUILDCMD`. Ensure that package extraction deals with this by globbing for "data.tar.*" to select the actual payload tarball. Signed-off-by: Philip Lorenz Signed-off-by: Richard Purdie (cherry picked f

Re: [OE-core] [PATCH 0/3] package_manager: Clean up shared deb / ipk helpers

2024-05-24 Thread Philip Lorenz
Hi, I haven't received any feedback on this so far and couldn't spot the series in master-next either. I'm not too familiar with the review process so please let me know if you require any further input from my side. Br, Philip On 16.05.24 09:24, Philip Lorenz wrote: Th

[OE-core] [PATCH 3/3] package_manager: Share more common DEB / IPK code

2024-05-16 Thread Philip Lorenz
Avoid code duplication by making `extract` a shared method (and retrieving the package manager specific input via an abstract method). Additionally, follow Python conventions and prefix class internal methods with "_" to indicate that they shouldn't be called externally. Signed

[OE-core] [PATCH 1/3] ipk: Fix clean up of extracted IPK payload

2024-05-16 Thread Philip Lorenz
extract method. Signed-off-by: Philip Lorenz --- meta/lib/oe/package_manager/ipk/__init__.py | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/meta/lib/oe/package_manager/ipk/__init__.py b/meta/lib/oe/package_manager/ipk/__init__.py index 0f0038d00d9..47e72cc7a65 100644

[OE-core] [PATCH 2/3] package_manager: Move OpkgDpkgPM into common module

2024-05-16 Thread Philip Lorenz
the change by moving the common base class into a newly created module. The two variants did not diverge a lot (next to the payload name generalization, the Debian variant missed 17e2eaed036e1da8e7cb42cb3de51b9523ba54ec) and as such no regressions should be expected. Signed-off-by: Philip Lorenz

[OE-core] [PATCH 0/3] package_manager: Clean up shared deb / ipk helpers

2024-05-16 Thread Philip Lorenz
couldn't think of one and couldn't figure this out based on the commit history), please let me know. As part of this clean up, the `extract` method is moved into the common base class to ensure that future adaptations apply to both specializations. Philip Lorenz (3): ipk: Fix clean up

Re: [OE-core] [PATCH] ipk: Do not hardcode payload compression algorithm

2024-05-02 Thread Philip Lorenz
. --- Hi Philip, On 5/2/24 4:27 PM, Philip Lorenz via lists.openembedded.org wrote: [You don't often get email from philip.lorenz=bmw...@lists.openembedded.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] The c

[OE-core] [PATCH] ipk: Do not hardcode payload compression algorithm

2024-05-02 Thread Philip Lorenz
The chosen payload compression algorithm can be changed by overriding `OPKGBUILDCMD`. Ensure that package extraction deals with this by globbing for "data.tar.*" to select the actual payload tarball. Signed-off-by: Philip Lorenz --- meta/lib/oe/package_manager/ipk/__init__.py | 8 +

[OE-core] [RFC PATCH v2 3/3] packagedata: Extract GNU build ID during pkgdata creation

2024-03-05 Thread Philip Lorenz
as debuginfod. Sequentially reading out the GNU build ID of ~8000 debug symbol files (from a core-image-minimal build) took approximately 90 seconds on my machine. Given that the read out in a typical build will be highly parallel, I deemed this figure low enough to simply enable it without an

[OE-core] [RFC PATCH v2 1/3] oe-pkgdata-util: Add read-extended command

2024-03-05 Thread Philip Lorenz
is not supported as this would require further processing by clients using this command before the returned JSON payload can be parsed. Signed-off-by: Philip Lorenz --- meta/lib/oeqa/selftest/cases/pkgdata.py | 16 +++ scripts/oe-pkgdata-util | 36 +

[OE-core] [RFC PATCH v2 0/3] package: Extract GNU build ID during packaging

2024-03-05 Thread Philip Lorenz
tion switch. Let me know if this doesn't match your expectations. Philip Lorenz (3): oe-pkgdata-util: Add read-extended command package: Expose list of split out debug files packagedata: Extract GNU build ID during pkgdata creation meta/classes-global/package.bbclass | 4 +++

[OE-core] [RFC PATCH v2 2/3] package: Expose list of split out debug files

2024-03-05 Thread Philip Lorenz
files containing debug symbols. Signed-off-by: Philip Lorenz --- meta/classes-global/package.bbclass | 4 meta/lib/oe/package.py | 19 ++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/meta/classes-global/package.bbclass b/meta/classes-global

Re: [OE-core] [RFC PATCH 0/1] package.bbclass: Expose list of split out debug files

2024-02-29 Thread Philip Lorenz
Hi Alex, On 28.02.24 18:40, Alexander Kanavin wrote: On Wed, 28 Feb 2024 at 16:41, Philip Lorenz wrote: I'm assuming this data wouldn't be that large or that expensive to compute so I'd prefer not to hide it behind extra configuration options if we can help it. That doe

Re: [OE-core] [RFC PATCH 0/1] package.bbclass: Expose list of split out debug files

2024-02-28 Thread Philip Lorenz
Hi Richard, On 28.02.24 10:14, Richard Purdie wrote: On Wed, 2024-02-28 at 07:21 +0100, Philip Lorenz wrote: With the introduction of debuginfod ([1]), providing debug symbols to developers has been greatly simplified. Initial support for spawning a debuginfod server is already available as

Re: [OE-core] [RFC PATCH 0/1] package.bbclass: Expose list of split out debug files

2024-02-28 Thread Philip Lorenz
Hi Alex, On 28.02.24 08:41, Alexander Kanavin wrote: On Wed, 28 Feb 2024 at 07:22, Philip Lorenz wrote: However, this relies on debuginfod scraping the debug packages for their build IDs. This is not only inefficient (as all packages need to be extracted again), but it also does not scale

[OE-core] [RFC PATCH 0/1] package.bbclass: Expose list of split out debug files

2024-02-27 Thread Philip Lorenz
to implement the setup described above, but as those parts are still in the prototyping phase, it will require some more time. [1] https://sourceware.org/elfutils/Debuginfod.html Philip Lorenz (1): package.bbclass: Expose list of split out debug files meta/classes-global/package.bbclass | 4

[OE-core] [RFC PATCH 1/1] package.bbclass: Expose list of split out debug files

2024-02-27 Thread Philip Lorenz
generated during stripping. Signed-off-by: Philip Lorenz --- meta/classes-global/package.bbclass | 4 meta/lib/oe/package.py | 19 ++- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/meta/classes-global/package.bbclass b/meta/classes-global

Re: [OE-core] [pseudo][PATCH] test: Add missing test-statx test case

2021-08-15 Thread Philip Lorenz
On 11.08.21 19:19, Mike Crowe wrote: On Wednesday 11 August 2021 at 18:41:32 +0200, Philip Lorenz wrote: Adding this test case was erroneously omitted in 7c722296879906fe093e1e7c4b7537e150d492cd. Signed-off-by: Philip Lorenz --- test/test-statx.c | 20 test/test

Re: [OE-core] [pseudo][PATCH] makewrappers: Handle parameters marked as nonnull

2021-08-11 Thread Philip Lorenz
Hi Mike, On 11.08.21 18:25, Mike Crowe wrote: On Monday 17 May 2021 at 21:25:06 +0200, Philip Lorenz wrote: Commit 60e25a36558f1f07dcce1a044fe976b475bec42b started dereferencing the "path" parameter which for some functions is annotated with the "nonnull" attribute. While t

[OE-core] [pseudo][PATCH] test: Add missing test-statx test case

2021-08-11 Thread Philip Lorenz
Adding this test case was erroneously omitted in 7c722296879906fe093e1e7c4b7537e150d492cd. Signed-off-by: Philip Lorenz --- test/test-statx.c | 20 test/test-statx.sh | 6 ++ 2 files changed, 26 insertions(+) create mode 100644 test/test-statx.c create mode 100755

[OE-core] [pseudo][PATCH] client: Fix some compiler warnings

2021-05-17 Thread Philip Lorenz
cal variable [-Wreturn-local-addr] pseudo_client.c:1592:15: note: declared here 1592 | pseudo_msg_t msg = { .type = PSEUDO_MSG_OP }; Signed-off-by: Philip Lorenz --- pseudo_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pseudo_client.c b/pseudo_client.c

[OE-core] [pseudo][PATCH] makewrappers: Handle parameters marked as nonnull

2021-05-17 Thread Philip Lorenz
to determine whether the statx() system call is supported. Disabling the optimization is not possible ([1]) so prevent the compiler optimization by referencing the parameter in a noop inline assembly instruction instead. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100404 Signed-off-by: P

[OE-core] [pseudo][PATCH] wrappers: Avoid -Wcast-function-type warning

2021-05-17 Thread Philip Lorenz
-Options.html#index-Wcast-function-type Signed-off-by: Philip Lorenz --- ports/linux/pseudo_wrappers.c | 4 ++-- pseudo_wrappers.c | 2 +- templates/wrapper_table | 8 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ports/linux/pseudo_wrappers.c b/ports/linux