mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-30 05:42:46 +01:00
deb-pkg: generate correct build dependencies
bison/flex is now needed always for building for kconfig. Some build dependencies depend on kernel configuration, enable them as needed: - libelf-dev when UNWINDER_ORC is set - libssl-dev for SYSTEM_TRUSTED_KEYRING Since the libssl-dev is needed for extract_cert binary, denote with :native to install the libssl-dev for the build machines architecture, rather than for the architecture of the kernel being built. Tested-by: Manivannan Sadhasivam <[email protected]> Signed-off-by: Riku Voipio <[email protected]> Reviewed-by: Ben Hutchings <[email protected]> Acked-by: maximilian attems <[email protected]> [masahiro.yamada: change 'flex' to 'flex | flex:native' ] Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
1 parent
5453a3df2a
commit
e3a2285066
1 file changed
+3
-1
@@ -134,6 +134,8 @@ fi
|
||||
|
||||
mkdir -p debian/
|
||||
echo $debarch > debian/arch
|
||||
extra_build_depends=", $(if_enabled_echo UNWINDER_ORC libelf-dev)"
|
||||
extra_build_depends="$extra_build_depends, $(if_enabled_echo SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
|
||||
|
||||
# Generate a simple changelog template
|
||||
cat <<EOF > debian/changelog
|
||||
@@ -170,7 +172,7 @@ Source: $sourcename
|
||||
Section: kernel
|
||||
Priority: optional
|
||||
Maintainer: $maintainer
|
||||
Build-Depends: bc, kmod, cpio
|
||||
Build-Depends: bc, kmod, cpio, bison, flex | flex:native $extra_build_depends
|
||||
Homepage: http://www.kernel.org/
|
||||
|
||||
Package: $packagename
|
||||
|
||||
Reference in new issue
Block a user