diff options
author | Gwendal Grignou <gwendal@chromium.org> | 2014-12-18 16:36:00 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-13 18:48:35 +0000 |
commit | f352aae8b42fafaf8b468f932a7fee214c2a7c45 (patch) | |
tree | 84b083cdbcd7085ca1043dfb93760fce93b84e95 /util/build.mk | |
parent | 2dc01cea426d4629f92e1cc061026d35307d4d10 (diff) | |
download | chrome-ec-f352aae8b42fafaf8b468f932a7fee214c2a7c45.tar.gz |
ec util: do not compile IO mapped memory related code for mips.
MIPS host CPU does not access IO registers using a separate address space.
Remove for support of LPC for this host architecture.
Confine x86 function to Intel Architecture only.
BRANCH=none
TEST=Compile: Test on ARM, MIPS and X86: using emerge... ec-utils.
BUG=chromium:443783
Change-Id: I9d4276ec3588037adfcff96e596bbe8be74f22fd
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/236687
Reviewed-by: Vic Yang <victoryang@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'util/build.mk')
-rw-r--r-- | util/build.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/build.mk b/util/build.mk index 00782face6..b389324ffa 100644 --- a/util/build.mk +++ b/util/build.mk @@ -10,11 +10,13 @@ host-util-bin=ectool lbplay stm32mon ec_sb_firmware_update lbcc build-util-bin=ec_uartd iteflash comm-objs=$(util-lock-objs:%=lock/%) comm-host.o comm-dev.o +ifneq ($(HOSTCC),mipsel-cros-linux-gnu-gcc) ifeq ($(CHIP),mec1322) comm-objs+=comm-mec1322.o else comm-objs+=comm-lpc.o endif +endif comm-objs+=comm-i2c.o ectool-objs=ectool.o ectool_keyscan.o misc_util.o ec_flash.o $(comm-objs) |