[Buildroot] [PATCH 2/2] package/pkg-kernel-module: disable CONFIG_TRIM_UNUSED_KSYMS

Peter Korsgaard peter at korsgaard.com
Wed Jan 8 22:00:07 UTC 2025


On 1/4/25 22:38, Thomas Petazzoni via buildroot wrote:
> The kernel option CONFIG_TRIM_UNUSED_KSYMS=y allows to trim unused
> kernel symbols... which basically prevents building external
> modules. This option has been enabled in the default MIPS architecture
> kernel defconfig since pretty much forever, and it causes build
> failures of all our external modules on MIPS in the autobuilders.
> 
> To fix this in a global manner, we handle the problem in the
> kernel-module infrastructure, by appending to the
> <pkg>_LINUX_CONFIG_FIXUPS variable provided by the package.
> 
> Fixes:
> 
>    http://autobuild.buildroot.net/results/c26abec4e24d06557079654b12825efb2211996f/ (cryptodev-linux)
>    http://autobuild.buildroot.net/results/699c618730cb33f0ccf54f90e4b722198fd3d3bc/ (emlog)
>    http://autobuild.buildroot.net/results/f1d5626f5698a955bf378217528fbf4f8f741435/ (rtl8812au-aircrack-ng)
>    http://autobuild.buildroot.net/results/c9a507757ce3a01cd08d596cb519ee9f19caf77c/ (mdio-tools)
> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

Committed to 2024.02.x and 2024.11.x, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list