From f55a7e5774447dd1dcdb03ce4cc2d62f613b0eda Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 16 Apr 2015 01:31:20 -0400 Subject: clean up x86 i/o checks Rather than hardcode a specific mips toolchain, do a build-time test to see if the target is x86 based. BUG=chromium:443783 TEST=link still includes comm-lpc TEST=arm64 omits comm-lpc BRANCH=none Change-Id: I0253df6cbe89bee231ec643dd6bb3498eb040708 Reviewed-on: https://chromium-review.googlesource.com/265793 Reviewed-by: Gwendal Grignou Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- util/comm-lpc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/comm-lpc.c') diff --git a/util/comm-lpc.c b/util/comm-lpc.c index e7c5a25b55..54f16b3ffc 100644 --- a/util/comm-lpc.c +++ b/util/comm-lpc.c @@ -3,6 +3,9 @@ * found in the LICENSE file. */ +/* The I/O asm funcs exist only on x86. */ +#if defined(__i386__) || defined(__x86_64__) + #include #include #include @@ -309,3 +312,5 @@ int comm_init_lpc(void) ec_readmem = ec_readmem_lpc; return 0; } + +#endif -- cgit v1.2.1