From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 86CD43E51D6 for ; Mon, 18 May 2026 09:04:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779095052; cv=none; b=qv1vtnPg6i+WF0FSkiSwug/Y9UpkEMVEyxfBuxekgc/AxHR/TM+IjWjAhsiidmwZVM7H7AhL3a409t1IUNAk4NDrwPH1gIn79QEi5N3O8pWQZ6sEsqQo7mnYiTVPqSlYngANJSZfFmAurbJ7aKwD5Uy8oF9OhUZy46Pb23V+MIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779095052; c=relaxed/simple; bh=Q8GbrG+ClCg94DgU9vxRlD70lv5DVCRruYHFaOZIxRk=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=CeV5aztfqhEUwnT6YzKYX+u9ikDUxOISyD7wIKGlclQLyihQTCwMeoJxJDVBqZfCdZRJBgUHVU7vYWhMV+jKOUxkuIkjxkN5Cp8fCrTb8OW41hE2DOu8eUwy06NKkJWSWEPhTxD2IvLjqPCHXwlQ5aumbf9MCCIyMzz69HtiF68= 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=rxBNZk5s; arc=none smtp.client-ip=209.85.221.45 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="rxBNZk5s" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-45d96d21e82so1074414f8f.0 for ; Mon, 18 May 2026 02:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1779095049; x=1779699849; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=xQsc42ku8RRwWOrN3cIN44IoeSXVQzXA3f6OA5chCWI=; b=rxBNZk5syvkO/IJ+yrA1ptcHiceBicKPbbTvXglLWndNUAMDvW5TFkLAfWkXPfQD5i Gm6m76otuwBrINsMN5/nd89drWEogOVRiwROzV5RZIHs4YTYU07W0SE9sFbE12CT9khH hS3ePx4wivzdvbVPFcCD3IRru8p9kL/3ofy32TSejawd1e9euq65oesnkbI5awAc4bJZ JKj4oVWKPNswTS9zwiTLll6efUGhuQbDfwLZljs3caykCWdFZk9Tbkk4Qtrwt1gEsF4G 0/jLXXbpcdgi87OxO5zS2k03H39ZzQDtACh449ipI1IC4O/KNsPxwJv69L9+XtbkW6lu Ypqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779095049; x=1779699849; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xQsc42ku8RRwWOrN3cIN44IoeSXVQzXA3f6OA5chCWI=; b=qtAp7km6nwVY3HAw3UTRLooMzQKVE4VsNKRoHvE0V9RkGZNEl8IO0PKlVGMJ5Di/0+ McZW+blQFAQlluxehu5R52qmcv8X7DwoxgBNhYQ/3irbh+mZgS4HfTnp1vtm7oEb6nux f1GViNcy6ftrTdXwDPdozmrUnL+OcOWgzbLUv7PNdbEKqU3dzRVdm8jMtEot0aprO0WD A7rCivPfX0IkwVEz4lIK5Pm4rkdiWyxFmp3EY1fU17mmecVav6aYW5AFq8vcW+Sq6Clu Tm6geLGJjECOfaBbDSvZo+6nUs8lleU4JA21JXBDboptXK3joQucIJJqShJ253FG4A6r xukQ== X-Forwarded-Encrypted: i=1; AFNElJ+GF3LQ1WwUxgrO8UzrzPUIAVJ4WUH0eXR+wvCnsUJ5qKd7xVSHP1DxHngMTfwvyf++dxbMBH7ADXbHww==@vger.kernel.org X-Gm-Message-State: AOJu0YxRmTh3YzDeydjouwqN0JzCWvm84EPwusBBrI7sXS/t2f95J2Uw PNUP/pUSGT0kdH4jAt8Sl4IEIrWkmoI6ijQcyUonD/Rv0iFml5gWn8xs3EcQmxjHfiI= X-Gm-Gg: Acq92OGL2glvU6QYtzT5Z7whWC2XeqOIdGQgNXVh7AnXboNPcdVMVDZ3DeSq8mgASpX rQ0mPrm7opBUB69znNyKrfm5YIeMyIH4i0UkidzsMmqQYgIpRcWU9igdIFNSeLcNVTA/28I6WUN NE/NUW880JpB6JvuUX6gAj0YEbVcoEluk/fp4Qb0+aISvEBWLq2/YRtMKwBnxS+dwO2Yt/pWzbC SOFQxtaEJCx4K7eYPpB3VIQFXDfZZzkoNGjwDkzcZQeSDH0jJ0iSF1MVGZ6zisKkviNj0W9jVUT J1ceSNx4FeUxdpFLrXchN/lxSquwdQKU8MAgutJk93TSZ6Vx+1nX3eAUMBdW+AZrky9J3Fp628Y 8N8M5lkVqqo+BOD0yDKQfWoXycCHt5WPnNafH4GzRCV+E2CEljyxxhrsyRsSZcJd3OLDDXuShuu KdmQby+m2EopX0M1zab4MkaEoRi3Ypeb76 X-Received: by 2002:a05:6000:2902:b0:43e:a81d:c475 with SMTP id ffacd0b85a97d-45e5c58fbf9mr21710267f8f.6.1779095048668; Mon, 18 May 2026 02:04:08 -0700 (PDT) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-45d9e768072sm35084436f8f.5.2026.05.18.02.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 02:04:08 -0700 (PDT) From: James Clark Subject: [PATCH v2 0/6] tools/build: Allow versioning of all LLVM tools Date: Mon, 18 May 2026 10:03:06 +0100 Message-Id: <20260518-james-perf-llvm-version-v2-0-f12cc4f031d8@linaro.org> Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMvVCmoC/3WNSw6CQBAFr0J6bRsGAT8r72FYNEMDbYAhPWaiI dzdgcSly3pJ1VvAswp7uCULKAfx4qYI2SEB29PUMUoTGbI0K9PCGHzSyB5n1haHIYwYWDcH8xP VxtZFbc8NRHtWbuW9lx9V5F78y+lnPwpmW3/N/G8zGEyxtGQNXSm3l+Y+yETqjk47qNZ1/QLV3 2IAvwAAAA== To: Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Jiri Kosina , Benjamin Tissoires , Shuah Khan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , Andrii Nakryiko , Eduard Zingerman , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Kumar Kartikeya Dwivedi , Song Liu , Yonghong Song , ihor.solodrai@linux.dev Cc: linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-input@vger.kernel.org, linux-kselftest@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 I ran into the build issue mentioned in the first commit, because using an option like LLVM=-15 is a documented way to build [1], but only some of the LLVM tools defined in tools/ support this. After fixing that, a lot of other tidyups fell out. I didn't go too far, for example some selftests include tools/testing/selftests/lib.mk which reimplements some of the LLVM_SUFFIX stuff, but other selftests include tools/scripts/Makefile.include and I stopped before touching the former. Some other non build scripts hard code toolchains and I didn't touch those either, this change is only focused on things that already include Makefile.include. [1]: Documentation/kbuild/llvm.rst Signed-off-by: James Clark --- Changes in v2: - Fix selftests/bpf build. LLD needs to take the full path to be used with -fuse-ld= - Link to v1: https://lore.kernel.org/r/20260514-james-perf-llvm-version-v1-0-6cac1a9a4c8d@linaro.org --- James Clark (6): tools/build: Allow versioning of all LLVM tools defined in Makefile.include tools/build: Indent if else blocks selftests: Remove unused LLD variable tools/build: Allow versioning LLVM readelf tools/build: selftests: Allow versioning LLVM lld tools/build: selftests: Remove some duplicate toolchain definitions tools/bpf/resolve_btfids/Makefile | 3 -- tools/lib/api/Makefile | 4 -- tools/lib/bpf/Makefile | 8 ++-- tools/lib/subcmd/Makefile | 4 -- tools/lib/symbol/Makefile | 4 -- tools/perf/Makefile.perf | 7 ---- tools/scripts/Makefile.include | 77 ++++++++++++++++++++---------------- tools/testing/selftests/bpf/Makefile | 9 ++--- tools/testing/selftests/hid/Makefile | 7 ---- 9 files changed, 50 insertions(+), 73 deletions(-) --- base-commit: 09d355618f7ccc27ffc7fc668b2e232872962079 change-id: 20260511-james-perf-llvm-version-43ab1cb5bc7d Best regards, -- James Clark