summaryrefslogtreecommitdiff
path: root/scripts/package
diff options
context:
space:
mode:
authorReinhard Karcher <reinhard.karcher@gmx.net>2020-03-24 13:24:47 +0300
committerMasahiro Yamada <masahiroy@kernel.org>2020-03-30 03:23:00 +0300
commitd9dac147a2c370c188ef6251c7c6f42759f65eb0 (patch)
tree7603b9ca1c1c80169c6d84c95d1f8db8f84040db /scripts/package
parent4623980dea7c688bd5fdce406e01726654b04104 (diff)
downloadlinux-d9dac147a2c370c188ef6251c7c6f42759f65eb0.tar.xz
kbuild: deb-pkg: fix warning when CONFIG_DEBUG_INFO is unset
Creating a Debian package without CONFIG_DEBUG_INFO produces a warning that no debug package was created. This patch excludes the debug package from the control file, if no debug package is created by this configuration. Signed-off-by: Reinhard Karcher <reinhard.karcher@gmx.net> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/package')
-rwxr-xr-xscripts/package/mkdebian5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 357dc56bcf30..df1adbfb8ead 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -198,6 +198,10 @@ Description: Linux support headers for userspace development
This package provides userspaces headers from the Linux kernel. These headers
are used by the installed headers for GNU glibc and other system libraries.
Multi-Arch: same
+EOF
+
+if is_enabled CONFIG_DEBUG_INFO; then
+cat <<EOF >> debian/control
Package: $dbg_packagename
Section: debug
@@ -206,6 +210,7 @@ Description: Linux kernel debugging symbols for $version
This package will come in handy if you need to debug the kernel. It provides
all the necessary debug symbols for the kernel and its modules.
EOF
+fi
cat <<EOF > debian/rules
#!$(command -v $MAKE) -f