From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37D4CC4338F for ; Thu, 19 Aug 2021 11:02:48 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 03F576109E for ; Thu, 19 Aug 2021 11:02:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 03F576109E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6E93D82DB2; Thu, 19 Aug 2021 13:02:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="sq92RYil"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6DCAF82E1B; Thu, 19 Aug 2021 13:02:41 +0200 (CEST) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 68C5282C39 for ; Thu, 19 Aug 2021 13:02:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=loic.poulain@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id w21-20020a7bc1150000b02902e69ba66ce6so3797819wmi.1 for ; Thu, 19 Aug 2021 04:02:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=1GxHIdTJ9bLTkBzyGG12Iq5o9eH+I3P3+ODLSSyLBhg=; b=sq92RYillYM4bkx0zwc91On4LL15/pA3VayU67hX+JqAeLkJXHEi2Nsh2VG2s5b4LA frrLbRSOWlsnEq23vOFuiY977iCZOM/LD/34Rt3riUxSQNg4TeuXI9AlVsg9NtT7E2+X AQ4SzwuhCbc+bV0U8VYVlvVpiNI9AahKbhLl1pmdPSlSUkRclqZXBOrrHr+rMJt7QTJp R6XFa1kCzsDXINuqgwmubh+w6uHtnjh7XhVMQyr9KMTsYSQputHlColZeRrGvfJz36tY 8clqCeKjxi976QcQI/62P/0Vro5WbXc1b9qXiqhJyKOCY6d7tJhxcLMFDkGJ/z68S00U liWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1GxHIdTJ9bLTkBzyGG12Iq5o9eH+I3P3+ODLSSyLBhg=; b=rMm1vP9eC5SR4PciyQu2aOwR6iaOLd4eAsJG4g2fpE3spZ/ES+1UOuPp50mplq8oah y/+glPQ9EgvvuOCsxwPrx11jqLxdmHb19m4+EER7q1w3T6sZo7EnZmC9PEIgS06nRmnC uwbIw9plV2yTRU2ZPNN4xU8shvhQnleK3Y+ziG8SWLUpCs66vapq6RJgFyLrTETRAo/E ZJpMzjUssNqvOy/2hDZcg+qIJRb6obgRQ2KziHb1DiS7nIYff1XKFIbEOs6WyG5kb2uR oiAezKgacLVlJkjHrK4W1EmaM36f5r0x82F8xnc/stiXzpr+fvRApZ72MRYo5cMzGngO QFFA== X-Gm-Message-State: AOAM530j83YiBrNdYzj4SnXgl3PV/zc27qLKjC++kcSKp3q4qZjwv/80 q+Vg8Rmw25ZSPOuUR6kt8i7tKw== X-Google-Smtp-Source: ABdhPJy5vFGcgFEXsf3HfPgxmc8VcmXACxJKyUkVUz6nR7e1fmOSPjlxy0yJHzChipjuFElUD7OR3A== X-Received: by 2002:a1c:10e:: with SMTP id 14mr13139775wmb.93.1629370956896; Thu, 19 Aug 2021 04:02:36 -0700 (PDT) Received: from lpoulain-ThinkPad-T470p.passengers.t31.sncf ([109.190.253.13]) by smtp.gmail.com with ESMTPSA id d8sm2705696wrv.20.2021.08.19.04.02.30 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Aug 2021 04:02:36 -0700 (PDT) From: Loic Poulain To: marex@denx.de Cc: u-boot@lists.denx.de, lukma@denx.de, Loic Poulain Subject: [PATCH 1/3] lib/circbuf: Make circbuf selectable symbol Date: Thu, 19 Aug 2021 13:13:04 +0200 Message-Id: <1629371586-9349-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean It is currenly only used from usbtty driver but make it properly selectable via Kconfig symbol, for future usage. Signed-off-by: Loic Poulain --- 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