Welcome to Our Build Setup Page!

This is my alteration of another that can be found on XDA at:  OpenSuSE Build Environment   Now then, the reason I have created another is... I want to have it forever and if the other Web Page goes away I will still have mine. Besides, theirs was for an older version and I am trying to set things up for the newer version(s). I will copy and paste from the XDA version and change it to fit my needs. ... I already had most of this installed from my ReZounddays.

Jump to  Build 14.1   or  Build 15.1  

   

  The Build SetUp from XDA

Default Establishing Android Build Enviroment under openSUSE Leap

Tutorial how set up Android Build Enviroment on openSUSE Leap

If this help's u hit Thanks! -- Over on  XDA  

0) Make sure your repo's are up to date:
  sudo zypper refresh
1) If you don't have a fresh installation of openSUSE Leap first you need remove all Java installation, many people might have the wrong version of Java installed.
Code:
  sudo zypper remove openjdk-* icedtea-* icedtea6-*
Follow the on-screen instructions to remove any stray Java versions. Otherwise, move on to the next step.

2) Install the main build tools with this command:
Code:
  sudo zypper install bison curl flex git gnupg gperf libesd-devel liblz4-1_4 ncurses-devel libSDL-devel python-wxWi dgets-devel libxml2-2 libxml2-tools lzop java-1.7.0-openjdk java-1.7.0-openjdk-devel schedtool squashfs libxslt1 zip zlib-devel make gcc-c++

Appendx A to 2:
To setup maven which is needed for building:

1. Download maven:
  wget http://mirrors.ibiblio.org/apache/ma...3.9-bin.tar.gz

2. Extract the file
  tar -xvzf apache-maven-3.3.9-bin.tar.gz /tmp

3. Move to /opt/ folder
  sudo mv /tmp/apache-maven-3.3.9 /opt/

4. Update environment, cd to home directory
  cd ~
  nano .bashrc


5. Append the path
  export PATH=$PATH:/opt/apache-maven-3.3.9/bin

6. Reload
  source .bashrc

7. Verify maven
  mvn --version

Appendix B to 2:
For 64-bit system also install:
  sudo zypper install glibc-devel-32bit ncurses-devel-32bit readline-devel-32bit libz1-32bit

>> build-essential << is an Ubuntu meta package which in openSUSE is devel_basis
And u can install it by command
  sudo zypper install --type pattern devel_basis
Select y to what it is offering to install.
  To see if it is already installed use:
  sudo zypper se -t pattern devel

3) Repo install...
  mkdir ~/bin && curl http://commondatastorage.googleapis....downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo

Appendix to 3:
To fix repo sync u will need install this:
  sudo zypper install libpth20-32bit
maybe this to:
  sudo zypper install openjdk-8-devel

4) Use your favorite text editor to open ~/.bashrc - I like nano:
Code:
  nano ~/.bashrc

By default nano is not installed so install it by command:
  sudo zypper install nano

5) At the very bottom (use the Page Down key) paste this code to a new line:
Code:
  export PATH=~/bin:$PATH
  export USE_CCACHE=1


6) Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
  source ~/.bashrc

7) In the terminal, navigate to where you would like to download the Android source code. The commands below will make it in your home folder.
Code:
  mkdir ~/android
  cd android
  mkdir lineage
  cd lineage


8) Now you're going to initialize the repo. This is where you decide the flavor of Android you want to build, i.e. AOKP, CyanogenMod, AOSP etc.

For the purposes of this tutorial, here's the command for Cyanogenmod 13 (Marshmallow) :
Code:
  repo init -u https://github.com/CyanogenMod/android.git -b cm-13.0
Well I am changing it to LineageOS 14.1
Code:
  repo init -u https://github.com/CyanogenMod/android.git -b cm-14.1
And then to LineageOS 15.1
Code:
  repo init -u git://github.com/LineageOS/android.git -b lineage-15.1
9) Time to get the source, many gigabytes of downloading await.
Don't worry, it's automated. It's the last one! And it is the same for all 3.
Code:
  repo sync
Check back periodically every hour or so. It all depends on how fast your connection is.
When finished jump to  Build 14.1   or  Build 15.1  
Fetching projects: 98% (636/648) error: Cannot fetch LineageOS/android_external_libdrm (GitError: --force-sync not enabled; cannot overwrite a local work tree. If you're comfortable with the possibility of losing the work tree's git metadata, use `repo sync --force-sync external/libdrm` to proceed.)
From _litz: January 10th, 2014
 it's a matter of "what does what" ...

all repo init does, is pull down manifest.xml and start seeding the information in the .repo directory.

repo sync is what actually goes to each and every project listed in either manifest.xml or 
local_manifest.xml, and pulls the actual code down, project by project by project. The reason you use 
"-j 8" or "-j 16" is to allow it to pull multiple projects in parallel, thus speeding up the process.

