drop leftover legacy build docs

ESR branch for 3rd generation Pixels may be continued but this page will
only be for documenting building the current generation GrapheneOS.
This commit is contained in:
Daniel Micay 2022-08-18 10:44:34 -04:00
parent f973f547d6
commit 93e4389db3

View File

@ -70,13 +70,7 @@
</li> </li>
<li><a href="#updating-and-switching-branches-or-tags">Updating and switching branches or tags</a></li> <li><a href="#updating-and-switching-branches-or-tags">Updating and switching branches or tags</a></li>
<li><a href="#kernel">Kernel</a></li> <li><a href="#kernel">Kernel</a></li>
<li> <li><a href="#extracting-vendor-files-for-pixel-devices">Extracting vendor files for Pixel devices</a></li>
<a href="#extracting-vendor-files-for-pixel-devices">Extracting vendor files for Pixel devices</a>
<ul>
<li><a href="#extracting-vendor-files-for-pixel-3a-and-earlier">Pixel 3a and earlier</a></li>
<li><a href="#extracting-vendor-files-for-pixel-4-and-later">Pixel 4 and later</a></li>
</ul>
</li>
<li><a href="#setting-up-the-os-build-environment">Setting up the OS build environment</a></li> <li><a href="#setting-up-the-os-build-environment">Setting up the OS build environment</a></li>
<li><a href="#reproducible-builds">Reproducible builds</a></li> <li><a href="#reproducible-builds">Reproducible builds</a></li>
<li><a href="#building">Building</a></li> <li><a href="#building">Building</a></li>
@ -152,10 +146,6 @@
<li>sunfish (Pixel 4a)</li> <li>sunfish (Pixel 4a)</li>
<li>coral (Pixel 4 XL)</li> <li>coral (Pixel 4 XL)</li>
<li>flame (Pixel 4)</li> <li>flame (Pixel 4)</li>
<li>bonito (Pixel 3a XL)</li>
<li>sargo (Pixel 3a)</li>
<li>crosshatch (Pixel 3 XL)</li>
<li>blueline (Pixel 3)</li>
</ul> </ul>
<p>These are all fully supported production-ready targets supporting all the <p>These are all fully supported production-ready targets supporting all the
@ -334,10 +324,6 @@
including the emulator, porting to other devices and for non-legacy including the emulator, porting to other devices and for non-legacy
officially supported devices.</p> officially supported devices.</p>
<p>Pixel 3 / Pixel 3 XL / Pixel 3a / Pixel 3a XL use the
<code>12.1-crosshatch</code> branch setting an appropriate
<code>BUILD_ID</code> and security patch level field.</p>
<p>The <code>13</code> branch is in early development and will be the <p>The <code>13</code> branch is in early development and will be the
branch used for all non-legacy devices.</p> branch used for all non-legacy devices.</p>
@ -474,41 +460,20 @@ repo sync -j16</pre>
that the official builds match the sources, since it has signature verification (which that the official builds match the sources, since it has signature verification (which
is an important part of the verified boot and attestation security model).</p> is an important part of the verified boot and attestation security model).</p>
<section id="extracting-vendor-files-for-pixel-3a-and-earlier"> <p>The below commands need to only be run once to initially create a working environment.</p>
<h4><a href="#extracting-vendor-files-for-pixel-3a-and-earlier">Pixel 3a and earlier</a></h4>
<p>3rd generation Pixel devices will be using android-prepare-vendor for the remainder of <pre>cd vendor/adevtool/ &amp;&amp; yarn install &amp;&amp; cd ../..
their lifetime on GrapheneOS.
</p>
<p>Extract the vendor files corresponding to the matching release with
<code>DEVICE</code> and <code>BUILD_ID</code> replaced with the
appropriate values:</p>
<pre>vendor/android-prepare-vendor/execute-all.sh -d DEVICE -b BUILD_ID -o vendor/android-prepare-vendor
mkdir -p vendor/google_devices
rm -rf vendor/google_devices/DEVICE
mv vendor/android-prepare-vendor/DEVICE/BUILD_ID/vendor/google_devices/* vendor/google_devices/</pre>
</section>
<section id="extracting-vendor-files-for-pixel-4-and-later">
<h4><a href="#extracting-vendor-files-for-pixel-4-and-later">Pixel 4 and later</a></h4>
<p>The below commands need to only be run once to initially create a working environment.</p>
<pre>cd vendor/adevtool/ &amp;&amp; yarn install &amp;&amp; cd ../..
source script/envsetup.sh source script/envsetup.sh
m aapt2</pre> m aapt2</pre>
<p>Extract the vendor files corresponding to the matching release with <p>Extract the vendor files corresponding to the matching release with
<code>DEVICE</code> and <code>BUILD_ID</code> replaced with the <code>DEVICE</code> and <code>BUILD_ID</code> replaced with the
appropriate values:</p> appropriate values:</p>
<pre>vendor/adevtool/bin/run download vendor/adevtool/dl/ -d DEVICE -b BUILD_ID -t factory ota <pre>vendor/adevtool/bin/run download vendor/adevtool/dl/ -d DEVICE -b BUILD_ID -t factory ota
sudo vendor/adevtool/bin/run generate-all vendor/adevtool/config/DEVICE.yml -c vendor/state/DEVICE.json -s vendor/adevtool/dl/DEVICE-BUILD_ID-*.zip sudo vendor/adevtool/bin/run generate-all vendor/adevtool/config/DEVICE.yml -c vendor/state/DEVICE.json -s vendor/adevtool/dl/DEVICE-BUILD_ID-*.zip
sudo chown -R $(logname):$(logname) vendor/google_devices sudo chown -R $(logname):$(logname) vendor/google_devices
vendor/adevtool/bin/run ota-firmware vendor/adevtool/config/DEVICE.yml -f vendor/adevtool/dl/DEVICE-ota-BUILD_ID-*.zip</pre> vendor/adevtool/bin/run ota-firmware vendor/adevtool/config/DEVICE.yml -f vendor/adevtool/dl/DEVICE-ota-BUILD_ID-*.zip</pre>
</section>
</section> </section>
<section id="setting-up-the-os-build-environment"> <section id="setting-up-the-os-build-environment">