Kbuild — The Linux Kernel documentation
INSTALL_MOD_STRIP, if defined, will cause modules to be stripped after they are installed. If INSTALL_MOD_STRIP is ‘1’, then the default option --strip-debug will be used.
Searching…
INSTALL_MOD_STRIP, if defined, will cause modules to be stripped after they are installed. If INSTALL_MOD_STRIP is ‘1’, then the default option --strip-debug will be used.
When stripping many unnecessary drivers and options, it resulted in a size of 892892 kB which is a size reduction of 53% compared to the stock kernel. 2 3 When installing the kernel modules, append the INSTALL_MOD_STR...
The commit you quoted only reverts changes to the stripping behavior, but INSTALL_MOD_STRIP existed long before that. As far as I can tell, it was introduced in commit ac031f26e8, which only mentions it as the solutio...
Apr 19, 2020 · When installing the kernel modules, append the INSTALL_MOD_STRIP=1 option. This will strip all debugging symbols and reduced the size by 92% for me (from 892892 kB to 69356 kB). Note this will only affe...
The kernel makefile does it for you if you run make INSTALL_MOD_STRIP=1 modules_install. You can prevent debugging symbols being inserted in the first place by configuring your kernel with CONFIG_DEBUG_INFO not defined.
May 16, 2024 · I ended up also finding out that Linux’s industrial Rube Goldberg machine of a Makefile architecture can read from another environment variable called INSTALL_MOD_STRIP.
Jan 4, 2024 · Modules_install copies the driver to the installation directory and processes the driver using mod_strip_cmd. If INSTALL_MOD_STRIP is set, the driver is stripped, otherwise nothing is done.
Sep 3, 2017 · I'm trying to stripping kernel modules crazily (more than INSTALL_MOD_STRIP=1 does). Because time to load them and time to boot is reduced a few second (even only for modules in initramfs with slow PCIE ...
Nov 2, 2017 · While researching something else I came across the INSTALL_MOD_STRIP=1 option. For my am3352 kernel I added this option to the `modules_install` command of my build and it took my directory of 300-ish mo...
INSTALL_MOD_STRIP, if defined, will cause modules to be stripped after they are installed. If INSTALL_MOD_STRIP is '1', then the default option --strip-debug will be used.