Remember:
manifest.xml       = all of the CM projects, android OS projects, etc.
local_manifest.xml = all of the device specific stuff that makes a Rezound a Rezound 
                            (and makes android actually work on a Rezound)

That's it! Everything should be ready to go.

   

  The Build & Install 14.1

 WiKi PME Build  

  1. After "repo sync"
  2. $ cd ~/android/lineage
  3. $ . build/envsetup.sh
  4. $ breakfast pme
  5. $ brunch pme
June 30th, 2018  
Package Complete: /home/ctaylor/android/lineage/out/target/product/pme/lineage-14.1-20180630-UNOFFICIAL-pme.zip 
make: Leaving directory '/home/ctaylor/android/lineage'

#### make completed successfully (01:25:34 (hh:mm:ss)) ####

This completes my first successful build of Nougat for my HTC M10. After 3 years of absense I have finally compiled one again.


 July 7th, 2018  Finally installing 14.1. ... And later installed 15.1.

  1. Reboot to TWRP Recovery.
  2. Select Wipe.
       Swip to factory Reset.
       Press Back
    Select Advanced wipe.
    • Dalvik / ART Cache
    • System
    • Cache
    • Data
    Swipe to wipe
    Press back
    Press back arrow
  3. Select Format Data...IF you don't you will get asked for a password on phone startup!!
       Answer yes
    Press Back
    Press Back Arrow
    Press Back Arrow
  4. Back at Menu select Install
  5. Select Up_level
  6. Select external_sd
  7. Select LineageOS file
       Swipe to Install
       Select Back Arrow
  8. At finish Select Wipe cache/dalvik
    Swipe to wipe
    select Back
    Press Back arrow
    Press Back arrow
  9. Back at Menu select Install
  10. Select external_sd
  11. Select open GAPPS
  12. Swipe to Install
    If you selected Open GAPPS with AROMA then answer the questions. Hopefully we selected the correct ones to ignore. IF not we will be here again and just install all of them!!
  13. After GAPPS installs you ge a "Finish!, tap it. Tap "Reboot System" on the next screen. It takes a long time to boot up...AND IF YOU GET INTERRUPTED AND IT BLACKS OUT... IT WON'T COME BACK!!!!
  14. FINALLY... Playing with the buttons got me what seemed to be a power off. During this play the bottom nav lights did a lot of flashing. Felt the phone vibrate and then released the power button. Then tried the Vol Down/Power restart and we got back to the Download Mode.
    Selected Reboot to bootloader.
    In bootloader selected Reboot to Recovery.
    In TWRP Menu we selected Reboot.
    In Reboot we selected System.
    Taking long time again -but- this time I am NOT leaving.
    Because of the "Lock Up" I did not take the time to enter all the steps that I followed. But they were the same old things and nothing really new.
  15. July 14th, 2018 11:39am -- LineageOS 15.1 is installed -and- apparently working on my HTC M10.

 root it  Well I couldn't!! Supposed to be able to go into the settings after enabling the Developer option and set it. Mine was grayed out! Don't like the speed or the ops. Going back to Original HTC 7.0.

Refer:  Oreo Update Problems  

   

  The Build & Install 15.1

Now this is essentially the same as above. Could have left it at that -except- the "breakfast pme" did not work. I have contacted a person who has accomplished this to see if I can get the info from him but have not heard anything yet.
Refer:  LineageOS 15.1 by fagyi  

  1. After "repo sync"
  2. $ cd ~/android/lineage
  3. $ . build/envsetup.sh
  4. $ breakfast pme
  5. $ brunch pme

 July 11th, 2018   I kindly got a reply quickly.
Since los 15.1 not official yet, you need also syncing my repo or clone it to the right place. Should work if you just downloading my device / kernel / vendor tree and place it the right place in the source

Like device
device/htc/pme

Kernel
kernel/htc/msm8996 ( use my eas repo )Energy Aware Scheduling

Vendor
vendor/htc/pme

After that brunch pme should build the rom instead of breakfast.

Alllllrighty now, we deciphered the above message and then tried our build. As I said in the 14.1 build it has been over three years since I have done any of this.

 July 14th, 2018  Well, I'll stick with my excuse. Been a long time and, like in the beginning with the ReZound, things did NOT go well. Could NOT get a successful compile on LineageOS 15.1.
Today I am going to install "Fagyi's" version so I can see how it works. If it isn't any better than the !OTA 8.0" one then I am going back to Nougat. Following the same procedures as the 14.1 install... Main diff is: I went back to Nougat stock and took an OTA 8.0 first. Then installed this 8.1 over it.

   

  Blend & DCarter Recognition

Blend is a free, fully standards-compliant CSS template designed by Free CSS Templates. This free template is released under a Creative Commons Attributions 2.5 license, so you're pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Have fun with it :)

This template is also available as a WordPress theme at Free WordPress Themes.

Also need to mention dcarter. Part of the menuing came from them.