Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1011723lqt; Fri, 7 Jun 2024 05:50:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtpcSvgaWuzwis4Fbv4DfQLAx1dQZGFstJIw/kzx3G9rcPjdKxJbgUV497+/H1qaKTT4IX/hfPhCZzzAcRQoEbcE1MXEvUeMOBe4hHxA== X-Google-Smtp-Source: AGHT+IFf71WhM3Krbbh85nMDiqrfRWmfuuDYdIzXd+MgKkFJassDvLk1g3xcLA0PRMxkYxcibfXL X-Received: by 2002:ac8:7d8e:0:b0:43d:ee0c:c5df with SMTP id d75a77b69052e-44041c81eb2mr24214961cf.64.1717764640813; Fri, 07 Jun 2024 05:50:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717764640; cv=pass; d=google.com; s=arc-20160816; b=D/uZNd0gaH83TbaTLecItj32Y090O8fx54eew+lni/rBgmTJ8dfrnsjSl2Qg8XJc2A T68jcK/GK4eiIN7DZJLBWoMGOifOyTRQLzAs4Mnb4mTBR9fNrnH6OKq6Q5R0SO8mpxzg V5OQdRfXnopeuyBPgz0NDY+O8KMdhBzQyeDCDO0dKyyyp+0t2kJAjMji69QDluDA/x9C ZwtMzxXKVkDV8GvJW8aVvetxWE9dkZlSFwmi8gS9LauCSq1zFh63tiA6VIBqLHo9Wk95 AnQeXGN55iDkwlVrvZimfZWTEQUjOEvPUiEBdW2TBqI2VpjryVukePcHgOvMvu3lzpYA B7Jg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=FIb3thTV0B4akw0LNiCk1cZxXZvvjy3ilwo65zmPZdI=; fh=UTA2a9OzktINIewhJh43ikJA3Nojc+qvHoPdpHGZeIk=; b=nWaSXQbcYJfvXaQzmzZwlueDOsSv1Gad/iNV/p2qsZjqZ44Wndav6+eh1kok9d8wl9 H6OK0wROCmFL2ySUu+HQRmg5fCSi0YDKGWd/zWhcFCnQAg/blYVhYdgT9L98baN2jpnl uJwrWZPgRgIbVtg1yilQQJK/zzg17MWN/nsRSfgYDTFsRPkZ9vIJRNQWRvdzTFqMo2c1 9GTlu7rjPTvnjIze35qHd+mOerhWZE3lWDHRojH0bWOjeP9Z8t65/xYXiHoOsRmzKf5b LqDIEHTlompXXLvQ/likf1njLXEI/QNoxO7pHGezCTO2JJh66TMHJ6MvPEQUcqobT/Oi k8rA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-206082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038a6fdcdsi38886391cf.86.2024.06.07.05.50.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 05:50:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-206082-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206082-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C16D1C20C7D for ; Fri, 7 Jun 2024 12:50:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BBD061922C4; Fri, 7 Jun 2024 12:50:34 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D73074AEC3; Fri, 7 Jun 2024 12:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717764634; cv=none; b=AGPorczmUNCEg6lxJHZUNc7vOiAfJbedwNrOkTcnXTLFk4WpdiFV47Ax+QsweZ+fKQISnJqqjSbM1Cr9cqA9qgfQhwJvZHPDGbS7sVXlQM2bfWzm9N2u0hZKZodFcC+u0UllR7Mtjkc5uKCmWD3+vw1RlpfCUH/oberj6WeZEhA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717764634; c=relaxed/simple; bh=rFPbE5w/AjL8MhqCMSlMUzFyf6vFNmsE+KMk/g1o8bk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LN6WHEkl1lfT3+L9w/a/nVLDDw3a1xI2/d6CHMddh52ctuWWz5KEpjCOKzsm2+fnp6JENSovrNwJst3+ZKmlsJ5RlYcPxa9zeQPd7Yj5rXc0Krck83QMHY9L2YkX5GOuwaOfFURiRv0Ty2ztdGwCv4vlNGS5C8C5nt/J2DgKcaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8E1FB13D5; Fri, 7 Jun 2024 05:50:55 -0700 (PDT) Received: from [10.2.76.71] (e132581.arm.com [10.2.76.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9F8193F762; Fri, 7 Jun 2024 05:50:29 -0700 (PDT) Message-ID: <0a578e84-6a28-4477-9aa4-dcfb37fc28b0@arm.com> Date: Fri, 7 Jun 2024 13:50:28 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/6] perf: build: Setup PKG_CONFIG_LIBDIR for cross compilation To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Mark Rutland , James Clark , Ian Rogers , "Liang, Kan" , Nick Terrell , Thomas Richter , Changbin Du , Fangrui Song , Mateusz Kowalczyk , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: <20240604093223.1934236-1-leo.yan@arm.com> <20240604093223.1934236-2-leo.yan@arm.com> Content-Language: en-US From: Leo Yan In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Namhyung, On 6/6/24 18:28, Namhyung Kim wrote: >> --- a/tools/build/feature/Makefile >> +++ b/tools/build/feature/Makefile >> @@ -82,7 +82,19 @@ FILES= \ >> >> FILES := $(addprefix $(OUTPUT),$(FILES)) >> >> -PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config >> +PKG_CONFIG ?= pkg-config >> + >> +ifdef CROSS_COMPILE >> + ifndef PKG_CONFIG_LIBDIR > > Can we do that only if the cross-compile-pkg-config is not available? Makes sense for me. I will update for this. Thanks, Leo