Summary: | sys-kernel/gentoo-kernel-5.8.10[savedconfig] fails to compile: No rule to make target 'modules_prepare' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jaak Ristioja <jaak> |
Component: | Current packages | Assignee: | Distribution Kernel Project <dist-kernel> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | cruzki123, fturco, mgorny, PF4Public |
Priority: | Normal | Keywords: | NeedPatch |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jaak Ristioja
2020-09-22 09:22:14 UTC
kernel-build.eclass ineed assumes that modules enabled. Had the same issue on my embedded system with no modules, ended up enabling it anyway but it wasn't ideal. A patch (to kernel-build.eclass) would be helpful. Is there any patch for this or at least a workaround I don't really need modules I use grep in my ebuilds to find out if modules are used: grep "CONFIG_MODULES=y" .config >/dev/null RETVAL=$? if [ $RETVAL -ne 0 ]; then export DO_I_HAVE_MODULES=false else export DO_I_HAVE_MODULES=true fi and: if ${DO_I_HAVE_MODULES}; then emake modules ${xmakeopts} fi and finally: if ${DO_I_HAVE_MODULES}; then emake modules_install ${xmakeopts} INSTALL_MOD_PATH="${D}"; fi Is it a good solution for kernel-build.eclass? |