mirror_ubuntu-kernels/scripts/package
Masahiro Yamada b88365b6d7 kbuild: deb-pkg: hard-code Build-Depends
The condition to require libelf-dev:native is stale because objtool is
now enabled by CONFIG_OBJTOOL instead of CONFIG_UNWINDER_ORC. Not only
objtool but also resolve_btfids requires libelf-dev:native; therefore,
CONFIG_DEBUG_INFO_BTF should be checked as well.

Similarly, CONFIG_SYSTEM_TRUSTED_KEYRING is not the only case that
requires libssl-dev:native.

Perhaps, the following code would provide better coverage, but it is
hard to maintain (and may still be imperfect).

  if is_enabled CONFIG_OBJTOOL ||
     is_enabled CONFIG_DEBUG_INFO_BTF; then
          build_depends="${build_depends}, libelf-dev:native"
  fi

  if is_enabled CONFIG_SYSTEM_TRUSTED_KEYRING ||
     is_enabled CONFIG_SYSTEM_REVOCATION_LIST ||
     is_enabled CONFIG_MODULE_SIG_FORMAT; then
          build_depends="${build_depends}, libssl-dev:native"
  fi

Let's hard-code the build dependency.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
2023-12-29 22:25:21 +09:00
..
debian kbuild: deb-pkg: split debian/copyright from the mkdebian script 2023-12-29 22:25:21 +09:00
builddeb kbuild: deb-pkg: remove the fakeroot builds support 2023-12-10 15:34:37 +09:00
buildtar kbuild: buildtar: always make modules_install 2023-11-28 11:22:51 +09:00
deb-build-option kbuild: deb-pkg: set CROSS_COMPILE only when undefined 2023-03-15 15:15:07 +09:00
gen-diff-patch kbuild: give up untracked files for source package builds 2023-04-11 08:58:45 +09:00
install-extmod-build kbuild: fix kernel-devel RPM package and linux-headers Deb package 2023-09-15 02:39:24 +09:00
kernel.spec scripts: clean up IA-64 code 2023-12-03 18:51:48 +09:00
mkdebian kbuild: deb-pkg: hard-code Build-Depends 2023-12-29 22:25:21 +09:00
mkspec kbuild: rpm-pkg: generate kernel.spec in rpmbuild/SPECS/ 2023-10-03 20:49:09 +09:00
snapcraft.template kbuild: remove the last use of old cmd_src_tar rule in packaging 2023-11-28 11:38:32 +09:00