[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4208204.4d101oJ1v5@devpool35>
Date: Thu, 11 Apr 2019 10:52:39 +0200
From: Rolf Eike Beer <eb@...ix.com>
To: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Cc: tglx@...utronix.de, jpoimboe@...hat.com,
yamada.masahiro@...ionext.com, peterz@...radead.org,
linux-kbuild@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH linux] objtool: fix pkg-config query in case of cross-compilation
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 <nicolas.dichtel@...nd.com>
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
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 usage
of plain pkg-config at several places with the cross-aware version, but sadly
a lot of them have not been picked up. It break cross-building tests basically
all the time. One example is here:
https://marc.info/?l=linux-acpi&m=153544231529066&w=2
For me it looks like you are trying to go into the wrong direction.
Greetings,
Eike
--
Rolf Eike Beer, emlix GmbH, http://www.emlix.com
Fon +49 551 30664-0, Fax +49 551 30664-11
Gothaer Platz 3, 37083 Göttingen, Germany
Sitz der Gesellschaft: Göttingen, Amtsgericht Göttingen HR B 3160
Geschäftsführung: Heike Jordan, Dr. Uwe Kracke – Ust-IdNr.: DE 205 198 055
emlix - smart embedded open source
Download attachment "signature.asc" of type "application/pgp-signature" (314 bytes)
Powered by blists - more mailing lists