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)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 14 Oct 2020 03:49:34 +0000 (12:49 +0900)
commitbac977cbc0d6731fb8e67c2be0e4acbd959e10b3
treeb1ad5491244ebb063fa55000dfb7df3c7d81dedb
parent172aad81a882443eefe1bd860c4eddc81b14dd5b
kbuild: deb-pkg: do not build linux-headers package if CONFIG_MODULES=n

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>
scripts/package/builddeb
scripts/package/mkdebian