]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kbuild: deb-pkg: use default string when variable is unset or null
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 4 Jul 2024 15:23:32 +0000 (00:23 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Tue, 16 Jul 2024 07:07:14 +0000 (16:07 +0900)
commitd67015eedd9722cfbf9d929be743ce27dfcd0744
tree7787dedcb5e6a07926201eb21b2a81dd9d73d58a
parentf58437aba0a35825dc14dbbf7a1e452662ef797d
kbuild: deb-pkg: use default string when variable is unset or null

${DEBFULLNAME-${user}} falls back to ${user} when DEBFULLNAME is unset.
It is more reasonable to do so when DEBFULLNAME is unset or null.

Otherwise, the command:

  $ DEBFULLNAME= make deb-pkg

will leave the name field blank.

The same applies to KBUILD_BUILD_USER and KBUILD_BUILD_HOST.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
scripts/package/mkdebian