Building AOSP RomS vs CM based

Rondeau79

Senior Member
Jun 19, 2016
305
286
63
I have an inquiry on build times based on the amount of source code needed to create a zip file. These time increments are based on building with an 8GB Ram 1Terabyte drive on a Windows 10 64 bit platform running Ubuntu 14 Trusty ISO VM. Obviously a USB attached external hard drive has some lag in performance. Typically based on my system let's say CyanogenMod 12.1 takes about 36 hours to compile. Would SlimRom 5.1 take less time due to a smaller amount of source code to compile. Is there a way to speed up Slim, AOSP, Paranoid builds?
 
  • Like
Reactions: duttyend

espionage724

Senior Member
Feb 8, 2010
2,747
678
0
realmofespionage.xyz
I imagine anything adding additional functionality on-top of AOSP (like LineageOS) would take longer to compile, but not too significantly.

Best way to speed up compiles is to have (or upgrade) a good CPU with multiple cores. My laptop with a i7-6700HQ takes about an hour to compile LineageOS (a little less with cm14.1, and a little more with lineage-15.0) with bare-metal Fedora Workstation 26.
 

luciusfox

Senior Member
Aug 10, 2017
251
73
0
36 hours? What CPU is that on, an 80286? Oh wait, you have the MSVirus and running the good stuff in a VM.

Try wiping the virus and installing Linux on the bare metal.
On an 8 core AMD Vishara (this CPU is several years old), I can run an AOSP build in ~20 minutes, and that is without ccache.
 

Rondeau79

Senior Member
Jun 19, 2016
305
286
63
36 hours? What CPU is that on, an 80286? Oh wait, you have the MSVirus and running the good stuff in a VM.

Try wiping the virus and installing Linux on the bare metal.
On an 8 core AMD Vishara (this CPU is several years old), I can run an AOSP build in ~20 minutes, and that is without ccache.
My laptop is only a dual core. I am thinking about switching to a dual boot situation. I have a lot of personal stuff on Windows. Yes Windows isn't the greatest platform to work with.
 

wrsg

Senior Member
Apr 23, 2008
1,018
143
63
in a cage
36 hours? What CPU is that on, an 80286? Oh wait, you have the MSVirus and running the good stuff in a VM.

Try wiping the virus and installing Linux on the bare metal.
On an 8 core AMD Vishara (this CPU is several years old), I can run an AOSP build in ~20 minutes, and that is without ccache.
How much RAM do you have and how many GBs does the aosp code take up?
 

luciusfox

Senior Member
Aug 10, 2017
251
73
0
How much RAM do you have and how many GBs does the aosp code take up?
32 GB RAM here, the full AOSP directory WITH a build for a HiKey 960 is 136 GB.
The .repo/ subdirectory is 34 GB, and the out/ is 77 GB, so the actual AOSP code is about 25 GB.
 

wrsg

Senior Member
Apr 23, 2008
1,018
143
63
in a cage
32 GB RAM here, the full AOSP directory WITH a build for a HiKey 960 is 136 GB.
The .repo/ subdirectory is 34 GB, and the out/ is 77 GB, so the actual AOSP code is about 25 GB.
I guess you have ccache + compression enabled?
Also is there a specific sub-forum on XDA (or elsewhere) for this sort of discussion?