<pre>hg clone https://hg.mozilla.org/projects/kaios</pre>
Bootstrap your build environment via mach
<pre>./mach bootstrap --application-choice desktopbrowser</pre>
Build using the <code>mozconfig-b2g-desktop</code> configuration (feel free to tweak it to suite your purposes):
<pre>env MOZCONFIG=mozconfig-b2g-desktop ./mach build</pre>