summaryrefslogtreecommitdiff
path: root/common/build.mk
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2017-11-07 13:54:06 -0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-16 23:32:11 -0800
commit2590ce95385346b27366b4bce22e71d87c54eaa6 (patch)
tree6214a5d945ccdb27fa1423119eaf22944797cf36 /common/build.mk
parent26090a142b922dfe728a24241b60d47c50112b15 (diff)
downloadchrome-ec-2590ce95385346b27366b4bce22e71d87c54eaa6.tar.gz
common: Add software CTZ implementation when needeed
CTZ - Count Trailing Zero - is not implemented in hardware on cortex0 or nds32. Used in ST sensor drivers. BUG=none BRANCH=none TEST=compile Change-Id: I2d62fd60f05169189b24ba2a3308bec69ed9de9c Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/767609 Commit-Ready: Ely Vazquez <nadia198877@gmail.com> Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'common/build.mk')
-rw-r--r--common/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk
index 5e779a58c2..a792bca3ad 100644
--- a/common/build.mk
+++ b/common/build.mk
@@ -91,6 +91,7 @@ common-$(CONFIG_SHA1)+= sha1.o
common-$(CONFIG_SHA256)+=sha256.o
common-$(CONFIG_SMBUS)+= smbus.o
common-$(CONFIG_SOFTWARE_CLZ)+=clz.o
+common-$(CONFIG_SOFTWARE_CTZ)+=ctz.o
common-$(CONFIG_CMD_SPI_XFER)+=spi_commands.o
common-$(CONFIG_SPI_FLASH)+=spi_flash.o spi_flash_reg.o
common-$(CONFIG_SPI_FLASH_REGS)+=spi_flash_reg.o