Skip to content

Commit 6d70d4c

Browse files
committed
build-llvm.py: Use Linux 6.18 tarball from mainline repository
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 7db00a4 commit 6d70d4c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

build-llvm.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
# This is a known good revision of LLVM for building the kernel
2525
GOOD_REVISION = '81c5d468cf00d6e41112fba6c89d6c40013bcbda'
2626

27-
# The version of the Linux kernel that the script downloads if necessary
28-
DEFAULT_KERNEL_FOR_PGO = (6, 18, 0)
29-
3027
parser = ArgumentParser(formatter_class=RawTextHelpFormatter)
3128
clone_options = parser.add_mutually_exclusive_group()
3229
opt_options = parser.add_mutually_exclusive_group()
@@ -455,14 +452,11 @@
455452
f"Supplied kernel source version ('{found_version}') is older than the minimum required version ('{minimum_version}'), provide a newer version!"
456453
)
457454
else:
458-
# Turns (6, 2, 0) into 6.2 and (6, 2, 1) into 6.2.1 to follow tarball names
459-
ver_str = '.'.join(str(x) for x in DEFAULT_KERNEL_FOR_PGO if x)
460-
lsm.location = Path(src_folder, f"linux-{ver_str}")
455+
lsm.location = Path(src_folder, 'linux-6.18')
461456
lsm.patches = list(src_folder.glob('*.patch'))
462457

463-
lsm.tarball.base_download_url = 'https://cdn.kernel.org/pub/linux/kernel/v6.x'
464-
lsm.tarball.local_location = lsm.location.with_name(f"{lsm.location.name}.tar.xz")
465-
lsm.tarball.remote_checksum_name = 'sha256sums.asc'
458+
lsm.tarball.base_download_url = 'https://git.kernel.org/torvalds/t'
459+
lsm.tarball.local_location = lsm.location.with_name(f"{lsm.location.name}.tar.gz")
466460

467461
tc_build.utils.print_header('Preparing Linux source for profiling runs')
468462
lsm.prepare()

0 commit comments

Comments
 (0)