Patch "kbuild: builddeb: always make modules_install, to install modules.builtin*" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kbuild-builddeb-always-make-modules_install-to-insta.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7c1a8739fd3dfe3ec56fc4514a1c42ca27777f41
Author: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
Date:   Thu Jun 22 12:19:53 2023 -0700

    kbuild: builddeb: always make modules_install, to install modules.builtin*
    
    [ Upstream commit 4243afdb932677a03770753be8c54b3190a512e8 ]
    
    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@xxxxxxxxxxxxxxxx>
    Reviewed-by: Nicolas Schier <nicolas@xxxxxxxxx>
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Stable-dep-of: 1240dabe8d58 ("kbuild: deb-pkg: remove the CONFIG_MODULES check in buildeb")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 252faaa5561cc..f500e39101581 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux