breadcrumbs: Chromium Embedded Controller (EC) Development > chromium_link: Chromium chromium_os_link: Chromium OS home_link: Home page_name: getting-started-building-ec-images-quickly title: Get Started Building EC Images (Quickly) title_hdr: |
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:
[1] if you want to build the ‘futility’ host tool outside the normal Chrome OS chroot self-contained environment, you can try the following:
sudo apt-get install uuid-dev liblzma-dev libyaml-dev libssl-dev
git clone https://chromium.googlesource.com/chromiumos/platform/vboot_reference
cd vboot_reference ; make
sudo make install
export PATH="${PATH}:/usr/local/bin"