Openembedded Core Discussions
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/3] Extend create-spdx to build kernel spdx info
@ 2022-01-11 23:58 Saul Wold
  2022-01-11 23:58 ` [RFC PATCH v2 1/3] create-spdx: Add kernel work-shared source Saul Wold
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Saul Wold @ 2022-01-11 23:58 UTC (permalink / raw)
  To: openembedded-core, bruce.ashfield, JPEWhacker; +Cc: Saul Wold

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(-)

-- 
2.31.1



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

end of thread, other threads:[~2022-01-12 15:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-11 23:58 [RFC PATCH v2 0/3] Extend create-spdx to build kernel spdx info Saul Wold
2022-01-11 23:58 ` [RFC PATCH v2 1/3] create-spdx: Add kernel work-shared source Saul Wold
2022-01-11 23:58 ` [RFC PATCH v2 2/3] package: Add support for kernel stripping Saul Wold
2022-01-12 14:21   ` Bruce Ashfield
2022-01-11 23:58 ` [RFC PATCH v2 3/3] kernel.bbclass: use common strip() Saul Wold
2022-01-12 14:30   ` Bruce Ashfield
2022-01-12 15:42     ` Saul Wold
2022-01-12 14:30 ` [RFC PATCH v2 0/3] Extend create-spdx to build kernel spdx info Bruce Ashfield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox