Skip to content

Commit b022e4e

Browse files
committed
build-llvm.py: Use Linux 6.19 tarball from mainline repository
This will make it easier to test prerelease versions. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 1a9bff0 commit b022e4e

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
@@ -33,9 +33,6 @@
3333
# This is a known good revision of LLVM for building the kernel
3434
GOOD_REVISION = '2a2a394215b38631588d504d2b671df13370395b'
3535

36-
# The version of the Linux kernel that the script downloads if necessary
37-
DEFAULT_KERNEL_FOR_PGO = (6, 19, 0)
38-
3936
parser = ArgumentParser(formatter_class=RawTextHelpFormatter)
4037
clone_options = parser.add_mutually_exclusive_group()
4138
opt_options = parser.add_mutually_exclusive_group()
@@ -546,14 +543,11 @@
546543
f"Supplied kernel source version ('{found_version}') is older than the minimum required version ('{minimum_version}'), provide a newer version!"
547544
)
548545
else:
549-
# Turns (6, 2, 0) into 6.2 and (6, 2, 1) into 6.2.1 to follow tarball names
550-
ver_str = '.'.join(str(x) for x in DEFAULT_KERNEL_FOR_PGO if x)
551-
lsm.location = Path(src_folder, f"linux-{ver_str}")
546+
lsm.location = Path(src_folder, 'linux-6.19')
552547
lsm.patches = list(src_folder.glob('*.patch'))
553548

554-
lsm.tarball.base_download_url = 'https://cdn.kernel.org/pub/linux/kernel/v6.x'
555-
lsm.tarball.local_location = lsm.location.with_name(f"{lsm.location.name}.tar.xz")
556-
lsm.tarball.remote_checksum_name = 'sha256sums.asc'
549+
lsm.tarball.base_download_url = 'https://git.kernel.org/torvalds/t'
550+
lsm.tarball.local_location = lsm.location.with_name(f"{lsm.location.name}.tar.gz")
557551

558552
tc_build.utils.print_header('Preparing Linux source for profiling runs')
559553
lsm.prepare()

0 commit comments

Comments
 (0)