mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-25 18:23:07 +00:00
vmtest.manage: apply kernel patches before building
We also need to force the checkout and clean it in order to revert the patches between versions. Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
parent
45e7fc2d3b
commit
1b3e58a11d
@ -34,7 +34,7 @@ from vmtest.config import (
|
|||||||
)
|
)
|
||||||
from vmtest.download import VMTEST_GITHUB_RELEASE, available_kernel_releases
|
from vmtest.download import VMTEST_GITHUB_RELEASE, available_kernel_releases
|
||||||
from vmtest.githubapi import AioGitHubApi
|
from vmtest.githubapi import AioGitHubApi
|
||||||
from vmtest.kbuild import KBuild
|
from vmtest.kbuild import KBuild, apply_patches
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -135,7 +135,11 @@ async def build_kernels(
|
|||||||
build_dir.mkdir(parents=True, exist_ok=True)
|
build_dir.mkdir(parents=True, exist_ok=True)
|
||||||
for rev, flavors in kernel_revs:
|
for rev, flavors in kernel_revs:
|
||||||
logger.info("checking out %s in %s", rev, kernel_dir)
|
logger.info("checking out %s in %s", rev, kernel_dir)
|
||||||
await check_call("git", "-C", str(kernel_dir), "checkout", "-q", rev)
|
await check_call(
|
||||||
|
"git", "-C", str(kernel_dir), "checkout", "--force", "--quiet", rev
|
||||||
|
)
|
||||||
|
await check_call("git", "-C", str(kernel_dir), "clean", "-dqf")
|
||||||
|
await apply_patches(kernel_dir)
|
||||||
for flavor in flavors:
|
for flavor in flavors:
|
||||||
flavor_rev_build_dir = build_dir / f"build-{flavor.name}-{rev}"
|
flavor_rev_build_dir = build_dir / f"build-{flavor.name}-{rev}"
|
||||||
with open(
|
with open(
|
||||||
|
Loading…
Reference in New Issue
Block a user