diff --git a/build-llvm.py b/build-llvm.py index 4aaadcbe..de3c96eb 100755 --- a/build-llvm.py +++ b/build-llvm.py @@ -16,9 +16,6 @@ # This is a known good revision of LLVM for building the kernel GOOD_REVISION = '15397583e3d85eb1f1a051de26eb409aaedd3b54' -# The version of the Linux kernel that the script downloads if necessary -DEFAULT_KERNEL_FOR_PGO = (6, 10, 0) - parser = ArgumentParser(formatter_class=RawTextHelpFormatter) clone_options = parser.add_mutually_exclusive_group() opt_options = parser.add_mutually_exclusive_group() @@ -447,14 +444,11 @@ f"Supplied kernel source version ('{found_version}') is older than the minimum required version ('{minimum_version}'), provide a newer version!" ) else: - # Turns (6, 2, 0) into 6.2 and (6, 2, 1) into 6.2.1 to follow tarball names - ver_str = '.'.join(str(x) for x in DEFAULT_KERNEL_FOR_PGO if x) - lsm.location = Path(src_folder, f"linux-{ver_str}") + lsm.location = Path(src_folder, 'linux-6.10') lsm.patches = list(src_folder.glob('*.patch')) - lsm.tarball.base_download_url = 'https://cdn.kernel.org/pub/linux/kernel/v6.x' - lsm.tarball.local_location = lsm.location.with_name(f"{lsm.location.name}.tar.xz") - lsm.tarball.remote_checksum_name = 'sha256sums.asc' + lsm.tarball.base_download_url = 'https://git.kernel.org/torvalds/t' + lsm.tarball.local_location = lsm.location.with_name(f"{lsm.location.name}.tar.gz") tc_build.utils.print_header('Preparing Linux source for profiling runs') lsm.prepare()