Skip to content
Snippets Groups Projects
Commit bd8966e7 authored by Josh Triplett's avatar Josh Triplett Committed by Greg Kroah-Hartman
Browse files

kbuild: builddeb: always make modules_install, to install modules.builtin*


[ Upstream commit 4243afdb ]

Even for a non-modular kernel, the kernel builds modules.builtin and
modules.builtin.modinfo, with information about the built-in modules.
Tools such as initramfs-tools need these files to build a working
initramfs on some systems, such as those requiring firmware.

Now that `make modules_install` works even in non-modular kernels and
installs these files, unconditionally invoke it when building a Debian
package.

Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
Reviewed-by: default avatarNicolas Schier <nicolas@fjasle.eu>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Stable-dep-of: 1240dabe ("kbuild: deb-pkg: remove the CONFIG_MODULES check in buildeb")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 127f9232
No related branches found
No related tags found
No related merge requests found
......@@ -62,8 +62,8 @@ install_linux_image () {
${MAKE} -f ${srctree}/Makefile INSTALL_DTBS_PATH="${pdir}/usr/lib/linux-image-${KERNELRELEASE}" dtbs_install
fi
${MAKE} -f ${srctree}/Makefile INSTALL_MOD_PATH="${pdir}" modules_install
if is_enabled CONFIG_MODULES; then
${MAKE} -f ${srctree}/Makefile INSTALL_MOD_PATH="${pdir}" modules_install
rm -f "${pdir}/lib/modules/${KERNELRELEASE}/build"
rm -f "${pdir}/lib/modules/${KERNELRELEASE}/source"
if [ "${SRCARCH}" = um ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment