diff options
author | Sam James <sam@gentoo.org> | 2023-09-13 21:58:33 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-09-14 03:09:10 +0100 |
commit | 879a314c68b25ae8149a8d9d8bb80fb7bf04fb8b (patch) | |
tree | 9e5adbbb809088489b8c89fd9c2acbf2a8e67136 /eclass/kernel-build.eclass | |
parent | sys-cluster/ceph: Revbumps, add patch to build with cython-3 (diff) | |
download | gentoo-879a314c68b25ae8149a8d9d8bb80fb7bf04fb8b.tar.gz gentoo-879a314c68b25ae8149a8d9d8bb80fb7bf04fb8b.tar.bz2 gentoo-879a314c68b25ae8149a8d9d8bb80fb7bf04fb8b.zip |
kernel-build.eclass: pass INSTALL_MOD_STRIP in src_test
Thanks-to: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/kernel-build.eclass')
-rw-r--r-- | eclass/kernel-build.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
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 |