Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5616497yba; Thu, 11 Apr 2019 01:54:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoBtl4na6swjNLDZx+PRYwGlLCZBC6YE3JF3ASI3AIMoalOE0ZZJbIf7vBCY6gMBfa2aNc X-Received: by 2002:a63:6fcd:: with SMTP id k196mr45570429pgc.238.1554972888547; Thu, 11 Apr 2019 01:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554972888; cv=none; d=google.com; s=arc-20160816; b=Bkq4FkfFFhBJKxvkgU5EMuf2v7UwDudRo8SSeDyhXrtwVlVRb73fqRFEH7I3yOFDrB StUFYy8YiiFvQYQG59RsT0Fm9wQdPBS+jF9wKz52zQiu94e9ezVnT2Cbt9mvoXWoTjCJ +39e4+bEeR4w4wV+L/XdeEs/yZ4kByAfNOUMupcVvMfaE1phvFFuxvArdy4UDBCX8/Z6 App4cJjZIVNKinuIYKrUQh4ZwXsmWSPHr+czumCnBZ8mfr7omusLN+P78BxB67r1I2b0 F7bxdVGTmOoI+EhSX7Qx4y/wxKKKP/5MjDGtEPis7qiDM4tDRQKpb3HrHMyd/vruG5Ev Agog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :organization:message-id:date:subject:cc:to:from; bh=m83tzgGLqIkmV9g9mRo2Jb7S9mlnCYM5w4iWQVI8KuI=; b=k0nSQwwsPJC5F81EViE2cozYiwmxFVzGlod4FnMpM+xZlpeyKxhM/wpw0KxTLpBQNS ks/xT6dkB2baqZ5q6X/wwoDg6ksb4TNMBjoDw6wolhP8lmUr9Yn3g6JzTTMSJmL/Ysmt LY1V4Yy9Ewka+jHPpHDMK/ZPayYTVuZVEZepZnDUebX55CZQh67Hszp4rfm2nhRdoUNt vV6CAFMwKGYmGOZShradmD84nvmLawwvoxebb+/icpA2tKx8rG0rWEgItH0ekK8KBYiM byGg5TF42IQFjjpFr3SQqfZ1SbfAlpuHqqIptBDCgEgrJig57FV+cSNoguoGTq2noafk /7Kg== ARC-Authentication-Results: i=1; mx.google.com; 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 l66si15570894pfi.62.2019.04.11.01.54.32; Thu, 11 Apr 2019 01:54:48 -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; 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 S1726661AbfDKIwp (ORCPT + 99 others); Thu, 11 Apr 2019 04:52:45 -0400 Received: from mx1.emlix.com ([188.40.240.192]:33306 "EHLO mx1.emlix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725793AbfDKIwp (ORCPT ); Thu, 11 Apr 2019 04:52:45 -0400 Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id C5B2360AD8; Thu, 11 Apr 2019 10:52:43 +0200 (CEST) From: Rolf Eike Beer To: Nicolas Dichtel Cc: tglx@linutronix.de, jpoimboe@redhat.com, yamada.masahiro@socionext.com, peterz@infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux] objtool: fix pkg-config query in case of cross-compilation Date: Thu, 11 Apr 2019 10:52:39 +0200 Message-ID: <4208204.4d101oJ1v5@devpool35> Organization: emlix GmbH In-Reply-To: <20190411083940.3911-1-nicolas.dichtel@6wind.com> References: <20190411083940.3911-1-nicolas.dichtel@6wind.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2978754.nR1pzekyYs"; micalg="pgp-sha256"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart2978754.nR1pzekyYs Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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. >=20 > 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= =20 scripts/kconfig/ and also includes e.g. tools/testing/. Usually you have pkg-config for host and ${target_platform}-pkg-config for = the=20 target, and the PKG_CONFIG variable for the target, usually initialized to $ (CROSS_COMPILE)pkg-config. I have sent a bunch of patches to replace the us= age=20 of plain pkg-config at several places with the cross-aware version, but sad= ly=20 a lot of them have not been picked up. It break cross-building tests basica= lly=20 all the time. One example is here:=20 https://marc.info/?l=3Dlinux-acpi&m=3D153544231529066&w=3D2 =46or me it looks like you are trying to go into the wrong direction. Greetings, Eike =2D-=20 Rolf Eike Beer, emlix GmbH, http://www.emlix.com =46on +49 551 30664-0, Fax +49 551 30664-11 Gothaer Platz 3, 37083 G=C3=B6ttingen, Germany Sitz der Gesellschaft: G=C3=B6ttingen, Amtsgericht G=C3=B6ttingen HR B 3160 Gesch=C3=A4ftsf=C3=BChrung: Heike Jordan, Dr. Uwe Kracke =E2=80=93 Ust-IdNr= =2E: DE 205 198 055 emlix - smart embedded open source --nextPart2978754.nR1pzekyYs Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iLMEAAEIAB0WIQQ/Uctzh31xzAxFCLur5FH7Xu2t/AUCXK8AVwAKCRCr5FH7Xu2t /G6lA/45lcxPk+/3m0YJ8VVw6OLpcHgHlSur8IN9N0e5FhbqBm8IKPAZvhTmJP3z PZeZ8vPEVQT8o07ZFKxG3W5G1k06dUgfzUxP0ozURgXQ8ZZCKyiwATm/y24es/io urnEOZdqgaC8IqyKX888N266OmyWedJ01I/IEQ4k79jTYUoQ5A== =gC/P -----END PGP SIGNATURE----- --nextPart2978754.nR1pzekyYs--