<p>i am too ignorant to build for the device that i want.</p>
<p>i mention a dev from <a href="https://forum.xda-developers.com">xda</a>.</p>
<p>i am running <a href="https://www.debian.org/">debian</a> sid... also mention <a href="https://www.archlinux.org/">arch</a> and the importance of shownotes.</p>
<p>following <a href="https://wiki.lineageos.org/spyder_build.html">lineage</a> wiki, i merge the extra commands from a 14.1 device page.</p>
<p>install adb fastboot repo with package manager and you can ignore creating ~/bin, chmod command, and PATH update as these tools were installed by your package manager.</p>
<p>install list given on the wiki of packages...some will not exist... search to find out their names.</p>
<p>cd into the location for your project.</p>
<pre><code>$ mkdir -p ./android/system
$ cd android/system
$ repo init -u https://github.com/LineageOS/android.git -b cm-14.1
$ repo sync
$ repo sync
$ repo sync</code></pre>
<p>successful new 50G on my drive.</p>
<code>$ nano android/system/.repo/local_manifests/roomservice.xml</code>
<p>add the needed lines from the <a href="https://github.com/TheMuppets/manifests/blob/cm-14.1/muppets.xml">muppets</a> and ignore extracting proprietary blobs.</p>
<pre><code>$ repo sync
$ source build/envsetup.sh
$ breakfast spyder
$ export USE_CCACHE=1
$ prebuilts/misc/linux-x86/ccache/ccache -M 50G
$ export ANDROID_JACK_VM_ARGS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4G"
$ export WITH_SU=true
$ croot
$ brunch spyder</code></pre>
<p>ran 99% and errored... xmllint command not found.</p>
<p>search for and install libxml2-utils.</p>
<p>rerun build and get an out of memory error... go to bed... try tomorrow... shutdown machine.</p>
<p>sift through old information as things have changed regarding file names and such.</p>
<code>$ nano ~/.jack-server/config.properties</code>
<p>change jack.server.max-service=4 to 2</p>
<p>start from envsetup.sh again.</p>
<code>$ cd $OUT</code>
<p>boot phone to recovery and install</p>
<code>$ adb sideload ./lineage-14.1-20170202-UNOFFICIAL-spyder.zip</code>
<p>i remove some apps and install <a href="https://f-droid.org/">fdroid</a>.</p>