Skip to content

Commit

Permalink
build-llvm.py: Use Linux 6.10 tarball from mainline repository
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Aug 12, 2024
1 parent 816d7ca commit 2c8dd97
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions build-llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 2c8dd97

Please sign in to comment.