Chrome EC: Difference between revisions

From coreboot
Jump to navigation Jump to search
(Created page with "= Chrome EC = The Chrome EC is used in almost all Chrome OS devices, and an increasing number of accessories, like Google's Type C chargers. It is based on the Chromium EC co...")
 
Line 8: Line 8:


[http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly Getting started building EC images quickly]
[http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly Getting started building EC images quickly]
== Building outside of the ChromiumOS chroot ==
You will need:
* GNU Make 4.1 (older versions are having trouble with the Makefiles)
* an ARM cross compiler (I used coreboot's armv7-a-eabi- toolchain)
Let's go:
$ sudo aptitude install libftdi-dev
$ git clone https://chromium.googlesource.com/chromiumos/platform/ec
[..]
$ cd ec
$ CROSS_COMPILE=armv7-a-eabi- HOST_CROSS_COMPILE= make BOARD=chell
  HOSTCC  util/ectool
  HOSTCC  util/lbplay
  HOSTCC  util/stm32mon
  HOSTCC  util/ec_sb_firmware_update
  HOSTCC  util/lbcc
  In file included from include/common.h:11:0,
                from chip/mec1322/registers.h:11,
                from board/chell/board.h:130,
                from include/config.h:2063:
  .../4.9.2/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
  # include_next <stdint.h>
                          ^
  compilation terminated.
  [..]

Revision as of 00:04, 16 January 2016

Chrome EC

The Chrome EC is used in almost all Chrome OS devices, and an increasing number of accessories, like Google's Type C chargers. It is based on the Chromium EC code base.

Building the Chrome EC

Building in the ChromiumOS environment

Getting started building EC images quickly

Building outside of the ChromiumOS chroot

You will need:

  • GNU Make 4.1 (older versions are having trouble with the Makefiles)
  • an ARM cross compiler (I used coreboot's armv7-a-eabi- toolchain)

Let's go:

$ sudo aptitude install libftdi-dev
$ git clone https://chromium.googlesource.com/chromiumos/platform/ec
[..]
$ cd ec
$ CROSS_COMPILE=armv7-a-eabi- HOST_CROSS_COMPILE= make BOARD=chell
  HOSTCC  util/ectool
  HOSTCC  util/lbplay
  HOSTCC  util/stm32mon
  HOSTCC  util/ec_sb_firmware_update
  HOSTCC  util/lbcc
  In file included from include/common.h:11:0,
                from chip/mec1322/registers.h:11,
                from board/chell/board.h:130,
                from include/config.h:2063:
  .../4.9.2/include/stdint.h:9:26: fatal error: stdint.h: No such file or directory
  # include_next <stdint.h>
                         ^
  compilation terminated.
  [..]