android build take eons

41 views
Skip to first unread message

Imx6dev Kit

unread,
May 4, 2020, 3:19:43 PM5/4/20
to Android Building
I got my AOSP build to work but it took maybe 8 hours ... i cannot imagine how anyone can develop anything this way .. if i want to include a new library, or write a new driver, or change something minimal, and recompile, isn't there a way to do it quicker?  What is the recommended way to build after making a minor change?

Glenn Kasten

unread,
May 4, 2020, 3:29:40 PM5/4/20
to Android Building
The listed build hardware requirements are the bare minimum.
The more RAM and CPUs you have, the better.
And be sure to use make -k to take advantage of all your CPUs.

Dan Willemsen

unread,
May 4, 2020, 3:39:41 PM5/4/20
to Android Building
Yep, this greatly depends on your machine and which target you're building -- there are builds and configurations that can do a full clean build in ~30 minutes, but that's a simpler config and a high-end machine.

For the workflow:

if i want to include a new library, or write a new driver, or change something minimal, and recompile, isn't there a way to do it quicker?

You should only need to do the full clean build once, after that incremental builds should be much much shorter (our goals are generally <<1min, but that significantly depends on what you change, and your machine). You should always try to use incremental builds.

And if you know that you only want to rebuild a single partition / don't need images / etc, you can ask for `m vendorimage`/`m sync`/etc, but what works there greatly depends on the types of changes you're making, and what you need out of the build.
 
 And be sure to use make -k to take advantage of all your CPUs.

'-k' is keep going, you're thinking of '-j', but that's been the default for a while now.

- Dan

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to the Google Groups "Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-buildi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/5192f89b-c40e-4bba-969c-ec6f012d8324%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages