[Buildroot] [git commit] linux: Allow modprobe for out-of-tre modules
Peter Korsgaard
peter at korsgaard.com
Wed Apr 1 20:48:37 UTC 2020
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at bootlin.com> writes:
> 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 ?
I believe so, similar to how we do it elsewhere in linux.mk.
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list