diff --git a/static/build.html b/static/build.html index c0a963c8..6b73d8ee 100644 --- a/static/build.html +++ b/static/build.html @@ -844,13 +844,16 @@ git checkout $CORRECT_BRANCH_OR_TAG
cd src
 git fetch --tags
-git checkout $VERSION
-gclient sync -D --with_branch_heads --with_tags --jobs 32
+git checkout $VERSION

Apply the GrapheneOS patches on top of the tagged release:

git am --whitespace=nowarn --keep-non-patch ../patches/*.patch
+

Sync submodules and obtain build dependencies:

+ +
gclient sync -D --with_branch_heads --with_tags --jobs 32
+

Then, configure the build in the src directory:

gn args out/Default