[Buildroot] [PATCH] linux: run depmod only if modules are enabled
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Wed Mar 25 06:35:12 UTC 2020
On Tue, 24 Mar 2020 21:21:54 -0300
unixmania at gmail.com wrote:
> From: Carlos Santos <unixmania at gmail.com>
>
> If the kernel configuration CONFIG_MODULES disabled, there's no
> /lib/modules/<version> directory, causing this:
>
> depmod: ERROR: could not open directory [...]/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
>
> Reported-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
> Signed-off-by: Carlos Santos <unixmania at gmail.com>
> ---
> CC: "Yann E. MORIN" <yann.morin.1998 at free.fr>
> ---
> linux/linux.mk | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Thanks, applied after adding a number of references to defconfig build
failures that are fixed by this patch. Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list