[HOWTO] Build /e/

howto

#42

I have tried your solution for my mido, but the compile fails.


#43

I am facing issue while building with docker. I am using device motog2 2014(titan). I am trying with branch eelo-0.1 it is giving error like vendor/cm not found it is aborting the build


#44

Hi @kannan have you taken the latest of the docker image step 2 here https://gitlab.e.foundation/e/wiki/en/wikis/build#2-get-our-docker-image


#45

Hi @Manoj , I have tried the same steps as mentioned in that link

after that i am using below for docker

sudo docker run
-v “/srv/e/src:/srv/src:delegated”
-v “/srv/e/zips:/srv/zips:delegated”
-v “/srv/e/logs:/srv/logs:delegated”
-v “/srv/e/ccache:/srv/ccache:delegated”
-e “BRANCH_NAME=eelo-0.1”
-e “DEVICE_LIST=titan”
-e “CUSTOM_PACKAGES=‘MuPDF GmsCore GsfProxy FakeStore com.google.android.maps.jar Telegram Signal Mail BlissLauncher BlissIconPack MozillaNlpBackend OpenWeatherMapWeatherProvider AccountManager MagicEarth OpenCamera eDrive Weather Notes Tasks NominatimNlpBackend Light DroidGuard OpenKeychain QKSMS Bromite BromiteWebView LibreOfficeViewer’”
-e “SIGNATURE_SPOOFING=restricted”
-e “OTA_URL=https://ota.ecloud.global/api”
-e “REPO=https://gitlab.e.foundation/e/os/android.git”
registry.gitlab.e.foundation:5000/e/os/docker-lineage-cicd:latest

I am getting error as below
Set cache size limit to 50.0 GB
/root/build.sh: line 41: DEVICE_LIST_EELO-0.1: bad substitution
/root/build.sh: line 76: DEVICE_LIST_EELO-0.1: bad substitution

If i change the line -e “BRANCH_NAME=eelo-0.1” \ to -e “BRANCH_NAME=eelo” . I know this is wrong. But tried with this and getting error as below

[Tue Mar 12 13:25:29 UTC 2019] Branch: eelo
[Tue Mar 12 13:25:29 UTC 2019] Devices: titan,
[Tue Mar 12 13:25:29 UTC 2019] (Re)initializing branch repository
[Tue Mar 12 13:26:51 UTC 2019] Copying ‘/srv/local_manifests/*.xml’ to ‘.repo/local_manifests/’
[Tue Mar 12 13:26:51 UTC 2019] Can’t find a matching branch on github.com/TheMuppets, using cm-14.1
[Tue Mar 12 13:26:51 UTC 2019] Syncing branch repository
sed: can’t read build/core/version_defaults.mk: No such file or directory
sed: can’t read build/core/version_defaults.mk: No such file or directory
/root/build.sh: line 139: [: : integer expression expected

[Tue Mar 12 13:26:51 UTC 2019] Missing “vendor/cm”, aborting

Can you help me in building for moto g2 for titan . Let me know I am trying the correct branch?


#46

Hi @kannan the error i see in the command is the branch name it should be v1-nougat or v1-oreo

  • v1-nougat instead of eelo-0.1
  • v1-oreo instead of eelo-0.2

#47

So v1-nought is correct branch for building moto g2 ttitan. Am i correct?


#48

Yes for any device to be built on nougat branch of /e/ it will be v1-nougat


#49

after switching to v1-nought branch also facing below issus

[Tue Mar 12 14:39:29 UTC 2019] Use branch cm-14.1 on github.com/TheMuppets
[Tue Mar 12 14:39:31 UTC 2019] Syncing branch repository
sed: can’t read build/core/version_defaults.mk: No such file or directory
sed: can’t read build/core/version_defaults.mk: No such file or directory
/root/build.sh: line 139: [: : integer expression expected

[Tue Mar 12 14:45:06 UTC 2019] Missing “vendor/cm”, aborting
kamal@ideapad:~/testeelo$


#50

You probably have an issue during sync. Could you please show to us your logs (logs/repo-<date>.log) please?


#51

Sorry for silly question , can you please mention the path for repo logs4


#52

It seems to be /srv/e/logs


#53

error: Exited sync due to fetch errors
libusb-compat
Fetching project platform/frameworks/compile/slang
Fetching project platform/external/sl4a
Skipped fetching project platform/frameworks/compile/slang (already have persistent ref)
Fetching project platform/external/lld
Skipped fetching project platform/external/sl4a (already have persistent ref)
Fetching project LineageOS/android_external_libvpx
Fetching project platform/external/messageformat
Fetching project platform/hardware/intel/audio_media
Fetching project LineageOS/android_external_elfutils
Fetching project e/os/android_packages_apps_Updater
Skipped fetching project platform/external/noto-fonts (already have persistent ref)


#54

I have one more query also ,how to build the local changes with docker?Is it possible to make local changes and build for customisation


#55

@Manoj or @rhunault. Any feedbacks for my issue


#56

I had a similar error-response when I had too little empty hard disk space. How much empty hard disk space do you have? 250gb should be enough (see https://gitlab.e.foundation/e/wiki/en/wikis/build).


#57

No more lines in the file?

About customisations, do what you want on your codebase, just avoid to run repo sync otherwise your modifications will be lost.


#58

@Markus I have 500gb empty harddisk


#59

Now I am targeting only build to pass once build passed my next goal is to try some modifications in animations and those things


#60

@rhunault, @Manoj, @Markus Thank you all for the support. Now my build for titan is passed. The issue is with repository sync .Once the sync completed properly the issue resolved.


#61

You are welcome :blush: