From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5B4A2C433DB for ; Tue, 16 Feb 2021 23:54:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 181A364E79 for ; Tue, 16 Feb 2021 23:54:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231300AbhBPXyX (ORCPT ); Tue, 16 Feb 2021 18:54:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbhBPXyX (ORCPT ); Tue, 16 Feb 2021 18:54:23 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE7FC061756 for ; Tue, 16 Feb 2021 15:53:42 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id k204so13129657oih.3 for ; Tue, 16 Feb 2021 15:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7YZZZa0Z9sq8S0dHPnPa5oROFnkvvg200VC3qLVC1ME=; b=RnSmnHbst8FK/8ck/1v044L3LQP7/uSxvm23Lzbc2rn4IGOkaXLgNd87nRHGzjPger zlB8oYx9DP/gGdxrNeHurZy9bsGOofhri2hmjd0HjmRBd2VYc/IbWucJXVkZ4zzWIJ9d jIAymqZAgxSXBAPLR3DfKgguFeup49ObfZrx8SiikL9Uj9nAAWEb134DBhTgCmNnKVCk FJ+TLJrr1V6Wnq7c9nk7yO33Phel0tira/u/aAozMLqbKuF2Lvw45gf9QUZGL99zAjXj SBs/Z//UG9o6qnaxZC5F56btUqnBbjjL8Miipmt0Az2S9Ruwft8qF3L0H1MijJ4zeHYB B5YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7YZZZa0Z9sq8S0dHPnPa5oROFnkvvg200VC3qLVC1ME=; b=sn1j9dpi7onneEdP1pgZH43LnBmPobQMfc2kLK1cCJZfFCgzd36/AHozrP9C9XcOoY sfjlvPd016xEjZmy88ykDgx+HWYPU7y0hvdAIOczVcrvFPTW1xMxpWpMZQwTAyX9ErAl ha9i2zCviB5ZgZNAI4SM5WRhGQO+aDq/Do7nfi9CDsyZRWi+OjpBZ3ljHhSBY2Ji+3mv saOJFcHoPizDDDQXYs8N5fz6sX2FWOu5J8L1TZAlun9sekwevf+m7W8U5ZDcBwC7ySBV z415C5eUqtpkZHoOYbp0PQuDoFEGuLL/W6t+0LVF1/k72s9y+lXI5n3W7Dvg2/8ruw/i b4NA== X-Gm-Message-State: AOAM53132CpVl0t+I8fAa1OVI+AVuyMhmVVQH3gEfO0aYaej9cckRHC/ FunMU2gMDOYzZ96X3/WiSvNov3lXpb7tU3djCteECg== X-Google-Smtp-Source: ABdhPJzkxDyN7ezhP2Gl14bsnM7Bo+Uhwem0JKrjZQtkq1K6lm6ThCe3vJwUHiH4aCthz8yzmwyqCdjjtHg5YgYMUkk= X-Received: by 2002:aca:1a17:: with SMTP id a23mr4047592oia.172.1613519622217; Tue, 16 Feb 2021 15:53:42 -0800 (PST) MIME-Version: 1.0 References: <20210209050047.1958473-1-daniel.diaz@linaro.org> <6065587.C4oOSP4HzL@mobilepool36.emlix.com> <3314666.Em9qtOGRgX@mobilepool36.emlix.com> <5043253.pljLzkpU8D@mobilepool36.emlix.com> In-Reply-To: <5043253.pljLzkpU8D@mobilepool36.emlix.com> From: =?UTF-8?B?RGFuaWVsIETDrWF6?= Date: Tue, 16 Feb 2021 17:53:31 -0600 Message-ID: Subject: Re: [PATCH] scripts: Fix linking extract-cert against libcrypto To: Rolf Eike Beer Cc: Masahiro Yamada , Michal Marek , Linux Kbuild mailing list , open list , linux- stable , Naresh Kamboju Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Hello! On Fri, 12 Feb 2021 at 01:44, Rolf Eike Beer wrote: > > Am Donnerstag, 11. Februar 2021, 11:29:33 CET schrieb Rolf Eike Beer: > > > I'm just guessing, but your build error looks like you are also > > cross-building the tools, which is wrong. You want them to be host-tool= s. > > So don't export PKG_CONFIG_SYSROOT_DIR, it would then try to link targe= t > > libraries into a host binary. > > I have looked again how I do it: > > # this is for additional _host_ .pc files > export PKG_CONFIG_PATH=3D${prefix}/lib/pkgconfig > > Then have a target-pkg-config, so this code inside several kernel Makefil= es > will work: > > PKG_CONFIG ?=3D $(CROSS_COMPILE)pkg-config > > And then export your PKG_CONFIG_SYSROOT_DIR and the like inside that. I b= et > you have all of this already in place, so just remove the SYSROOT_DIR fro= m > your kernel build script and things should work. Thank you for your comments! I will try this in our environment in the upcoming days. Greetings! Daniel D=C3=ADaz daniel.diaz@linaro.org