]> git.hungrycats.org Git - linux/commit
kbuild: deb-pkg: remove the CONFIG_MODULES check in buildeb
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 25 Jun 2023 18:16:23 +0000 (03:16 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:51 +0000 (19:39 +0200)
commita1263fd280a506d9b38fdb5502a56318851f408e
tree111e2e21fe596eae87c741710c28f15221dbd626
parentbd8966e78c084a2a1d5d6551f03c2f7358314953
kbuild: deb-pkg: remove the CONFIG_MODULES check in buildeb

[ Upstream commit 1240dabe8d58b4eff09e7edf1560da0360f997aa ]

When CONFIG_MODULES is disabled for ARCH=um, 'make (bin)deb-pkg' fails
with an error like follows:

  cp: cannot create regular file 'debian/linux-image/usr/lib/uml/modules/6.4.0-rc2+/System.map': No such file or directory

Remove the CONFIG_MODULES check completely so ${pdir}/usr/lib/uml/modules
will always be created and modules.builtin.(modinfo) will be installed
under it for ARCH=um.

Fixes: b611daae5efc ("kbuild: deb-pkg: split image and debug objects staging out into functions")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/package/builddeb