From patchwork Wed Jan 17 15:50:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Jan_Kundr=C3=A1t?= X-Patchwork-Id: 188882 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:414:b0:176:5f3:c5eb with SMTP id 20csp765011rwd; Wed, 17 Jan 2024 07:58:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgJ2sVe8Hcgol5eScUD+A4sCFhajqXUWyJe1TiulwwYxU8TE2UBVmt63v4HGM4sbarg3en X-Received: by 2002:a05:6a00:1252:b0:6d9:b896:5e9b with SMTP id u18-20020a056a00125200b006d9b8965e9bmr12495111pfi.60.1705507111202; Wed, 17 Jan 2024 07:58:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705507111; cv=pass; d=google.com; s=arc-20160816; b=NebNMYkMCppCh3j0Ynt2FfVBW9DW9c20DN3v0Svl/lpRw/vowSLUCErBrslPDMHFyC wQrhWQtg79ayJ5IdPB2aey9gVwYprR9QnIV4D7NKYMM5GqZ2tINM+Q4c6zQimeqmZTbt ro4T4SoKI4o27Ev250+lFcY+0th+bqcnyfyDJtZV4I+bskOfjfDdUenb7UCezFFFabEq 8B8HzDoKpPoCM0wtInxvEkpPp08mrVHnGFGATJO4XkdivxaTQk3FTXdP+qxBByyK9WgX wiBXSq4+jjktVQVecbkh1GMjDjLCmVjf/LYwyJwo1nKsbM4IRpsbbgdM62crx0u3Xrmz UWTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:message-id :resent-cc:resent-to:resent-from:resent-message-id:resent-date :dkim-signature; bh=UVRbAJjGBCaUJ9jH+NLdOpNygaBZ83+KFG+cEO56Tk8=; fh=b9eNqbka1WG2qnEZlQsG7jnDHPwiXtjOvT2k8aWkptA=; b=ZaqhoINCH1+SOYhHnQBg8ri5yHeqgbxPpFqT8rhK0vB8dDdazda9OovHTI21YsuqAW jmiyfaomrajsVfLuBT0JAd06JBo3cIqywDs7qjkb22SKqRLPlswyP9SMIPwXv7r67vh+ DwXeOw/D2ytKE9/jAjKIHy2GAR/VTZZim2cPdMJLbhVxR7Irsy10fQ2fqeCC0WE/Ct0v cx2SqUCdPrRwK17iHrlx7fF2eODY9r5c4qFwl+EsGJx6QMhyWdiOiCVv2ZZfq2IlI3aD wiLzrCN/voWcXQ1nInUAZUN9ZbLZ4zoYYRlQIPRPkE+u6Vl7OiCY5CfcGXGyO1j0SIcU 2L0g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cesnet.cz header.s=office2-2020 header.b="Z/MDljio"; arc=pass (i=1 spf=pass spfdomain=cesnet.cz dkim=pass dkdomain=cesnet.cz dmarc=pass fromdomain=cesnet.cz); spf=pass (google.com: domain of linux-kernel+bounces-29180-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29180-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=cesnet.cz Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s1-20020a056a0008c100b006d8ec0156ebsi1993676pfu.3.2024.01.17.07.58.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 07:58:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-29180-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cesnet.cz header.s=office2-2020 header.b="Z/MDljio"; arc=pass (i=1 spf=pass spfdomain=cesnet.cz dkim=pass dkdomain=cesnet.cz dmarc=pass fromdomain=cesnet.cz); spf=pass (google.com: domain of linux-kernel+bounces-29180-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-29180-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=cesnet.cz 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 83C23B2453C for ; Wed, 17 Jan 2024 15:58:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8279922324; Wed, 17 Jan 2024 15:58:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cesnet.cz header.i=@cesnet.cz header.b="Z/MDljio" Received: from office2.cesnet.cz (office2.cesnet.cz [78.128.248.237]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDF3321A15; Wed, 17 Jan 2024 15:57:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.128.248.237 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705507081; cv=none; b=dts0hmdtdMeQIaK9yLR3kaX1lNqoNm6Jf8fY0jiysYSs46ZfoWGOoL/RYazZhQhRajeEudvw5qzGsDQRwzz5C3bpP1E+4+Lhcq/4KvF7qwpMGikNcGyOQe3Bi9d5P2gGhEVPWkrCgKT5zHt5ZUBNZMIoExJ+/bFmDRrfwaTiT0U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705507081; c=relaxed/simple; bh=5eIV2ECbqThsSC3N7XQpfP+YzIOdiuURgqyHz3CBRLk=; h=DKIM-Signature:Received:Resent-Date:Resent-Message-ID:Resent-From: Resent-To:Resent-Cc:Message-ID:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:To:Cc; b=eAYkla1Pjc7CuUM1I8lP7lMoI8K6mAOLUt3ios1/w3kwCGWHcvM5eO5nsGJs8iFlB4fawIW5MzQeVrGjY7WB4ljcLCj1ka9Dh21jLUPtJRCFD3rQqWW3QVXdn83DM2OEkyA+7CZyQsMqvYT6lDVHQiBT3XsJ8aj+LG8XQWMaGto= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cesnet.cz; spf=pass smtp.mailfrom=cesnet.cz; dkim=pass (2048-bit key) header.d=cesnet.cz header.i=@cesnet.cz header.b=Z/MDljio; arc=none smtp.client-ip=78.128.248.237 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cesnet.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cesnet.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2-2020; t=1705506735; bh=UVRbAJjGBCaUJ9jH+NLdOpNygaBZ83+KFG+cEO56Tk8=; h=Resent-Date:Resent-From:Resent-To:Resent-Cc:From:Date:Subject:To: Cc; b=Z/MDljioECiWXNTycDSwwYxnldNQGLyOPJzRLskim2kiKPn8DYB8tPP4FuBxvaIHB G3HMjCvSmhifwh5xCvC7GIsy4rj46t8ytCRwcUXpUFcwJSMGIPXXMbMKGUPPBErPBG XGtRYoqoz0YuCIM/USkmwbE8/9l9gDEGSESa6AWLxVHSFN72dE1VulrDKlrbLuTdjK +g+Mf/b/vEc8CpoRQqndVPfI9UuVbi64miMF+wvLIP+gna+QKcOxWweAc99wlEq0Ao 34lr7ApgHvm+1BB4JI1jiDM8x/ez6ctjnjCqnGV+NNBVoPXiEpLdEfWugynj0hxtcn ZbBnPip+/+KGg== Received: from localhost (unknown [IPv6:2a07:b241:1002:700:41fe:11a9:b352:1c39]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id 628111180072; Wed, 17 Jan 2024 16:52:12 +0100 (CET) Resent-Date: Wed, 17 Jan 2024 16:52:10 +0100 Resent-Message-ID: <262d0a5c-1813-4e64-899c-549aa5cf80a0@cesnet.cz> Resent-From: =?iso-8859-1?q?Jan_Kundr=E1t?= Resent-To: Resent-Cc: "Yann E. MORIN" , Message-ID: From: =?utf-8?q?Jan_Kundr=C3=A1t?= Date: Wed, 17 Jan 2024 16:50:47 +0100 Subject: [PATCH] perf build: don't hardcode pkg-config path Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 To: linux-perf-users@vger.kernel.org Cc: Yann E. MORIN , linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788353824664925143 X-GMAIL-MSGID: 1788353824664925143 On Buildroot and when building for Arm using the Bootlin toolchain, the actual `pkg-config` is named just `pkg-config`, not `arm-linux-pkg-config`. This patch allows the external build system (such as Buildroot) to pass a working path. This is already done correctly in tools/build/feature/Makefile and tools/thermal/tmon/Makefile and also fixed in other places many years ago (9961aa665b70e47d6c80141c4a2482266010f246), but for some reason it was never fixed in this file. Signed-off-by: Jan Kundrát To: linux-perf-users@vger.kernel.org Cc: Yann E. MORIN Cc: linux-kernel@vger.kernel.org Acked-by: Namhyung Kim --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 86569f230e60..b69ab2ae77c6 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -188,7 +188,7 @@ HOSTLD ?= ld HOSTAR ?= ar CLANG ?= clang -PKG_CONFIG = $(CROSS_COMPILE)pkg-config +PKG_CONFIG ?= $(CROSS_COMPILE)pkg-config RM = rm -f LN = ln -f