All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] lib/circbuf: Make circbuf selectable symbol
@ 2021-11-22 12:30 Loic Poulain
  2021-11-22 12:30 ` [PATCH v2 2/2] usb: gadget: Add CDC ACM function Loic Poulain
  2021-11-22 12:50 ` [PATCH v2 1/2] lib/circbuf: Make circbuf selectable symbol Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Loic Poulain @ 2021-11-22 12:30 UTC (permalink / raw)
  To: marex, pali; +Cc: lukma, u-boot, Loic Poulain

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>
---
 v2: no change

 lib/Kconfig  | 3 +++
 lib/Makefile | 8 +++++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index c535147..1bd54d8 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -290,6 +290,9 @@ config TRACE_EARLY_ADDR
 	  the size is too small then the message which says the amount of early
 	  data being coped will the the same as the
 
+config CIRCBUF
+        bool
+
 source lib/dhry/Kconfig
 
 menu "Security support"
diff --git a/lib/Makefile b/lib/Makefile
index 8ba745f..4daeee2 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
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-22 16:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-22 12:30 [PATCH v2 1/2] lib/circbuf: Make circbuf selectable symbol Loic Poulain
2021-11-22 12:30 ` [PATCH v2 2/2] usb: gadget: Add CDC ACM function Loic Poulain
2021-11-22 15:48   ` Pali Rohár
2021-11-22 16:31     ` Loic Poulain
2021-11-22 12:50 ` [PATCH v2 1/2] lib/circbuf: Make circbuf selectable symbol Wolfgang Denk
2021-11-22 16:47   ` Loic Poulain

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.