[OE-core] [PATCH 1/1] check-bbclasses: add new script to check bbclasses

2024-01-27 Thread Saul Wold
FIXES [YOCTO #14235] This script is a starting point for a "linter" for bbclass files. Currently it will check for '_' in the bbclass filename and '-' in addtask or EXPORT_FUNCTION. It will print warnings only no errors. Signed-off-by: Saul Wold --- scripts/check-bbcla

[OE-core] [PATCH 0/1] BBClass checker script (14235)

2024-01-27 Thread Saul Wold
://bugzilla.yoctoproject.org/show_bug.cgi?id=14235 Saul Wold (1): check-bbclasses: add new script to check bbclasses scripts/check-bbclasses | 109 1 file changed, 109 insertions(+) create mode 100755 scripts/check-bbclasses -- 2.34.1

[OE-core] [PATCH] package.py: OEHasPackage: Add MLPREFIX to packagename

2023-12-23 Thread Saul Wold
correctly. Signed-off-by: Saul Wold --- Tested with a lib32 image and without meta/lib/oeqa/runtime/decorator/package.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/lib/oeqa/runtime/decorator/package.py b/meta/lib/oeqa/runtime/decorator/package.py index

[OE-core] [PATCH v2] create-spdx: Add check for variable contents along with quotes

2023-02-24 Thread Saul Wold
This adds a check to ensure we that if a variable is empty it gets an empty string, this also adds quotes to indicate the variable contents. "comment": "CUSTOM_SPECIAL=" or "comment": "CUSTOM_SPECIAL=variable contents" Signed-off-by:

[OE-core] [PATCH][kirkstone] package.bbclase: Add check for /build in copydebugsources()

2023-02-20 Thread Saul Wold
that occurred in master. Fixes: [YOCTO #15026] Signed-off-by: Saul Wold --- meta/classes/package.bbclass | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 8b11fdd155..2950218145 100644 --- a/meta/classes/package.bbclass +++ b

Re: [OE-core] [PATCH] package.bbclase: Add check for /build in copydebugsources()

2023-02-20 Thread Saul Wold
On 2/20/23 14:40, Richard Purdie wrote: On Mon, 2023-02-20 at 13:30 -0800, Saul Wold wrote: This is needed when the SDK or eSDK is installed in a /build top level directory as it conflicts with the build directory within the existing /usr/src/debug/build (which is really a link). Rename

[OE-core] [PATCH] package.bbclase: Add check for /build in copydebugsources()

2023-02-20 Thread Saul Wold
that occurred in master. Fixes: [YOCTO #15026] Signed-off-by: Saul Wold --- meta/classes/package.bbclass | 7 +++ 1 file changed, 7 insertions(+) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 8b11fdd155..2950218145 100644 --- a/meta/classes/package.bbclass +++ b

Re: [OE-core] [PATCH] create-spdx: Add check for variable contents along with quotes

2023-02-16 Thread Saul Wold
On 2/16/23 07:25, Joshua Watt wrote: On Wed, Feb 15, 2023 at 6:31 PM Saul Wold wrote: This adds a check to ensure we that if a variable is empty it gets an empty string, this also adds quotes to indicate the variable contents. "comment": "

[OE-core] [PATCH] create-spdx: Add check for variable contents along with quotes

2023-02-15 Thread Saul Wold
This adds a check to ensure we that if a variable is empty it gets an empty string, this also adds quotes to indicate the variable contents. "comment": "CUSTOM_SPECIAL=''" or "comment": "CUSTOM_SPECIAL= 'variable contents'" Signed-off

[OE-core] [PATCH v2 0/1] Add support for custom annotations in SPDX

2023-02-14 Thread Saul Wold
as needed. Saul Wold (1): create-spdx-2.2: Add support for custom Annotations meta/classes/create-spdx-2.2.bbclass | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#177168): https

[OE-core] [PATCH v2 1/1] create-spdx-2.2: Add support for custom Annotations

2023-02-14 Thread Saul Wold
Date": "2023-02-13T19:44:20Z", "annotationType": "OTHER", "annotator": "Tool: oe-spdx-creator - 1.0", "comment": "CUSTOM_VARIABLE=some value or string" }, Signed-off-by: Saul Wold

Re: [OE-core] [PATCH] create-spdx-2.2: Add support for custom Annotations

2023-02-14 Thread Saul Wold
On 2/13/23 12:03, Joshua Watt wrote: On Mon, Feb 13, 2023 at 1:54 PM Saul Wold wrote: This change adds a new variable to track which recipe variables are added as SPDX Annotations. Usage: add SPDX_CUSTOME_ANNOTATION_VARS = nit: CUSTOM v2 will come shortly (I will try to address

[OE-core] [PATCH] create-spdx-2.2: Add support for custom Annotations

2023-02-13 Thread Saul Wold
Date": "2023-02-13T19:44:20Z", "annotationType": "OTHER", "annotator": "Tool: oe-spdx-creator - 1.0", "comment": "CUSTOM_VARIABLE=some value or string" }, Signed-off-by: Saul Wold

[OE-core] [PATCH] busybox: Fix depmod patch

2023-02-10 Thread Saul Wold
The original patch was actually allowing .debug modules though which was in-correct. This change blocks the parsing of .debug modules (which is correct). As noted in [YOCTO #15022] this should address the empty modules.dep when using the BusyBox depmod. Signed-off-by: Saul Wold --- .../busybox

[OE-core] [PATCH v2] at: Change when files are copied

2023-01-11 Thread Saul Wold
The create_spdx code relies on patched code, if files are changed or added during the do_configure phase they will be missed by the create_spdx process. So we need to ensure files modifications/additions happen in the do_patch phase. Signed-off-by: Saul Wold --- meta/recipes-extended

[OE-core] [PATCH] at: Change where files are modified

2023-01-11 Thread Saul Wold
The create_spdx code relies on patched code, if files are changed or added during the do_configure phase they will be missed by the create_spdx process. So we need to ensure files modifications/additions happen in the do_patch phase. Signed-off-by: Saul Wold --- meta/recipes-extended

[OE-core] [PATCH] depmodwrapper-cross: Fix missing $

2022-04-05 Thread Saul Wold
Signed-off-by: Saul Wold --- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb b/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb index 65068f02df8..303026ad789 100644

[OE-core] [PATCH] kmod: Update exclude patch to Accepted

2022-04-04 Thread Saul Wold
Upstream made a few tweaks and accepted the patch. Signed-off-by: Saul Wold --- ...dd-support-for-excluding-a-directory.patch | 35 ++- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/meta/recipes-kernel/kmod/kmod/0001-depmod-Add-support-for-excluding

Re: [OE-core] [PATCH v2 3/3] depmodwrapper: Use nonarch_base_libdir for depmod.d

2022-04-01 Thread Saul Wold
On 4/1/22 04:11, Richard Purdie wrote: On Thu, 2022-03-31 at 15:21 -0700, Saul Wold wrote: This ensure that when depmod-native runs we can find the correct exclude.conf information, in this case adding .debug to ignore the .debug kernell modules. The kmod utilities like depmod can use either

[OE-core] [PATCH v2 3/3] depmodwrapper: Use nonarch_base_libdir for depmod.d

2022-03-31 Thread Saul Wold
/depmod.d (nonarch_base_lib) When the busybox modutils are used, /lib/depmod.d is not used, so it's safe add the exclude.conf file to /lib/depmod.d. Signed-off-by: Saul Wold --- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff

[OE-core] [PATCH v2 2/3] kmod: Add an exclude directive to depmod

2022-03-31 Thread Saul Wold
This adds a new configuration directive to depmod that causes depmod to exclude a give path entry like .debug. kernel-dbg provides the modules .debug/.ko files and when installed either directly or when dbg-pkgs are selected this can cause depmod to fail. Signed-off-by: Saul Wold --- v2

[OE-core] [PATCH v2 1/3] busybox: Exclude .debug from depmod

2022-03-31 Thread Saul Wold
As with the kmod version of depmod, exclude .debug from being searched. Since busybox does not use the depmod.d and any configuration file option is ignored we just hardcode it. Signed-off-by: Saul Wold --- ...001-depmod-Ignore-.debug-directories.patch | 32 +++ meta/recipes

Re: [OE-core] [PATCH 1/2] kmod: Add an exclude directive to depmod

2022-03-30 Thread Saul Wold
I got some feedback from the kmod upstream, a v2 will be coming soon. Sau! On 3/30/22 15:11, Saul Wold wrote: This adds a new configuration directive to depmod that causes depmod to exclude a give path entry like .debug. kernel-dbg provides the modules .debug/.ko files and when installed

[OE-core] [PATCH 2/2] depmodwrapper: Use native staging dir

2022-03-30 Thread Saul Wold
Use the native staging dir so that we can get the correct depmod.d configuration files. When depmod runs we want to ensure that the newly supported exclude.conf is read so that .debug/.ko files are excluded. Signed-off-by: Saul Wold --- meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb | 4

[OE-core] [PATCH 1/2] kmod: Add an exclude directive to depmod

2022-03-30 Thread Saul Wold
kmod. Signed-off-by: Saul Wold --- .../kmod/depmodwrapper-cross_1.0.bb | 3 + ...dd-support-for-excluding-a-directory.patch | 158 ++ meta/recipes-kernel/kmod/kmod_29.bb | 4 + 3 files changed, 165 insertions(+) create mode 100644 meta/recipes-kernel

[OE-core] [PATCH v2] Change internal variables

2022-03-09 Thread Saul Wold
Signed-off-by: Saul Wold --- meta/classes/base.bbclass | 4 +-- meta/classes/cross-canadian.bbclass | 6 ++-- meta/classes/cve-check.bbclass| 31 ++- meta/classes/insane.bbclass | 7 +++-- meta/classes

[OE-core] [PATCH] Change internal variables

2022-03-07 Thread Saul Wold
This patch is another part of the inclusive language change to rename internal variables to more understandable names. Signed-off-by: Saul Wold --- meta/classes/base.bbclass | 4 +-- meta/classes/cross-canadian.bbclass | 6 ++-- meta/classes/cve-check.bbclass

[OE-core] [PATCH] convert-variable-renames: Fix output string

2022-03-02 Thread Saul Wold
Signed-off-by: Saul Wold --- scripts/contrib/convert-variable-renames.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/contrib/convert-variable-renames.py b/scripts/contrib/convert-variable-renames.py index ed012610db..856c001e11 100755 --- a/scripts/contrib

[OE-core] [PATCH v3 2/2] license.py: rename variales

2022-02-25 Thread Saul Wold
Signed-off-by: Saul Wold --- meta/lib/oe/license.py | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py index b5d378a549b..4cd382b4fd7 100644 --- a/meta/lib/oe/license.py +++ b/meta/lib/oe/license.py

[OE-core] [PATCH v3 1/2] INCOMPATIBLE_LICENSE re-work

2022-02-25 Thread Saul Wold
From: Saul Wold This re-writes the INCOMPATIBLE_LICENSE checking code to replace the WHITELIST_ with INCOMPATIBLE_LICENSE_EXCEPTIONS = ': : ...' This initial set of changes leaves most of the code structure in place, but the code in base.bbclass needs to be re-written to make the check more

[OE-core] [PATCH v3 2/2] INCOMPATIBLE_LICENSE: add has_pkg_license_exception()

2022-02-25 Thread Saul Wold
-by: Saul Wold Signed-off-by: Richard Purdie --- meta/classes/base.bbclass | 66 -- meta/classes/license_image.bbclass | 5 ++- meta/lib/oe/license.py | 10 + 3 files changed, 40 insertions(+), 41 deletions(-) diff --git a/meta/classes/base.bbclass

[OE-core] [PATCH v2] license.py: rename variables

2022-02-24 Thread Saul Wold
Update the comment to reflect new variable names Signed-off-by: Saul Wold --- v2: Update comment and change include -> include_licenses, exclude -> exclude_licenses meta/lib/oe/license.py | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff

[OE-core] [PATCH] license.py: rename variables

2022-02-24 Thread Saul Wold
Update the comment to reflect new variable names Signed-off-by: Saul Wold --- meta/lib/oe/license.py | 28 +++- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/meta/lib/oe/license.py b/meta/lib/oe/license.py index b5d378a549b..4cd382b4fd7 100644

[OE-core] [RFC] INCOMPATIBLE_LICENSE re-work

2022-02-23 Thread Saul Wold
packages (PKGS) and not recipe names (PN). This also is taking into account the changes for SPDX licenses. This is a work in progress. This version does test successfully with oe-selftest. This will be refactored as multiple patches as appropriate. Signed-off-by: Saul Wold --- meta/classes

[OE-core] [PATCH] package: rename LICENSE_EXCLUSION

2022-02-22 Thread Saul Wold
By renaming LICENSE_EXCLUSION to _exclude_incompatible, it makes it clear that this is an internal variable. Signed-off-by: Saul Wold --- meta/classes/base.bbclass| 2 +- meta/classes/package.bbclass | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/classes

[OE-core] [PATCH v2] Rename LICENSE_FLAGS variable

2022-02-21 Thread Saul Wold
From: Saul Wold (From meta-yocto rev: e937a42996c046baca7ce502c6ce0ee3c7ed38e3) Signed-off-by: Saul Wold --- v2: rename internal variables and fix comments and messages meta-poky/conf/local.conf.sample.extended | 2 +- meta/classes/base.bbclass | 4 +-- meta/classes

[OE-core] [PATCH] Rename LICENSE_FLAGS variable

2022-02-21 Thread Saul Wold
Signed-off-by: Saul Wold --- meta-poky/conf/local.conf.sample.extended| 2 +- meta/classes/base.bbclass| 4 ++-- meta/classes/license.bbclass | 2 +- meta/conf/bitbake.conf | 1 + meta

[OE-core] Proposal: INCOMPATIBLE_LICENSE_EXCEPTION

2022-02-18 Thread Saul Wold
Folks, As a follow-on to yesterday's email and replies, I would like to make the following proposal for dealing with the changes to INCOMPATIBLE_LICENSE and associated variables. Current Usage: INCOMPATIBLE_LICENSE is a list of licenses that are considered incompatible with a distro's

[OE-core] INCOMPATIBLE_LICENSES and WHITELIST_ usage

2022-02-17 Thread Saul Wold
Folks, I am working on a proposal to re-write how INCOMPATIBLE_LICENSES is used and processed to possibly include a COMPATIBLE_LICENSES variable as well, see PeterK's email [0] I am trying to determine the usage of WHITELIST_ which would be used to override a license that might be listed

[OE-core] [master-next] convert-variable-renames: change f-string back

2022-02-17 Thread Saul Wold
Add back Copyright info with update. Signed-off-by: Saul Wold --- scripts/contrib/convert-variable-renames.py | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/scripts/contrib/convert-variable-renames.py b/scripts/contrib/convert-variable-renames.py index

[OE-core] [PATCH v2] convert-variables: Script for Inclusive Language variable renames

2022-02-16 Thread Saul Wold
From: Saul Wold This script searches for a list of variable that have been renamed and converts them to their more descriptive names. It also searches for a list of variables that have been removed or deprecated and prints a message. It will print a message to inform the user

[OE-core] [RFC PATCH] Rename INCOMPATIBLE related varibale

2022-02-16 Thread Saul Wold
This is one option to handle the rename, another alternative would be to change the new INCOMPATIBLE_LICENSE_ALLOWED_RECIPES to VarFlag style. Signed-off-by: Saul Wold --- meta/classes/base.bbclass| 4 ++-- meta/classes/license_image.bbclass | 2 +- meta

[OE-core] [WIP] descriptive_rename: Script for Inclusive Language variable renames

2022-02-16 Thread Saul Wold
to be updated in their files. Many of these changes are context sensitive and may not be modified as they might be existing calls to other libraries. This message is informational only. I have tested this on poky and meta-openembedded so far. Signed-off-by: Saul Wold --- scripts/contrib/descriptive

Re: [OE-core] [PATCH v3] create-spdx: Get SPDX-License-Identifier from source

2022-02-08 Thread Saul Wold
On 2/8/22 07:37, Konrad Weihmann wrote: On 08.02.22 16:02, Saul Wold wrote: This patch will read the begining of source files and try to find the SPDX-License-Identifier to populate the licenseInfoInFiles field for each source file. This does not populate licenseConcluded at this time, nor

[OE-core] [PATCH v3] create-spdx: Get SPDX-License-Identifier from source

2022-02-08 Thread Saul Wold
to have some binary characters, the license is then converted to ascii strings. Signed-off-by: Saul Wold --- v2: Clean up commit message v3: Really fix up regex based on Peter's feedback! meta/classes/create-spdx.bbclass | 22 ++ 1 file changed, 22 insertions(+) diff --git

[OE-core] [PATCH v2] create-spdx: Get SPDX-License-Identifier from source

2022-02-07 Thread Saul Wold
to have some binary characters, the license is then converted to ascii strings. Signed-off-by: Saul Wold --- v2: Updated commit message, and fixed REGEX based on Peter's suggetion meta/classes/create-spdx.bbclass | 23 +++ 1 file changed, 23 insertions(+) diff --git a/meta

[OE-core] [PATCH 2/5] imagefeatures: selftest: Change variable to be more descriptive

2022-02-04 Thread Saul Wold
This changes a couple of variables to be more representive of their usage. Signed-off-by: Saul Wold --- meta/lib/oeqa/selftest/cases/imagefeatures.py | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa

[OE-core] [PATCH 0/5] Use more descriptive variable for skipping recipes

2022-02-04 Thread Saul Wold
variable. Sau! Saul Wold (5): skip_recipe: remove old class and rename VarFlag to SKIP_RECIPE imagefeatures: selftest: Change variable to be more descriptive multilib: Use renamed SKIP_RECIPE varFlag dnf: Use renamed SKIP_RECIPE varFlag documentation: Update for skip_recipe rename meta

[OE-core] [PATCH 1/5] skip_recipe: remove old class and rename VarFlag to SKIP_RECIPE

2022-02-04 Thread Saul Wold
This change better describes what the VarFlag is doing since it is implemeted with the SkipRecipe() function. By moving this into base.bbclass we simplify the distro inherit. Signed-off-by: Saul Wold --- meta/classes/base.bbclass | 10 ++ meta/classes/blacklist.bbclass

[OE-core] [PATCH 5/5] documentation: Update for skip_recipe rename

2022-02-04 Thread Saul Wold
This change better aligns the name of the variable with it's purpose. Since we removed the odler class, the associated documentation is also removed. Signed-off-by: Saul Wold --- meta/conf/documentation.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/conf

[OE-core] [PATCH 4/5] dnf: Use renamed SKIP_RECIPE varFlag

2022-02-04 Thread Saul Wold
This is a more descriptive variable name updated in base.bbclass Signed-off-by: Saul Wold --- meta/recipes-devtools/dnf/dnf_4.10.0.bb | 2 +- meta/recipes-devtools/libdnf/libdnf_0.65.0.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/dnf

[OE-core] [PATCH 3/5] multilib: Use renamed SKIP_RECIPE varFlag

2022-02-04 Thread Saul Wold
This is a more descriptive variable name updated in base.bbclass Signed-off-by: Saul Wold --- meta/classes/multilib.bbclass | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meta/classes/multilib.bbclass b/meta/classes/multilib.bbclass index 4a3e582816d..ec2013198ce

Re: [OE-core] [PATCH] recipetool/create: Scan for SDPX-License-Identifier

2022-02-03 Thread Saul Wold
On 2/3/22 13:24, Richard Purdie wrote: On Thu, 2022-02-03 at 09:07 -0800, Saul Wold wrote: When a file can not be identified by checksum and they contain an SPDX License-Identifier tag, use it as the found license. [YOCTO #14529] Tested with LICENSE files that contain 1 or more SPDX-License

[OE-core] [PATCH] recipetool: Fix circular reference in SRC_URI

2022-02-03 Thread Saul Wold
def get_srcrev(d, method_name='sortable_revision'): # ... trimmed scms = [] fetcher = Fetch(d.getVar('SRC_URI').split(), d) # ... trimmed [YOCTO #14040] Signed-off-by: Saul Wold --- scripts/lib/recipetool/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

[OE-core] [PATCH] recipetool/create: Scan for SDPX-License-Identifier

2022-02-03 Thread Saul Wold
When a file can not be identified by checksum and they contain an SPDX License-Identifier tag, use it as the found license. [YOCTO #14529] Tested with LICENSE files that contain 1 or more SPDX-License-Identifier tags Signed-off-by: Saul Wold --- scripts/lib/recipetool/create.py | 16

Re: [OE-core] [PATCH] create-spdx: Get SPDX-License-Identifier from source

2022-02-01 Thread Saul Wold
On 2/1/22 19:21, Peter Kjellerstedt wrote: -Original Message- From: openembedded-core@lists.openembedded.org On Behalf Of Saul Wold Sent: den 2 februari 2022 01:02 To: openembedded-core@lists.openembedded.org; jpewhac...@gmail.com Cc: Saul Wold Subject: [OE-core] [PATCH] create-spdx

[OE-core] [PATCH] create-spdx: Get SPDX-License-Identifier from source

2022-02-01 Thread Saul Wold
to have some binary characters, the license is then converted to ascii strings. Signed-off-by: Saul Wold --- Merge after Joshua's patch (spdx: Add set helper for list properties) merges meta/classes/create-spdx.bbclass | 23 +++ 1 file changed, 23 insertions(+) diff --git a/meta

[OE-core] [WIP/RFC] create-spdx: Get SPDX-License-Identifier from source

2022-01-28 Thread Saul Wold
This patch will read the begining of source files and try to find the SPDX-License-Identifier to populate the licenseInfoInFiles field for each source file. This does not populate licenseConculed at this time, nor rolls it up to package level. Signed-off-by: Saul Wold --- classes/create

Re: [OE-core] [PATCH] create-spdx: add support for SDKs

2022-01-14 Thread Saul Wold
Overall I think this is going in the right direction, I need to review it a little deeper and check the actual output. I am not sure that you tested this against master as you use the old _ override syntax vs using a :. See note below. Sau! On 1/12/22 11:40, Andres Beltran wrote:

[OE-core] [PATCH 2/3] package: Add support for kernel stripping

2022-01-12 Thread Saul Wold
-off-by: Saul Wold --- meta/classes/package.bbclass | 17 + meta/lib/oe/package.py | 9 - 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 09cd376f4af..4927fb99ff1 100644 --- a/meta

[OE-core] [PATCH 3/3] kernel.bbclass: use common strip()

2022-01-12 Thread Saul Wold
kernel binary for the debug information and extended packagedata. The extended package data is used by create-spdx. Signed-off-by: Saul Wold --- meta/classes/kernel.bbclass | 44 - 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/meta/classes

[OE-core] [PATCH 1/3] create-spdx: Add kernel work-shared source

2022-01-12 Thread Saul Wold
Since the kernel source is stored in work-shared, we need to add it to the search path so the kernel and kernel-modules source code can be found correctly. Signed-off-by: Saul Wold --- meta/classes/create-spdx.bbclass | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta

[OE-core] [PATCH 0/3] Add support for creating spdx data for kernel

2022-01-12 Thread Saul Wold
debuginfo / extended packagedata can be generated correctly. This is the data that's used by create-spdx. Sau! Saul Wold (3): create-spdx: Add kernel work-shared source package: Add support for kernel stripping kernel.bbclass: use common strip() meta/classes/create-spdx.bbclass | 6

Re: [OE-core] [RFC PATCH v2 3/3] kernel.bbclass: use common strip()

2022-01-12 Thread Saul Wold
On 1/12/22 06:30, Bruce Ashfield wrote: On Tue, Jan 11, 2022 at 6:59 PM Saul Wold wrote: Re-use the runstrip() code from oe.packaging, for the kernel stripping process. Since runstrip() is python the kernel do_strip() need to be converted to Python also. The stripped kernel image

[OE-core] [RFC PATCH v2 3/3] kernel.bbclass: use common strip()

2022-01-11 Thread Saul Wold
kernel binary for the debug information and extended packagedata. The extended package data is used by create-spdx. Signed-off-by: Saul Wold --- meta/classes/kernel.bbclass | 44 - 1 file changed, 19 insertions(+), 25 deletions(-) diff --git a/meta/classes

[OE-core] [RFC PATCH v2 2/3] package: Add support for kernel stripping

2022-01-11 Thread Saul Wold
-off-by: Saul Wold --- meta/classes/package.bbclass | 21 +++-- meta/lib/oe/package.py | 7 +-- 2 files changed, 12 insertions(+), 16 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 09cd376f4af..794996e6d6d 100644 --- a/meta

[OE-core] [RFC PATCH v2 0/3] Extend create-spdx to build kernel spdx info

2022-01-11 Thread Saul Wold
S variable If this looks good, I will send a non-RFC patch set tomorrow. Sau! Saul Wold (3): create-spdx: Add kernel work-shared source package: Add support for kernel stripping kernel.bbclass: use common strip() meta/classes/create-spdx.bbclass | 6 - meta/classes/kernel.bbclass

[OE-core] [RFC PATCH v2 1/3] create-spdx: Add kernel work-shared source

2022-01-11 Thread Saul Wold
Since the kernel source is stored in work-shared, we need to add it to the search path so the kernel and kernel-modules source code can be found correctly. Signed-off-by: Saul Wold --- meta/classes/create-spdx.bbclass | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta

Re: [OE-core] [RFC PATCH 2/3] kernel.bbclass: remove do_strip() method

2022-01-11 Thread Saul Wold
On 1/11/22 03:27, Richard Purdie wrote: On Mon, 2022-01-10 at 16:42 -0800, Saul Wold wrote: On 1/8/22 11:27, Bruce Ashfield wrote: On Fri, Jan 7, 2022 at 6:19 PM Richard Purdie mailto:richard.pur...@linuxfoundation.org>> wrote: On Fri, 2022-01-07 at 13:24 -0800, Saul Wold

Re: [OE-core] [RFC PATCH 2/3] kernel.bbclass: remove do_strip() method

2022-01-10 Thread Saul Wold
On 1/8/22 11:27, Bruce Ashfield wrote: On Fri, Jan 7, 2022 at 6:19 PM Richard Purdie <mailto:richard.pur...@linuxfoundation.org>> wrote: On Fri, 2022-01-07 at 13:24 -0800, Saul Wold wrote: > Move the do_strip() functionality to a more common location in the

[OE-core] [RFC PATCH 2/3] kernel.bbclass: remove do_strip() method

2022-01-07 Thread Saul Wold
of package stripping. Signed-off-by: Saul Wold --- meta/classes/kernel.bbclass | 35 +++ 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 7685c6921fa..30e67abb936 100644 --- a/meta/classes

[OE-core] [RFC PATCH 3/3] package: Add support for kernel stripping

2022-01-07 Thread Saul Wold
or hardcode the values to runstrip. Signed-off-by: Saul Wold --- meta/classes/package.bbclass | 23 --- meta/lib/oe/package.py | 7 +-- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index

[OE-core] [RFC PATCH 1/3] create-spdx: Add kernel work-shared source

2022-01-07 Thread Saul Wold
Since the kernel source is stored in work-shared, we need to add it to the search path so the kernel and kernel-modules source code can be found correctly. Signed-off-by: Saul Wold --- meta/classes/create-spdx.bbclass | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta

[OE-core] [RFC PATCH 0/3] Extend create-spdx to build kernel spdx info

2022-01-07 Thread Saul Wold
ressive. I am guessing that part of the change might need some tuning. Thanks Sau! Saul Wold (3): create-spdx: Add kernel work-shared source kernel.bbclass: remove do_strip() method package: Add support for kernel stripping meta/classes/create-spdx.bbclass | 6 +- meta/classes/kern

[OE-core] [PATCH v2] perl: Enable threading

2022-01-06 Thread Saul Wold
From: Saul Wold When the tranisiton to perl-cross occured, the threading define seems to have been missed. The perl tests for threading where simply skipped, so there was no direct failures. This was verified by running perl ptest before and after the change to see PASS vs SKIP results

Re: [OE-core] [PATCH] perl: Enable threading

2022-01-06 Thread Saul Wold
On 1/6/22 10:22, Khem Raj wrote: On Thu, Dec 30, 2021 at 1:24 PM Saul Wold wrote: When the tranisiton to perl-cross occured, the threading define seems to have been missed. The perl tests for threading where simply skipped, so there was no direct failures. This was verified by running

Re: [OE-core] [PATCH 2/2] package.bbclass: don't skip kernel and kernel modules

2022-01-05 Thread Saul Wold
On 1/5/22 09:30, Bruce Ashfield wrote: On Wed, Jan 5, 2022 at 12:07 PM Richard Purdie wrote: On Tue, 2022-01-04 at 14:07 -0800, Saul Wold wrote: On 12/22/21 01:09, Richard Purdie wrote: On Tue, 2021-12-21 at 11:08 -0800, Saul Wold wrote: Stop ignoring or skipping the kernel and kernel

Re: [OE-core] [PATCH 2/2] package.bbclass: don't skip kernel and kernel modules

2022-01-04 Thread Saul Wold
On 12/22/21 01:09, Richard Purdie wrote: On Tue, 2021-12-21 at 11:08 -0800, Saul Wold wrote: Stop ignoring or skipping the kernel and kernel modules code in the split debug and striping functions, this will allow create_spdx to process the kernel and modules. Signed-off-by: Saul Wold

[OE-core] [PATCH] perl: Enable threading

2021-12-30 Thread Saul Wold
. Signed-off-by: Saul Wold --- meta/recipes-devtools/perl/perl_5.34.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/perl/perl_5.34.0.bb b/meta/recipes-devtools/perl/perl_5.34.0.bb index a6ae80f07e1..3306a093692 100644 --- a/meta/recipes-devtools/perl/perl_5.34.0.bb

[OE-core] [PATCH 2/2] package.bbclass: don't skip kernel and kernel modules

2021-12-21 Thread Saul Wold
Stop ignoring or skipping the kernel and kernel modules code in the split debug and striping functions, this will allow create_spdx to process the kernel and modules. Signed-off-by: Saul Wold --- meta/classes/package.bbclass | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff

[OE-core] [PATCH 1/2] kernel: add -dbg package

2021-12-21 Thread Saul Wold
Adding the dbg package allows the package bbclass to parse the debug information which can then be used by the create_spdx bbclass Signed-off-by: Saul Wold --- meta/classes/kernel.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/kernel.bbclass b/meta

[OE-core] [PATCH 0/2] Enable package.bbclass to process kernel packages

2021-12-21 Thread Saul Wold
These changes allow the package bbclass to process the kernel and kernel modules so that they that extended packaging info can be used by the create-spdx bbclass. Tested with qemux86-64 Saul Wold (2): kernel: add -dbg package package.bbclass: don't skip kernel and kernel modules meta

Re: [OE-core] [PATCH 4/4] core: udev: udev-extraconf: rename mount.blacklist* to mount.blocklist.*

2021-12-16 Thread Saul Wold
On 12/8/21 01:57, Eero Aaltonen wrote: On Mon, 2021-12-06 at 23:31 +, Richard Purdie via lists.openembedded.org wrote: On Mon, 2021-12-06 at 16:35 +0100, Quentin Schulz wrote: blocklist has a more obvious meaning than blacklist and is also not an issue wrt inclusivity, so let's use that

Re: [OE-core] [oe] Help with Inclusive Language in OpenEmbedded/Yocto Project

2021-12-15 Thread Saul Wold
On 12/6/21 17:01, Jon Mason wrote: This email is a follow-up from the session held on Friday at the OpenEmbedded Developer's Virtual Meeting (see https://www.openembedded.org/wiki/OEDVM_Nov_2021) The session was not recorded, but the slides can be found at

[OE-core] [PATCH 2/2] create-spdx: Protect against None from LICENSE_PATH

2021-11-17 Thread Saul Wold
If LICENSE_PATH is not set, then the split() will fail on a NoneType. Signed-off-by: Saul Wold --- meta/classes/create-spdx.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass index 1d5c8b3bc1

[OE-core] [PATCH 0/2] Couple of SPDX fixes

2021-11-17 Thread Saul Wold
I was trying to build more layers such as meta-clang and found additional changes are needed to support other packages that are installed into work-shared. We might also need a similar patch for the archiver is this change is acceptable. Sau! Saul Wold (2): create_spdx: ensure

[OE-core] [PATCH 1/2] create_spdx: ensure is_work_shared() is uniqe

2021-11-17 Thread Saul Wold
There is a function with the same name is_work_shared() in the archiver class this causes a conflict when both classes are included. Use work-shared as the check in WORKDIR to allow for other packages beyond the kernel and gcc that use a common shared-work source directory. Signed-off-by: Saul

Re: [OE-core] [PATCH 0/3] SPDX: Add annotations to relationship

2021-11-16 Thread Saul Wold
On 11/16/21 8:39 AM, Saul Wold wrote: On 11/15/21 2:44 PM, Paul Eggleton wrote: On Tuesday, 9 November 2021 08:01:38 NZDT Saul Wold wrote: On 11/4/21 2:20 PM, Joshua Watt wrote: On 11/4/21 3:50 PM, Richard Purdie wrote: On Thu, 2021-11-04 at 15:45 -0500, Joshua Watt wrote: On 11/4/21 3

Re: [OE-core] [PATCH 0/3] SPDX: Add annotations to relationship

2021-11-16 Thread Saul Wold
On 11/15/21 2:44 PM, Paul Eggleton wrote: On Tuesday, 9 November 2021 08:01:38 NZDT Saul Wold wrote: On 11/4/21 2:20 PM, Joshua Watt wrote: On 11/4/21 3:50 PM, Richard Purdie wrote: On Thu, 2021-11-04 at 15:45 -0500, Joshua Watt wrote: On 11/4/21 3:43 PM, Richard Purdie wrote: On Thu

Re: [OE-core] [PATCH 0/3] SPDX: Add annotations to relationship

2021-11-08 Thread Saul Wold
On 11/4/21 2:20 PM, Joshua Watt wrote: On 11/4/21 3:50 PM, Richard Purdie wrote: On Thu, 2021-11-04 at 15:45 -0500, Joshua Watt wrote: On 11/4/21 3:43 PM, Richard Purdie wrote: On Thu, 2021-11-04 at 20:00 +, Jose Quaresma wrote: Richard Purdie escreveu no dia quinta, 28/10/2021 à(s)

[OE-core] [PATCH 0/3] SPDX: Add annotations to relationship

2021-10-26 Thread Saul Wold
Add annotations to relationships and refactor code to add create_annotation() function for code reuse. Ensure that "cross" recipes are factored into isNative also. v2: removed leftover and unused annotation per Joshua Sau! Saul Wold (3): spdx.py: Add annotation to relationship c

[OE-core] [PATCH v2 1/3] spdx.py: Add annotation to relationship

2021-10-26 Thread Saul Wold
Having annotations on relationship can provide additional information about the relationship such as how it was derived. Signed-off-by: Saul Wold --- lib/oe/spdx.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/oe/spdx.py b/lib/oe/spdx.py index 4416194..9e7ced5

[OE-core] [PATCH v2 2/3] create-spdx: add create_annotation function

2021-10-26 Thread Saul Wold
This allows code reuse and future usage with relationship annotations Signed-off-by: Saul Wold --- classes/create-spdx.bbclass | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/classes/create-spdx.bbclass b/classes/create-spdx.bbclass index dd341db..72a9b55

[OE-core] [PATCH v2 3/3] create-spdx: cross recipes are native also

2021-10-26 Thread Saul Wold
Recipes that inherit cross should also be categorized as isNative Signed-off-by: Saul Wold --- classes/create-spdx.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/create-spdx.bbclass b/classes/create-spdx.bbclass index 72a9b55..e8f476f 100644

[OE-core] [PATCH 0/3] SPDX: Add annotations to relationship

2021-10-26 Thread Saul Wold
Add annotations to relationships and refactor code to add create_annotation() function for code reuse. Ensure that "cross" recipes are factored into isNative also. Sau! Saul Wold (3): spdx.py: Add annotation to relationship create-spdx: add create_annotation function create-s

[OE-core] [PATCH 2/3] create-spdx: add create_annotation function

2021-10-26 Thread Saul Wold
This allows code reuse and future usage with relationship annotations Signed-off-by: Saul Wold --- classes/create-spdx.bbclass | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/classes/create-spdx.bbclass b/classes/create-spdx.bbclass index dd341db..72a9b55

[OE-core] [PATCH 3/3] create-spdx: cross recipes are native also

2021-10-26 Thread Saul Wold
Recipes that inherit cross should also be categorized as isNative Signed-off-by: Saul Wold --- classes/create-spdx.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/create-spdx.bbclass b/classes/create-spdx.bbclass index 72a9b55..883bc23 100644

[OE-core] [PATCH 1/3] spdx.py: Add annotation to relationship

2021-10-26 Thread Saul Wold
Having annotations on relationship can provide additional information about the relationship such as how it was derived. Signed-off-by: Saul Wold --- lib/oe/spdx.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/oe/spdx.py b/lib/oe/spdx.py index 4416194..9e7ced5

[OE-core] [PATCH 1/2] spdx.py: Add SPDXAnnotation Object

2021-09-27 Thread Saul Wold
This is added to allow the create-spdx code to create annotations that store values properly according to the SPDX Specification. Initialy they will be used to track if a recipe is a native type. Signed-off-by: Saul Wold --- meta/lib/oe/spdx.py | 7 +++ 1 file changed, 7 insertions

[OE-core] [PATCH 2/2] create-spdx: Use SPDXAnnotation to track native recipes

2021-09-27 Thread Saul Wold
the same checksum as the target file. The that are generated DocumentRefs point to the native recipe rather than the target recipe DocumentRef. Signed-off-by: Saul Wold --- meta/classes/create-spdx.bbclass | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/meta

  1   2   3   4   5   6   7   8   9   10   >