Sign ChromeOS boot images with magiskboot

Port the `futility vbutil_kernel --pack` code path used to sign
ChromeOS boot images into magiskboot as a new `sign-chromeos` action.
The kernel keyblock and data key are embedded into the executable, and
all signing parameters previously passed in sign_chromeos are
hardcoded. The output is bit-for-bit identical to the reference tool.

Rename the existing `sign` action to `sign-avb1` to disambiguate.

Remove the prebuilt futility binary and stop shipping the chromeos
assets folder; scripts now call magiskboot directly.

Assisted-by: Claude Opus 5.5
This commit is contained in:
topjohnwu
2026-10-06 22:59:48 +00:00
parent 3e9b09f5d5
commit da50b5586f
12 changed files with 224 additions and 39 deletions
-1
View File
@@ -12,7 +12,6 @@
# Denote all files that are truly binary and should not be modified.
/tools/keys/** binary
/tools/keys/futility binary
*.jar binary
*.exe binary
*.apk binary