diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2019-01-02 04:23:04 -0500 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-03-13 13:30:26 -0400 |
commit | e3a22850664ffbe5b786c80249b3cfea61b659c6 (patch) | |
tree | 3512aec8bd342ba83df91f043e552100edcde472 /scripts | |
parent | 5453a3df2a5eb49bc24615d4cf0d66b2aae05e5f (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-x | scripts/package/mkdebian | 4 |
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 | ||
135 | mkdir -p debian/ | 135 | mkdir -p debian/ |
136 | echo $debarch > debian/arch | 136 | echo $debarch > debian/arch |
137 | extra_build_depends=", $(if_enabled_echo UNWINDER_ORC libelf-dev)" | ||
138 | extra_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 |
139 | cat <<EOF > debian/changelog | 141 | cat <<EOF > debian/changelog |
@@ -170,7 +172,7 @@ Source: $sourcename | |||
170 | Section: kernel | 172 | Section: kernel |
171 | Priority: optional | 173 | Priority: optional |
172 | Maintainer: $maintainer | 174 | Maintainer: $maintainer |
173 | Build-Depends: bc, kmod, cpio | 175 | Build-Depends: bc, kmod, cpio, bison, flex | flex:native $extra_build_depends |
174 | Homepage: http://www.kernel.org/ | 176 | Homepage: http://www.kernel.org/ |
175 | 177 | ||
176 | Package: $packagename | 178 | Package: $packagename |