title: Building unofficial LineageOS port with lunch
body: <p>I'm working on an unofficial LOS 14.1 port for the Samsung Galaxy Ace 4 Neo SM-G316ML. I currently have the LOS and kernel sources in GitLab, <strong>not GitHub</strong>.</p>
  
  <ul>
  <li><a href="https://gitlab.com/Megver83/android_device_samsung_vivalto3mve3gltn" rel="nofollow noreferrer">android_device_samsung_vivalto3mve3gltn</a></li>
  <li><a href="https://gitlab.com/Megver83/android_kernel_samsung_vivalto3mve3gltn" rel="nofollow noreferrer">android_kernel_samsung_vivalto3mve3gltn</a></li>
  </ul>
  
  <p>I've created the local_manifest.xml file with the following:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;manifest&gt;
  
    &lt;remote  name="gitlab" 
             fetch="https://gitlab.com/"
             revision="cm-14.1" /&gt;
  
    &lt;project name="Megver83/android_device_samsung_vivalto3mve3gltn" path="device/samsung/vivalto3mve3gltn" remote="gitlab" /&gt;
    &lt;project name="Megver83/android_kernel_samsung_vivalto3mve3gltn" path="kernel/samsung/vivalto3mve3gltn" remote="gitlab" /&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>Which works pretty good (<code>repo sync</code> syncs well). Then (after doing <code>. build/envsetup.sh</code> of course) I added the luch combo:</p>
  
  <pre><code>$ add_lunch_combo lineage_vivalto3mve3gltn-userdebug
  </code></pre>
  
  <p>But here comes the ugly part:</p>
  
  <pre><code>$ lunch lineage_vivalto3mve3gltn-userdebug
  build/core/config.mk:676: COMMON_GLOBAL_C(PP)FLAGS changed
  build/core/config.mk:680: *** bailing....  Stop.
  Device vivalto3mve3gltn not found. Attempting to retrieve device repository from LineageOS Github (http://github.com/LineageOS).
  Repository for vivalto3mve3gltn not found in the LineageOS Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
  build/core/config.mk:676: COMMON_GLOBAL_C(PP)FLAGS changed
  build/core/config.mk:680: *** bailing....  Stop.
  build/core/config.mk:676: COMMON_GLOBAL_C(PP)FLAGS changed
  build/core/config.mk:680: *** bailing....  Stop.
  
  ** Don't have a product spec for: 'lineage_vivalto3mve3gltn'
  ** Do you have the right repo manifest?
  </code></pre>
  
  <p>Which I don't understand, since according to what I read <a href="https://web.archive.org/web/20161224202258/https://wiki.cyanogenmod.org/w/Envsetup_help#lunch" rel="nofollow noreferrer">here</a>, this function is used for compiling unofficial builds, but the error message says that the device was not found LineageOS's Github.</p>
  
  <p>So, what's the correct way for compiling an unofficial LOS build?<br>
  Thanks in advance</p>