summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRiku Voipio <riku.voipio@linaro.org>2019-01-02 04:23:04 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-03-13 13:30:26 -0400
commite3a22850664ffbe5b786c80249b3cfea61b659c6 (patch)
tree3512aec8bd342ba83df91f043e552100edcde472 /scripts
parent5453a3df2a5eb49bc24615d4cf0d66b2aae05e5f (diff)
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 <manivannan.sadhasivam@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org> Reviewed-by: Ben Hutchings <ben@decadent.org.uk> Acked-by: maximilian attems <maks@stro.at> [masahiro.yamada: change 'flex' to 'flex | flex:native' ] Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/package/mkdebian4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index f030961c5165..110cd8d2a226 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -134,6 +134,8 @@ fi
134 134
135mkdir -p debian/ 135mkdir -p debian/
136echo $debarch > debian/arch 136echo $debarch > debian/arch
137extra_build_depends=", $(if_enabled_echo UNWINDER_ORC libelf-dev)"
138extra_build_depends="$extra_build_depends, $(if_enabled_echo SYSTEM_TRUSTED_KEYRING libssl-dev:native)"
137 139
138# Generate a simple changelog template 140# Generate a simple changelog template
139cat <<EOF > debian/changelog 141cat <<EOF > debian/changelog
@@ -170,7 +172,7 @@ Source: $sourcename
170Section: kernel 172Section: kernel
171Priority: optional 173Priority: optional
172Maintainer: $maintainer 174Maintainer: $maintainer
173Build-Depends: bc, kmod, cpio 175Build-Depends: bc, kmod, cpio, bison, flex | flex:native $extra_build_depends
174Homepage: http://www.kernel.org/ 176Homepage: http://www.kernel.org/
175 177
176Package: $packagename 178Package: $packagename