From: Loic Poulain <loic.poulain@linaro.org>
To: marex@denx.de
Cc: u-boot@lists.denx.de, lukma@denx.de,
Loic Poulain <loic.poulain@linaro.org>
Subject: [PATCH 1/3] lib/circbuf: Make circbuf selectable symbol
Date: Thu, 19 Aug 2021 13:13:04 +0200 [thread overview]
Message-ID: <1629371586-9349-1-git-send-email-loic.poulain@linaro.org> (raw)
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>
---
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
next reply other threads:[~2021-08-19 11:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 11:13 Loic Poulain [this message]
2021-08-19 11:13 ` [PATCH 2/3] usb: gadget: Add CDC ACM function Loic Poulain
2021-09-07 10:21 ` Loic Poulain
2021-09-27 19:55 ` Pali Rohár
2021-08-19 11:13 ` [PATCH 3/3] cmd: add acmconsole command Loic Poulain
2021-09-27 20:04 ` Pali Rohár
2021-11-16 19:05 ` Loic Poulain
2021-11-16 19:36 ` Pali Rohár
2021-11-22 10:33 ` Loic Poulain
2021-11-22 11:54 ` Pali Rohár
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1629371586-9349-1-git-send-email-loic.poulain@linaro.org \
--to=loic.poulain@linaro.org \
--cc=lukma@denx.de \
--cc=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).