Get Started Building EC Images (Quickly)

The Chromium OS Developer Guide and EC Development Guide walk through the steps needed to fetch and build Chromium OS source. These steps can be followed to retrieve and build EC source as well. On the other hand, if your sole interest is building an EC image, the general developer guide contains some extra unneeded steps.

The fastest possible way to build an EC image is to skip the Chromium OS chroot install entirely. The following steps have been tested on an Ubuntu 15.10 (Wily Werewolf) 64-bit host machine. Other distros / versions may be used, but toolchain incompatibilities may require extra debug.

Most boards are buildable, but some will fail due to dependencies on external binaries (such as futility [1]). Also, some related tools (such as flash_ec and servod) must be run from the Chromium OS chroot. Here is a set of steps to setup a minimal development environment to build EC images from the Chromium OS chroot: