[RFC,0/3] Extend create-spdx to build kernel spdx info

Message ID 20220107212446.132386-1-saul.wold@windriver.com
Headers show
Series Extend create-spdx to build kernel spdx info | expand

Message

Saul Wold Jan. 7, 2022, 9:24 p.m. UTC
This set of changes moves the kernel:do_strip() functionality to 
the packaging code related to split_and_strip_files(). The code
checks the KENREL_IMAGE_STRIP_EXTRA_SECTIONS for the kernel specific
path. This also needs to strip out the "/usr/src/kernel" path since
the kernel uses work-shared, which is added to the search path.

I am still working on testing this, but want to get more eyes on it.

I am most concerned with the change to package.bbclass to handle the
kernel and modules. As mentioned in the other patch thread, there was
some concern about the stripping being too agressive. 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/kernel.bbclass      | 35 +++-----------------------------
 meta/classes/package.bbclass     | 23 +++++++++++----------
 meta/lib/oe/package.py           |  7 +++++--
 4 files changed, 25 insertions(+), 46 deletions(-)