From 8d3092381b8c63ad0261911737e91cc4fda109c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 14 Sep 2023 04:46:02 +0100 Subject: gentoo auto-resync : 14:09:2023 - 04:46:01 --- eclass/Manifest.gz | Bin 38493 -> 38503 bytes eclass/kernel-build.eclass | 10 +++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz index bebcd1bb034c..92783ec64d1b 100644 Binary files a/eclass/Manifest.gz and b/eclass/Manifest.gz differ diff --git a/eclass/kernel-build.eclass b/eclass/kernel-build.eclass index 0618d495f343..01cd184f41c0 100644 --- a/eclass/kernel-build.eclass +++ b/eclass/kernel-build.eclass @@ -224,8 +224,16 @@ kernel-build_src_test() { targets+=( dtbs_install ) fi + # Use the kernel build system to strip, this ensures the modules + # are stripped *before* they are signed or compressed. + local strip_args + if use strip; then + strip_args="--strip-unneeded" + fi + emake O="${WORKDIR}"/build "${MAKEARGS[@]}" \ - INSTALL_MOD_PATH="${T}" "${targets[@]}" + INSTALL_MOD_PATH="${T}" INSTALL_MOD_STRIP="${strip_args}" \ + "${targets[@]}" local dir_ver=${PV}${KV_LOCALVERSION} local relfile=${WORKDIR}/build/include/config/kernel.release -- cgit v1.2.3