deb-pkg: generate correct build dependencies
authorRiku Voipio <riku.voipio@linaro.org>
Wed, 2 Jan 2019 09:23:04 +0000 (11:23 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 13 Mar 2019 17:30:26 +0000 (02:30 +0900)
commite3a22850664ffbe5b786c80249b3cfea61b659c6
tree3512aec8bd342ba83df91f043e552100edcde472
parent5453a3df2a5eb49bc24615d4cf0d66b2aae05e5f
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>
scripts/package/mkdebian