mirror of
https://github.com/UniXNU/UniXNU.git
synced 2026-11-19 10:33:06 +03:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user