kbuild/deb-pkg: annotate libelf-dev dependency as :native
authorArd Biesheuvel <ardb@kernel.org>
Mon, 30 Dec 2019 14:07:47 +0000 (15:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2020 18:49:07 +0000 (19:49 +0100)
commit3bc95f564d73754825e8cf373492fecc47a0bbca
treedbaa37e95769300578c6c196fa008a39da19a6a8
parent8a235a9edc82106257e8f4bd3d5f74139a22553b
kbuild/deb-pkg: annotate libelf-dev dependency as :native

[ Upstream commit 8ffdc54b6f4cd718a45802e645bb853e3a46a078 ]

Cross compiling the x86 kernel on a non-x86 build machine produces
the following error when CONFIG_UNWINDER_ORC is enabled, regardless
of whether libelf-dev is installed or not.

  dpkg-checkbuilddeps: error: Unmet build dependencies: libelf-dev
  dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
  dpkg-buildpackage: warning: (Use -d flag to override.)

Since this is a build time dependency for a build tool, we need to
depend on the native version of libelf-dev so add the appropriate
annotation.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/package/mkdebian