fix(kernel): restore omitted XNU headers after a fresh clone

A changed patch series re-clones the XNU work tree, which lacks the public
headers newer xnu omits (TrustCache among them), and archives built before
the kernel failed to compile against it.
This commit is contained in:
bluseliu50
2026-10-26 01:40:29 +08:00
Unverified
parent 71ccc68c1e
commit 018c8f3439
+2
View File
@@ -60,6 +60,8 @@ def prepare(ctx, modules):
except Error as error:
shutil.rmtree(work)
raise Error(f'XNU patch {path}: {error}') from error
# A fresh clone lacks the public headers newer xnu omits (TrustCache among them); archives compile against it before the kernel build.
run(['python3', ctx.tree / 'scripts/prepare-xnu-source.py'], cwd=ctx.tree)
stamp.write_text(json.dumps(signature, indent=2) + '\n')
patch_list = ctx.work / 'xnu-patches.list'
patch_list.write_text(''.join(str(path) + '\n' for path in selected))