Skip to content

Make signed kernel modules stripped

Anis Bougrine openembedded-core 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest5 patches 4 repliesIn review
  2. v65 patches 1 replySuperseded
  3. v55 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v44 patches4 repliesSuperseded

Changes in v7 from the cover letter

- Move get_ext_mod() function to lib/oe/kernel_module.py lib

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5lib/oe/kernel_module.py: add get_ext_mod function for module signingmeta/lib/oe/__init__.py meta/lib/oe/kernel_module.py+22 -10 replies
2/5kernel: re-sign kernel modules after package stripping processmeta/classes-recipe/kernel-module-split.bbclass+25 -03 replies
3/5package.py: remove stripping and splitting skip for signed kernel modulesmeta/lib/oe/package.py+3 -230 replies
4/5kernel: centralize kernel module installation path in one variablemeta/classes-recipe/kernel-arch.bbclass meta/classes-recipe/kernel-module-split.bbclass meta/classes-recipe/kernel.bbclass +1 more+9 -80 replies
5/5documentation.conf: add documentation for KERNEL_MODULE_INSTALL_PREFIX variablemeta/conf/documentation.conf+1 -01 reply

Reviews trailers per patch

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

Read the v7 thread

Cover letter [OE-core][PATCH v7 0/5] Make signed kernel modules stripped

- Re-sign modules after the package stripping process.
- Remove the package-stripping skip for signed modules from package.py.
- Add KERNEL_MODULE_INSTALL_PREFIX variable

Note that tests have been made on core-minimal-image for in-tree modules and on crypto-dev and lttng-modules for out-of-tree modules.

changes in V7:

- Move get_ext_mod() function to lib/oe/kernel_module.py lib

changes in V6:

- Sort KERNEL_MODULE_INSTALL_PREFIX variable documentation alphabetically

changes in V5:

- Adapt signing function to out-of-tree modules.

changes in v4:

- Re-sign kernel modules after package stripping process
- Remove package-stripping skip in package.py
- Add MOD_INSTALL_PREFIX variable

changes in v3:

- Fixing rebase issue.

changes in v2:

- Use the conditional INSTALL_MOD_STRIP environment variable to avoid
duplicating the oe_runmake call.
- Use scripts/config script instead of grepping .config file.# Please edit the description for the branch

Anis Bougrine (5):
lib/oe/kernel_module.py: add get_ext_mod function for module signing
kernel: re-sign kernel modules after package stripping process package.py: remove stripping and splitting skip for signed kernel
modules
kernel: centralize kernel module installation path in one variable documentation.conf: add documentation for KERNEL_MODULE_INSTALL_PREFIX
variable

 meta/classes-recipe/kernel-arch.bbclass       |  1 +
 .../kernel-module-split.bbclass               | 25 ++++++++++++++++++
 meta/classes-recipe/kernel.bbclass            | 12 ++++-----
 meta/classes-recipe/module.bbclass            |  2 +-
 meta/conf/documentation.conf                  |  1 +
 meta/lib/oe/__init__.py                       |  2 +-
 meta/lib/oe/kernel_module.py                  | 21 +++++++++++++++
 meta/lib/oe/package.py                        | 26 +++----------------
 8 files changed, 59 insertions(+), 31 deletions(-)
Signature · 1 line
2.50.1 (Apple Git-155)