aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@linaro.org>2021-11-25 18:16:14 +0100
committerMarek Vasut <marex@denx.de>2022-01-26 23:23:17 +0100
commit334a9b9d6aff4f0efa5eef16b8a9e204c7a6c906 (patch)
treeb642072a655e80f49817585b01b932101c6cc42f /lib/Makefile
parent07791e8d059037630703857bf5d13d079a3310bb (diff)
downloadu-boot-334a9b9d6aff4f0efa5eef16b8a9e204c7a6c906.zip
u-boot-334a9b9d6aff4f0efa5eef16b8a9e204c7a6c906.tar.gz
u-boot-334a9b9d6aff4f0efa5eef16b8a9e204c7a6c906.tar.bz2
lib/circbuf: Make circbuf selectable symbol
It is currenly only used from usbtty driver but make it properly selectable via Kconfig symbol, for future usage. Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 7950e84..f223892 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -29,7 +29,13 @@ ifneq ($(CONFIG_CHARSET),)
obj-y += charset.o
endif
endif
-obj-$(CONFIG_USB_TTY) += circbuf.o
+
+ifdef CONFIG_USB_TTY
+obj-y += circbuf.o
+else
+obj-$(CONFIG_CIRCBUF) += circbuf.o
+endif
+
obj-y += crc8.o
obj-y += crc16.o
obj-$(CONFIG_ERRNO_STR) += errno_str.o