Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5638437yba; Thu, 11 Apr 2019 02:28:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxfLUW7WKq/+LL/eAdIBQ93adVOUu3Cie/bMHJ79vtzng5/PNDmQ8SlIK3GHI+DfyuPcf0L X-Received: by 2002:a63:2bc8:: with SMTP id r191mr46471794pgr.72.1554974902766; Thu, 11 Apr 2019 02:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554974902; cv=none; d=google.com; s=arc-20160816; b=FckXUpW97XUvCUzqUwE7aGhoUKBYdyZQRilDVBl5PTG4TtdPQwrgTBocqHIIQ9bwnL 0et2oZUPWW4W9YY3RuP3ZNPk09gBq7WOl3HbfBwyknqE9YOFyQcZ0cPgyD0fEgxeGXs/ JTl234cfEk4775m4v1voag9MWGXmKEfxgCFIlxQKLwkVc+/wTidHpUAVanAJQ64hLZM1 AXC+K0BjcaszKM9wXERpFwhUv3ob0JcQhQg7s2fuKrXJj49YxlvAUIyH/iw73YSsPyrR GmGSfBKr9FijIRpx1z4xjxczgdBxTY2WxXalpRm//oF4DFnL8ftkybp7Lm5e21tnlUSx MZ9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=kpnbJINvyluazTcKQdCcW284I70Jq3vMEIBiBBMPXdU=; b=Ygzz0ViqyAeoakfsE7rxY2rcOQkEiPRr7OXoOKd/67E3F/m9tAJaKaUOg1XkkJmjX8 iz89oAAhvmrHAdqj5yJtq632cdZj8+vde5zdx3yQpUN3SbxrgZSnxgU8OPimh4qToOXB 27OiU0JOnkoMR+ZkKdoBvySx8slC77DzLGXLoS6Ai97eBf9Reyx9hijuNzqogT8PVia8 c5YFtZ+svmyN/5nBPSiBY1WCgd4sSPsBmNbdsL4NBtjagk/wXU6E7RVWz6G81uNNtH9Q cssC89VwppKJCVT4rpnafvajiNnnTRd3SJenWbiCyLl7PM72X0dsuCB8EOMGhNZBmOKQ OZpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=aX4LqbYM; 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 r63si36042678pfc.183.2019.04.11.02.28.06; Thu, 11 Apr 2019 02:28:22 -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=@6wind.com header.s=google header.b=aX4LqbYM; 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 S1726786AbfDKJ0Q (ORCPT + 99 others); Thu, 11 Apr 2019 05:26:16 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51824 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726588AbfDKJ0P (ORCPT ); Thu, 11 Apr 2019 05:26:15 -0400 Received: by mail-wm1-f65.google.com with SMTP id 4so5786283wmf.1 for ; Thu, 11 Apr 2019 02:26:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kpnbJINvyluazTcKQdCcW284I70Jq3vMEIBiBBMPXdU=; b=aX4LqbYMBp94VLtKg9orbrsjSVeq96wZiSPMuxuFdMiQz7RBvQREYmiaSG54ry4WLo QTL2dQZGjymK7TfshdqpDeRI5a+iKGPTst+8As8/vSLTcLg5Fd3GHKBDpnqOqGTKeQab nLE+Ei1MG4jjx96bj81DYGX2Bv1E8uqFdx2eK3nb3l3IAidQ1OrCgYs6YCyRQbgidjoB HaEwjbtK/JTruzXPF9M1BP8Ipbg/Hv1tL69+X0a5hisgZT7nTpkcf+WZFx3R/ggUWNlV bbCbT8V21wOH+xM6FLb/fUHHL8u9k9dvsJdUSUVLAO1LsxrYrtTwiXiUyxjDrtZDWhxr 3evg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=kpnbJINvyluazTcKQdCcW284I70Jq3vMEIBiBBMPXdU=; b=gUxwIYd6Ig5DqrFrKbyY5dqH/8pOx7WjNKuwNOr7Df5ni6P7iPEWhDTB8k66zARNuG L1AghUCeDj3MOJKGdqH9eCrwut3UExrCTj0LrhGVke91yzpruR4XtbcU0wOtohG4SSfi tVqRVpd4PfI2Cxb7OD7NoTq+ri4YZk9k3a6NLUQ3crYvCs9y0JvrWl77VN7PnF6VYEs4 8PWEQdBifJ3YxLpGDAhp/oW4lTTdfTNu2pDMbsfUQiKCvEEwpbmAZphpex+TIYccwYCM rjTDPZwPc2sm212oi+F0IC9oK50gh/YL2G3w2MAqsQCOdzQzQuWMkMpxXn114dSpDicG S9VQ== X-Gm-Message-State: APjAAAWgCq1gvbFFi9iUyRV55tqibi5Q3tgsYKRvYelVwqNq0u10/1Zq QNZllfhRQNwhHz5L09n4nnzcX6kHPKE= X-Received: by 2002:a7b:c769:: with SMTP id x9mr6119503wmk.103.1554974773791; Thu, 11 Apr 2019 02:26:13 -0700 (PDT) Received: from ?IPv6:2a01:e35:8b63:dc30:189d:a40c:e37a:dfea? ([2a01:e35:8b63:dc30:189d:a40c:e37a:dfea]) by smtp.gmail.com with ESMTPSA id g19sm4111075wmh.17.2019.04.11.02.26.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Apr 2019 02:26:13 -0700 (PDT) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH linux] objtool: fix pkg-config query in case of cross-compilation To: Rolf Eike Beer Cc: tglx@linutronix.de, jpoimboe@redhat.com, yamada.masahiro@socionext.com, peterz@infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190411083940.3911-1-nicolas.dichtel@6wind.com> <4208204.4d101oJ1v5@devpool35> From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Thu, 11 Apr 2019 11:26:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <4208204.4d101oJ1v5@devpool35> Content-Type: text/plain; charset=utf-8 Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 11/04/2019 à 10:52, Rolf Eike Beer a écrit : > Am Donnerstag, 11. April 2019, 10:39:40 CEST schrieb Nicolas Dichtel: >> In case of cross-compilation, there may be two pkg-config tools, one for >> the host and one for the target. Enable to override the default name. >> >> Fixes: 056d28d135bc ("objtool: Query pkg-config for libelf location") >> Signed-off-by: Nicolas Dichtel > > If you do that, you have to fix a lot of other places, too. This starts in > scripts/kconfig/ and also includes e.g. tools/testing/. > > Usually you have pkg-config for host and ${target_platform}-pkg-config for the My use case was for buildroot, which define pkg-config and host-pkgconf. In fact, I've just seen that a buildroot patch was accepted for this problem: https://patchwork.ozlabs.org/patch/1081379/ Regards, Nicolas