All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] SDKs w/ multilibs and spdx30 'isfile'
@ 2024-07-24 23:39 Mark Hatle
  2024-07-24 23:39 ` [PATCH 1/2] spdx30_tasks.py: switch from exists to isfile checking debugsrc Mark Hatle
  2024-07-24 23:39 ` [PATCH 2/2] create-spdx-*: Support multilibs via SPDX_MULTILIB_SSTATE_ARCHS Mark Hatle
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Hatle @ 2024-07-24 23:39 UTC (permalink / raw)
  To: openembedded-core; +Cc: mark.hatle

From: Mark Hatle <mark.hatle@amd.com>

This resolves problems when building an SDK that includes multilibs.
It also adds the isfile change that was previou put in for spdx 2.2.

Introduce a new multilib SSTATE_ARCHs, as an optimization this just
defaults to SSTATE_ARCHs in most cases.  If building an SDK we do
expand it with the multilibs.

Additionally fixes the issue where were a debug component may refer
to something that is not a file.  This change was already put into
the spdx 2.2 class.  See:

commit a798d00d54a1424f9972de43ff05a0ca8950d7de
Author: Mark Hatle <mark.hatle@amd.com>
Date:   Mon Jul 15 14:56:06 2024 -0500

    create-sdpx-2.2.bbclass: Switch from exists to isfile checking debugsrc
    
    While debugsrc is almost always a file (or link), there are apparently
    cases where a directory could be returned from the dwarfsrcfiles
    processing.  When this happens, the hashing fails and an error results
    when building the SPDX documents.
    
    (From OE-Core rev: 02e262c291c0b2066132b4cb2ca5fda8145284a9)
    
    Signed-off-by: Mark Hatle <mark.hatle@amd.com>
    Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>


Mark Hatle (2):
  spdx30_tasks.py: switch from exists to isfile checking debugsrc
  create-spdx-*: Support multilibs via SPDX_MULTILIB_SSTATE_ARCHS

 meta/classes-recipe/populate_sdk_base.bbclass |  4 ++++
 meta/classes/create-spdx-2.2.bbclass          | 12 ++++++------
 meta/classes/create-spdx-3.0.bbclass          |  4 ++--
 meta/classes/spdx-common.bbclass              |  2 ++
 meta/lib/oe/sbom30.py                         |  2 +-
 meta/lib/oe/spdx30_tasks.py                   |  3 ++-
 6 files changed, 17 insertions(+), 10 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-07-24 23:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-24 23:39 [PATCH 0/2] SDKs w/ multilibs and spdx30 'isfile' Mark Hatle
2024-07-24 23:39 ` [PATCH 1/2] spdx30_tasks.py: switch from exists to isfile checking debugsrc Mark Hatle
2024-07-24 23:39 ` [PATCH 2/2] create-spdx-*: Support multilibs via SPDX_MULTILIB_SSTATE_ARCHS Mark Hatle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.