kbuild: deb-pkg: use dh_listpackages to know enabled packages
authorMasahiro Yamada <masahiroy@kernel.org>
Sun, 12 Mar 2023 20:07:30 +0000 (05:07 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 15 Mar 2023 06:15:07 +0000 (15:15 +0900)
commit36862e14e31611f9786622db366327209a7aede7
treebcc9678dd5ba408b1b20b85f01461054ccd542d0
parentb611daae5efc64e817171a54021d3b334cc1bc41
kbuild: deb-pkg: use dh_listpackages to know enabled packages

Use dh_listpackages to get a list of all binary packages.

With this, debian/control lists which binary packages will be produced.
Previously, ARCH=um listed linux-libc-dev in debian/control, but it
was not generated because each of mkdebian and builddeb independently
maintained the if-conditionals.

Another motivation is to allow scripts/package/builddeb to get the
package name (linux-image-*, etc.) dynamically from debian/control.

This will also allow the BuildProfile to control the generation of
the binary packages.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/package/builddeb
scripts/package/mkdebian