From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 369183A0B13 for ; Wed, 15 Jul 2026 14:54:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784127267; cv=none; b=J6Y0MoEJL4Ncem/M9NK5LdyJfyszKTGa62slVFhv+vzwnrtIRBl0Y10ac3MD8GY0in4iCyv+R3jQwu3+gPAJJDM03SR7lMsFv0UBrhe46TEBlKSLo9Ax9LQkyJ7UN1qGYPAU9O9ac5g6jeFEkXF+JEMdr1HJIBex/3fzoyxsFdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784127267; c=relaxed/simple; bh=YmoPzivoUVC4z+GD4C9dgp0VaLkJZwU+d/4+hGh3yNk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=rCqR01JI7kCLKMrRYByCS+B5PCymmDAMPDSpaw451vSRXeAvdQwT/tQAK62Mct5th3jhFauNV+/Az76W7uedGNZfYdCg1EvjTBpOJJp7aMejx6mvxpanXgZ2C9UQf/CRPIT8Lb2JhwQsIRDsiTfPAH2mhbUt6WG+xnqJQjqYTaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=baUP3uS8; arc=none smtp.client-ip=209.85.128.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="baUP3uS8" Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-493e4cccd8dso10994235e9.2 for ; Wed, 15 Jul 2026 07:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1784127263; x=1784732063; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3q/mBxAob+M0XblmpPoJEXspUdOZwJaSDjVW/DAN13M=; b=baUP3uS8aGXTxlhxy4X5mPcBSDrzfiWlr/RIKQBnB5+TPXlkLUuuXKf/hdVUDVar32 G/vLMlRi+1PqkPBbwBgIEBLj6+0dlWasEcUEX66y48hSlx1JwuFfkUwi2OzhLlR0jDSN By2BxrG8iaj6n20MDaH2MBEc3oRz/h4rBE6q4UtIswxJnq2kEDidlx1gz/4L1lCXRieO BuLxcHQkiTbjXdDPyZfv9dCZbwGnhoFrK9HbgvoN+iOV2Ohx7R7jCARYr2gscQBt0Eyz 6jpT2egRbVSb8RnayvX9iO9VaZ6eFXkByZLuFS3UGhvMxpturw1q2mdDgGR1v/AYSd+s YHTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784127263; x=1784732063; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=3q/mBxAob+M0XblmpPoJEXspUdOZwJaSDjVW/DAN13M=; b=fS92ndd3Eq6Ira2ewhpdDqILGXtcQ9FvdITxFS2uoW5bC6ocrpnEO0T6AcT3qy6bqq rmfU3igSbvy6uMjPJ6SX6+QgANnN6Cm1QxrxsSu5SCZ5jbLT0H1JTAkajMgtUzJe2hN3 E7qhYZafpmU2rF1UAFfQEUNmQG4JikDt29NACiyU0D6WKB8xIjow1ZaPR+GMqTHPP/Ht mxC7i27Dms8ycmHIlPDl88BnZ3VnuuN9xc60+I8Pk2Fkj1fk06XSNtRh8ugTkhdmN6fJ Qtk3KHW1RyT6yEFLfJST3dBpsTFV1AEdwiXCPtyQZq90gxRKz+7UdMqJPMNch7/AiiKt 89Cg== X-Forwarded-Encrypted: i=1; AHgh+RpETmAqKkBxKV0oMQLfeork40UefinXUFhiwIQbfqXnqW4SfILX5pNaXwRnp/5sYylmWnzRsmc2JBp5DhM=@vger.kernel.org X-Gm-Message-State: AOJu0YxdmjYnyvWS/lrKVo5VHFVBUCuw6jzIK5Nr/+Q5S21MKxgR1d6h n9pWXO9k9c+L8+U5hI6YkafeRHabEVXCuEaLHnGE9hckw6YSm+Fjb3qcJg2NhSIJYT0= X-Gm-Gg: AfdE7ck7oiBI5iIlm8toLjndmhxepvy41LNHv87INpEd3KacecfMHPHV82UoAcNYNAe uaaZ89qKoXop5EEwesAccruKSb7NBwQIxQDxop3chuZCzWMVYs2nXxcJVesQ7tmHTziK4Tl8npa 3Be5goQ23OzHwuLzsjFS7uEZ0/zrDWLDMM6NoD33r2m43OIbXQyODO003Fr3cPqtOZcB5N+X4Vk qL3lbcq2OTtuSmutkeD5U18dwrXs8HT0V7ac4RJgMxY2g6JD1ItXFwovVR0a8iwrY+PR3Dcvuxb xrLq74pcU1xvhnJPPREhlZqXw1Td6swktKRYyeJmAtmPnAPoFzG/z3r36EyT8XXAOjFdBaTVRVt 1bJ+yF2mPhJ+JEtZWRzmZGX3b98iT1YIBYBRGXRYy6sw5Xx0+S0xHWuxrjCpd3eHnFcrHvacGmW N//i3DHfniJMXuYYCTwlp7EQ== X-Received: by 2002:a05:600c:4f8a:b0:493:e947:b24a with SMTP id 5b1f17b1804b1-493f87e72a8mr183785635e9.14.1784127262701; Wed, 15 Jul 2026 07:54:22 -0700 (PDT) Received: from e133063.arm.com ([212.187.182.162]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49510c8e220sm137649275e9.15.2026.07.15.07.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2026 07:54:22 -0700 (PDT) From: James Clark Date: Wed, 15 Jul 2026 15:53:51 +0100 Subject: [PATCH v4 4/4] tools/build: selftests: Remove some duplicate toolchain definitions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260715-james-perf-llvm-version-v4-4-6dfdf984b435@linaro.org> References: <20260715-james-perf-llvm-version-v4-0-6dfdf984b435@linaro.org> In-Reply-To: <20260715-james-perf-llvm-version-v4-0-6dfdf984b435@linaro.org> To: Arnaldo Carvalho de Melo , Namhyung Kim , Ihor Solodrai Cc: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , Emil Tsalapatis , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter , Shuah Khan , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org, James Clark X-Mailer: b4 0.14.2 Try to remove some, but not all duplicate toolchain definitions. In these instances, their makefiles already include tools/scripts/Makefile.include which defines these in a consistent way. STRIP is the only one that was set with an '=', but I don't think it was significant so that difference can be dropped. Signed-off-by: James Clark --- tools/bpf/resolve_btfids/Makefile | 3 --- tools/lib/api/Makefile | 4 ---- tools/lib/subcmd/Makefile | 4 ---- tools/lib/symbol/Makefile | 4 ---- tools/perf/Makefile.perf | 6 ------ tools/testing/selftests/bpf/Makefile | 1 - 6 files changed, 22 deletions(-) diff --git a/tools/bpf/resolve_btfids/Makefile b/tools/bpf/resolve_btfids/Makefile index 7672208f65e4bc245c03603634d3aa0093a91096..6fdb6302e0a28e9166175822f42cfbb4f4eb24e5 100644 --- a/tools/bpf/resolve_btfids/Makefile +++ b/tools/bpf/resolve_btfids/Makefile @@ -20,9 +20,6 @@ HOST_OVERRIDES := AR="$(HOSTAR)" CC="$(HOSTCC)" LD="$(HOSTLD)" ARCH="$(HOSTARCH) CROSS_COMPILE="" CLANG_CROSS_FLAGS="" EXTRA_CFLAGS="$(HOSTCFLAGS)" RM ?= rm -HOSTCC ?= gcc -HOSTLD ?= ld -HOSTAR ?= ar HOSTPKG_CONFIG ?= pkg-config CROSS_COMPILE = diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile index 8665c799e0fa7155016e8bc6968ebe76a90e1d13..a228fdb5adba8d7f8282688964a9751a06cb0c79 100644 --- a/tools/lib/api/Makefile +++ b/tools/lib/api/Makefile @@ -9,10 +9,6 @@ srctree := $(patsubst %/,%,$(dir $(srctree))) #$(info Determined 'srctree' to be $(srctree)) endif -CC ?= $(CROSS_COMPILE)gcc -AR ?= $(CROSS_COMPILE)ar -LD ?= $(CROSS_COMPILE)ld - MAKEFLAGS += --no-print-directory INSTALL = install diff --git a/tools/lib/subcmd/Makefile b/tools/lib/subcmd/Makefile index 8703ab487b68c89406fed575217b57f58e71fb01..9f1ddcf0504d993249991e0af4589db1072465d1 100644 --- a/tools/lib/subcmd/Makefile +++ b/tools/lib/subcmd/Makefile @@ -9,10 +9,6 @@ srctree := $(patsubst %/,%,$(dir $(srctree))) #$(info Determined 'srctree' to be $(srctree)) endif -CC ?= $(CROSS_COMPILE)gcc -LD ?= $(CROSS_COMPILE)ld -AR ?= $(CROSS_COMPILE)ar - RM = rm -f MAKEFLAGS += --no-print-directory diff --git a/tools/lib/symbol/Makefile b/tools/lib/symbol/Makefile index 426b845edfaccf56f7c246c281a549c18d0f3919..d692abe8add6e243d7b024fe556cc0983eb4b443 100644 --- a/tools/lib/symbol/Makefile +++ b/tools/lib/symbol/Makefile @@ -9,10 +9,6 @@ srctree := $(patsubst %/,%,$(dir $(srctree))) #$(info Determined 'srctree' to be $(srctree)) endif -CC ?= $(CROSS_COMPILE)gcc -AR ?= $(CROSS_COMPILE)ar -LD ?= $(CROSS_COMPILE)ld - MAKEFLAGS += --no-print-directory INSTALL = install diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index 4d0d7ae02e06b117487a17691c4e62a138428ac5..ca67d4b6fc38367c63123332360ccf27102fc086 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -174,11 +174,6 @@ endef LD += $(EXTRA_LDFLAGS) -HOSTCC ?= gcc -HOSTLD ?= ld -HOSTAR ?= ar -CLANG ?= clang - # Some distros provide the command $(CROSS_COMPILE)pkg-config for # searching packges installed with Multiarch. Use it for cross # compilation if it is existed. @@ -213,7 +208,6 @@ FIND = find INSTALL = install FLEX ?= flex BISON ?= bison -STRIP = strip AWK = awk # include Makefile.config by default and rule out diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index b642ee489ea64046a9b19852780c3a6f009cbd82..a1a4ae76365955f8f7c1193a03e74bef0d344f9c 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -3,7 +3,6 @@ include ../../../build/Build.include include ../../../scripts/Makefile.arch include ../../../scripts/Makefile.include -CXX ?= $(CROSS_COMPILE)g++ OBJCOPY ?= $(CROSS_COMPILE)objcopy CURDIR := $(abspath .) -- 2.34.1