Skip to content

Commit d9dac14

Browse files
linuxreinhardmasahir0y
authored andcommitted
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 <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 4623980 commit d9dac14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/package/mkdebian

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ Description: Linux support headers for userspace development
198198
This package provides userspaces headers from the Linux kernel. These headers
199199
are used by the installed headers for GNU glibc and other system libraries.
200200
Multi-Arch: same
201+
EOF
202+
203+
if is_enabled CONFIG_DEBUG_INFO; then
204+
cat <<EOF >> debian/control
201205
202206
Package: $dbg_packagename
203207
Section: debug
@@ -206,6 +210,7 @@ Description: Linux kernel debugging symbols for $version
206210
This package will come in handy if you need to debug the kernel. It provides
207211
all the necessary debug symbols for the kernel and its modules.
208212
EOF
213+
fi
209214

210215
cat <<EOF > debian/rules
211216
#!$(command -v $MAKE) -f

0 commit comments

Comments
 (0)