Skip to content

RFC Extend create-spdx to build kernel spdx info

Saul Wold openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest3 patches 4 repliesIn review
  2. v1 RFC3 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3create-spdx: Add kernel work-shared sourcemeta/classes/create-spdx.bbclass+5 -10 replies
2/3package: Add support for kernel strippingmeta/classes/package.bbclass meta/lib/oe/package.py+12 -161 reply
3/3kernel.bbclass: use common strip()meta/classes/kernel.bbclass+19 -252 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

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

This second change set, enables the kernel:do_strip() to share the oe.package:runstrip() method. A copy of the kernel is made for the kernel strip processing which is ultimately deployed, while the unstripped kernel image can be used by package.bbclass to generate the extended packagedata (debug info). The extended packagedata is also used to genrate the SPDX data.

This change also needs to strip out the "/usr/src/kernel" path since the kernel uses work-shared, which is added to the search path.

I have tested this with edgerouter which uses the
KERNEL_IMAGE_STRIP_EXTRA_SECTIONS 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      | 44 ++++++++++++++------------------
 meta/classes/package.bbclass     | 21 +++++----------
 meta/lib/oe/package.py           |  7 +++--
 4 files changed, 36 insertions(+), 42 deletions(-)
Signature · 1 line
2.31.1