]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 13 Oct 2020 18:38:19 +0000 (03:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:08:07 +0000 (10:08 +0100)
commite70232457bf1a2e4aff040dcf3e99791c3353c85
treeae645d3e64e92f6bdca44c665a2aebaa59f1c599
parent9f94507374a33e788ac5335acccb1f8f29d02bac
kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n

[ Upstream commit bac977cbc0d6731fb8e67c2be0e4acbd959e10b3 ]

Since commit 269a535ca931 ("modpost: generate vmlinux.symvers and
reuse it for the second modpost"), with CONFIG_MODULES disabled,
"make deb-pkg" (or "make bindeb-pkg") fails with:

  find: ‘Module.symvers’: No such file or directory

If CONFIG_MODULES is disabled, it doesn't really make sense to build
the linux-headers package.

Fixes: 269a535ca931 ("modpost: generate vmlinux.symvers and reuse it for the second modpost")
Reported-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/package/builddeb
scripts/package/mkdebian