Skip to content

Commit 4243afd

Browse files
joshtriplettmasahir0y
authored andcommitted
kbuild: builddeb: always make modules_install, to install modules.builtin*
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: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 8e86ebe commit 4243afd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/package/builddeb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ install_linux_image () {
6262
${MAKE} -f ${srctree}/Makefile INSTALL_DTBS_PATH="${pdir}/usr/lib/linux-image-${KERNELRELEASE}" dtbs_install
6363
fi
6464

65+
${MAKE} -f ${srctree}/Makefile INSTALL_MOD_PATH="${pdir}" modules_install
6566
if is_enabled CONFIG_MODULES; then
66-
${MAKE} -f ${srctree}/Makefile INSTALL_MOD_PATH="${pdir}" modules_install
6767
rm -f "${pdir}/lib/modules/${KERNELRELEASE}/build"
6868
rm -f "${pdir}/lib/modules/${KERNELRELEASE}/source"
6969
if [ "${SRCARCH}" = um ] ; then

0 commit comments

Comments
 (0)