aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/package/builddeb
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-10-14 03:38:19 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-10-14 12:49:34 +0900
commitbac977cbc0d6731fb8e67c2be0e4acbd959e10b3 (patch)
treeb1ad5491244ebb063fa55000dfb7df3c7d81dedb /scripts/package/builddeb
parentkbuild: enforce -Werror=return-type (diff)
downloadlinux-dev-bac977cbc0d6731fb8e67c2be0e4acbd959e10b3.tar.xz
linux-dev-bac977cbc0d6731fb8e67c2be0e4acbd959e10b3.zip
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>
Diffstat (limited to '')
-rwxr-xr-xscripts/package/builddeb6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index 6474084c32a4..1b11f8993629 100755
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -207,8 +207,10 @@ EOF
done
if [ "$ARCH" != "um" ]; then
- deploy_kernel_headers debian/linux-headers
- create_package linux-headers-$version debian/linux-headers
+ if is_enabled CONFIG_MODULES; then
+ deploy_kernel_headers debian/linux-headers
+ create_package linux-headers-$version debian/linux-headers
+ fi
deploy_libc_headers debian/linux-libc-dev
create_package linux-libc-dev debian/linux-libc-dev