From patchwork Tue Mar 12 17:23:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 160144 Delivered-To: patch@linaro.org Received: by 2002:ac9:18c7:0:0:0:0:0 with SMTP id i7csp13204108oce; Tue, 12 Mar 2019 10:24:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzufbU7Xh0xo3dZUYpwIPXsn2+eDrGOefN8ozO/jkh6HcyZIOk2FSzSvIAfaTzDK48Et7e X-Received: by 2002:a63:f914:: with SMTP id h20mr2329175pgi.322.1552411456184; Tue, 12 Mar 2019 10:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552411456; cv=none; d=google.com; s=arc-20160816; b=mGO4qjvYg7V5m/XXkLcdovOJKOYegt6xNAIH4CBm6FdbwHpCuBeur5oBlssJlzIdp1 1E8OcCaVrOdIui/cIcHL3+79tQ+23HeMPF1im5ekBj6ijmXzk1v88jE3yiznmtMPGrc4 9F42DcwncNDALD2dO/wwC5hfECZOZRyHddxomACBVh9Mmj/SG4pVJJ5S3LBkiaaYFJeb Qk9N+0cW+Jz5fHIWfCYJf1D5pwSn8QxOfr6I35spMJlf30mBsF4t5ShI8H5D0IHXKcaH a0Vo3yl7yJQXO71cncI3gylwruphmcEGjZd7QusZzUVP3+tSbWf6jZezqjLSeEB43JAN kW0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=wZ4a4Qo8H4S3PsjxHsSKvEoDuqCYVYPAktZ4OUtsjkI=; b=lLI6y50OZI2H3j0LPLJ8Zsnvae8XySzaJP7LeZREodjIj/C67p17MInaarPK9s8rrw NQydyaS0OFLNiBtL43pl4rAmmn+QsDUop9yiZAhQhs9yblBKr0qkh8RGIvU8s4SyygCY vTHJtBbKkvlfPNVeCSYiUsvKx/h9AqvcSmgsn7a9+12p3L5LRLWIyFq/m7PyMXlHAfAm KR+Dt197tC3OHVMThaIlf5ICUN0r2Y3EET4FeSlhMR8gRjVZm3Jq2gGfHUslDE+a94SG hOzuEhV+JD829j8tBvgAGf2brTq9XrUcRTrDH1eTS9kuS8TbvCl+mTI8C5qmA2um0IyC TvMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PDh+kHdD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o15si7516340pgv.435.2019.03.12.10.24.15; Tue, 12 Mar 2019 10:24:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=PDh+kHdD; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730133AbfCLRYO (ORCPT + 31 others); Tue, 12 Mar 2019 13:24:14 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:26883 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729977AbfCLRYL (ORCPT ); Tue, 12 Mar 2019 13:24:11 -0400 Received: from grover.tkatk1.zaq.ne.jp (zaqdadce369.zaq.ne.jp [218.220.227.105]) (authenticated) by conuserg-11.nifty.com with ESMTP id x2CHNW1f000384; Wed, 13 Mar 2019 02:23:33 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x2CHNW1f000384 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1552411413; bh=wZ4a4Qo8H4S3PsjxHsSKvEoDuqCYVYPAktZ4OUtsjkI=; h=From:To:Cc:Subject:Date:From; b=PDh+kHdDJ0TaSEFS6UOLmrWZtE4GgoxcZ9ZY/C/7aL3Axiuv+qf4D7G7sFa+qu3OL 6aV5c+ePX2l6mGVV2183rqQZ9yD1HkGWPAncoBn2gea9sR+5rmihOHWxUTsP9yquFJ c/DzIgCkePPBEO2UzuUZZgZBZ0Vp/LeH62crzyg4RgU/QrIC3JnFuOGR9WpoKGaCV6 6j+5EJNRxsD7/WKr3+OFYBnGZ6QMM5M6HNZkVfTgg7LUq6joNpg3x8UWgjF/fh0s6/ 45u7qLZQWAGklgiXj1UReYehvN/udJpjtRwn6ZyZIb2fQh36pekWBVjoTVS6Y6C392 JuPScL04KxbHA== X-Nifty-SrcIP: [218.220.227.105] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Ben Hutchings , Riku Voipio , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH] deb-pkg: generate correct build dependencies Date: Wed, 13 Mar 2019 02:23:24 +0900 Message-Id: <1552411404-32271-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Riku Voipio 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 Signed-off-by: Riku Voipio Reviewed-by: Ben Hutchings Acked-by: maximilian attems [masahiro.yamada: add change 'flex' to 'flex | flex:native' ] Signed-off-by: Masahiro Yamada --- Hi Riku, I did not get your update, but anyway I changed 'flex' to 'flex | flex:native'. With this change, now I am able to cross-compile deb-pkg. scripts/package/mkdebian | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian index f030961..110cd8d 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 < 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