[Buildroot] [git commit] linux: Allow modprobe for out-of-tre modules
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Mar 24 21:39:04 UTC 2020
Hello,
On Sat, 21 Mar 2020 21:43:31 +0100
Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
> +# Run depmod in a target-finalize hook, to encompass modules installed by
> +# packages.
> +define LINUX_RUN_DEPMOD
> + $(HOST_DIR)/sbin/depmod -a -b $(TARGET_DIR) $(LINUX_VERSION_PROBED)
> +endef
> +LINUX_TARGET_FINALIZE_HOOKS += LINUX_RUN_DEPMOD
I believe this breaks the build of minnowboard_max_defconfig:
https://gitlab.com/buildroot.org/buildroot/-/jobs/483712574
The kernel configuration of minnowboard_max_defconfig has
CONFIG_MODULES disabled, so there's no /lib/modules/4.19.8 folder,
causing this:
depmod: ERROR: could not open directory /builds/buildroot.org/buildroot/output/target/lib/modules/4.19.8: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
Makefile:745: recipe for target 'target-finalize' failed
Do we need to grep into $(LINUX_DIR)/.config to check if
CONFIG_MODULES=y before calling depmod ?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list