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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B0EBC433FE for ; Wed, 16 Mar 2022 02:51:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353365AbiCPCxF (ORCPT ); Tue, 15 Mar 2022 22:53:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353347AbiCPCxB (ORCPT ); Tue, 15 Mar 2022 22:53:01 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B1575D5D9 for ; Tue, 15 Mar 2022 19:51:48 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id mm23-20020a17090b359700b001bfceefd8c6so3865711pjb.3 for ; Tue, 15 Mar 2022 19:51:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=AYHjzsyjRmUc4OJ6wH8zfYo7ibjgR1tXCd77sc7RSAg=; b=heKvuWgQr5VoHoQl4h09u4O/8GGphb7ssh8IqJxyD98rdVexqrbAfvjuWmUO+TzJhW vo61dtbQBe1ziAwtwjYKInKObl0XRwSK81elk3LnXWSDGENZY0MywgWBdWbnCH/8YWna sRpPiwn+n6k5Pi+1r0Tx5K5gHG1IrBU7XFL7SSKhnZFem+mXx9BTvVQpeoCrGoxGyybq S7/Lw10eQyay9N9Q8Y3Xrv9hnliUWcgo1FgjaizxzB6a4NRb+e6rL5U8JzRlAldi27FT gAZ48IsbrqMxGmqtaKiB/AWahUKFMzvSknBsf+ueWUUDw6deCXvl0e/X5Qde8i4eaPIW gKjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=AYHjzsyjRmUc4OJ6wH8zfYo7ibjgR1tXCd77sc7RSAg=; b=zTAM1K0veuvOTUhXKmcyW9tW+BGCn4d35EBTJ86bjYR6F7ZBHeDVtBfwqOV/Jm1U29 crqM2m89JZ5tvwoI1JGuJuYdDHzYclGbhSobHudaXX6O/EnZftgdZhth1/cHfZDcMDxD tvuNUiKWuPwHnkh+ka0eb2SxLe0BHo+2hUTnLBfQqUlV4Zj8IFGzWEvzCwepQy7mR83+ 1B7otePp2ZfD6yVrtDoOI5pIAIJsF5d447MJoDLMJ63A/IwHNyeq/fsvSpFg00qadbRR 3re6zFouv/QYYCH9U00WUYTeI3zXGnodHFNMvumQXwCuBtH6jvZLMk3wftAQt3Qlqueq SGDw== X-Gm-Message-State: AOAM533aWR6xNM+tqIGsz8khYXZph24DZdZQtvWh+vUxph2k8NDa3Bou nRtM3AXPXp/XYgVMcFNrSgH8gA== X-Google-Smtp-Source: ABdhPJywnuIpV4rpwTvcBK1Ts8mfgkpqjlL3K+BiNlxFqZuhiF0aqHb13KjDHMleqMwblr0gLsLkdA== X-Received: by 2002:a17:902:c745:b0:153:b0e:8586 with SMTP id q5-20020a170902c74500b001530b0e8586mr31175866plq.9.1647399107340; Tue, 15 Mar 2022 19:51:47 -0700 (PDT) Received: from google.com (223.103.125.34.bc.googleusercontent.com. [34.125.103.223]) by smtp.gmail.com with ESMTPSA id i11-20020a056a00004b00b004f6907b2cd3sm530269pfk.122.2022.03.15.19.51.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 19:51:47 -0700 (PDT) Date: Wed, 16 Mar 2022 02:51:42 +0000 From: Chun-Tse Shao To: Masahiro Yamada Cc: Nick Desaulniers , Steven Rostedt , Nicolas Schier , Rob Herring , Michal Marek , David Howells , David Woodhouse , Frank Rowand , Josh Poimboeuf , Peter Zijlstra , Linux Kbuild mailing list , Linux Kernel Mailing List , keyrings@vger.kernel.org, DTML Subject: Re: [PATCH v4] config: Allow kernel installation packaging to override pkg-config Message-ID: References: <20220306223016.2239094-1-ctshao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Tue, Mar 08, 2022 at 01:01:45PM +0900, Masahiro Yamada wrote: > On Tue, Mar 8, 2022 at 7:50 AM Chun-Tse Shao wrote: > > > > On Mon, Mar 07, 2022 at 10:17:17AM -0800, Nick Desaulniers wrote: > > > On Sun, Mar 6, 2022 at 2:39 PM Chun-Tse Shao wrote: > > > > > > > > Add HOSTPKG_CONFIG to allow tooling that builds the kernel to override > > > > what pkg-config and parameters are used. > > > > > > Sorry, kind a late thought here for v4, but we don't seem to prefix > > > many other host side tools with HOST_, i.e. LEX, YACC, AWK, PERL, > > > PYTHON3, etc. Maybe just having the variable identifier be simply > > > PKGCONFIG rather than HOSTPKG_CONFIG then put it at the end of the > > > list in the top level Makefile after ZSTD (i.e. the list of host > > > tools)? There's HOST_ prefixes when there's more than one tool > > > involved (i.e. host compiler vs target compiler), but I suspect > > > there's no such distinction for the existing uses of pkg-config? > > > > > Thanks for your suggestion, Nick! Yes I think it makes sense with PKGCONFIG > > instead of HOSTPKG_CONFIG since there is only one tool involved. I will > > work on it and submit a new patch. > > > > Please hold on. > > I was also wondering what to do with the "HOST" prefix. > > Libraries are usually arch-dependent. > (in other words, pkg-config should return different library paths > for $(CC) and $(HOSTCC) ) > > You already understood this, so you added "HOST" prefix. > > > Please let me take time for further discussion. > I will come back to this when I get some time. > > Hi Mashiro, I was wondering if you were able to look more into this. Thank you! -CT > In the meantime, > a8a5cd8b472ca20e5b8fa649c43b3756867322f8 > as reference info if you have not seen it. > > > How many distros support something like > "aarch64-linux-gnu-pkg-config" ? > > Ubuntu 18.04 and 20.04 seem to support it. > I do not know for others. > > > > > > -- > Best Regards > > Masahiro Yamada