On Wed, 2019-01-02 at 11:23 +0200, riku.voipio@xxxxxxxxxx wrote: > From: Riku Voipio <riku.voipio@xxxxxxxxxx> > > 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@xxxxxxxxxx> > Signed-off-by: Riku Voipio <riku.voipio@xxxxxxxxxx> Reviewed-by: Ben Hutchings <ben@xxxxxxxxxxxxxxx> > --- > v2: commit message updated > --- > scripts/package/mkdebian | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian > index edcad61fe3cd..c858abf4569e 100755 > --- a/scripts/package/mkdebian > +++ b/scripts/package/mkdebian > @@ -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 $extra_build_depends > Homepage: http://www.kernel.org/ > > Package: $packagename -- Ben Hutchings Absolutum obsoletum. (If it works, it's out of date.) - Stafford Beer
Attachment:
signature.asc
Description: This is a digitally signed message part