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=-19.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,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 50067C49EA6 for ; Mon, 28 Jun 2021 01:50:10 +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 C62CF6197F for ; Mon, 28 Jun 2021 01:50:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C62CF6197F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 80CE882D83; Mon, 28 Jun 2021 03:49:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="RUZ6yvTa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2342882C9B; Mon, 28 Jun 2021 03:48:59 +0200 (CEST) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (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 D0AC08033E for ; Mon, 28 Jun 2021 03:48:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x32c.google.com with SMTP id n99-20020a9d206c0000b029045d4f996e62so17055781ota.4 for ; Sun, 27 Jun 2021 18:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tQZrWmtfmBktq2hRY8D2AiS8t9/emIH9XSKiAkYMF6U=; b=RUZ6yvTaMy1/UFGzfXrhF47H4SLzd0qQmI54Waj8BdXWgs0gZXQpzmJCKn0THhO/Sv iWnThivgPW5R/4l1e33A43PfUubuGwcRA9+wfoFCwoPad5P3U4m+5O1T3gXY1o3acICP cVYMzX0HRDOMQdRaE2CPXYwYl83xOMgj/ubjc= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=tQZrWmtfmBktq2hRY8D2AiS8t9/emIH9XSKiAkYMF6U=; b=nj5vTzfxndXqKmJ2CMeDRM3rbcaIocCAvol/45duNYcRrHnDmBRkPJWnkgfPwNQKPu jDCROhJzxge+a5QEQgs1U/zbgv0hUfqJ3fhMGDFZTaIxbebYHQQvjqZYnjFSnLt8dthZ E41EzzRSSOtUgyNku5mVdpmneUSvIyoGzt5LaJSh1bAXdw7HHEFlbuuc0w+TK4OB5gmU IXtcvtQVpSnQYeDUztpcrS2XqQ4Y/lkJw2Z7F61lUZ9g8RlFJAH65miDVXHNKB/p7rko mLDV/fi7StsCamkYUwJ2sh4PtZaZRxFnZTpQ1OLSk8wnqkei/v9piaQiN+o9fCQC6ST+ r/cg== X-Gm-Message-State: AOAM532Mqixc1Teyy+ZHRCsKhjD2DrHoUmwQFSLsdpEWjoh9FXFBD4GT oxNvIcUhGky0IBAPT6PQMQ7xDCT4jcNwDYF7 X-Google-Smtp-Source: ABdhPJy+awBWdUzhcKQxyAjwSQjeOa+bk6agnPmgl6vghEJyI2siRUmeEXQ26bSnONsCPFJCxlB6ow== X-Received: by 2002:a9d:6f88:: with SMTP id h8mr18505705otq.73.1624844930211; Sun, 27 Jun 2021 18:48:50 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id t21sm3140962otd.35.2021.06.27.18.48.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Jun 2021 18:48:49 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= , Heinrich Schuchardt , Ilias Apalodimas , Tom Rini , Simon Glass Subject: [PATCH 6/7] lib: Create a new Kconfig option for charset conversion Date: Sun, 27 Jun 2021 19:48:40 -0600 Message-Id: <20210627194836.6.I70d4b350a1d009c7cd793ac207b9dc934e53c135@changeid> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210628014841.501036-1-sjg@chromium.org> References: <20210628014841.501036-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Rather than looking at two KConfig options in the Makefile, create a new Kconfig option for compiling lib/charset.c Enable it for UFS also, which needs this support. Signed-off-by: Simon Glass --- lib/Kconfig | 8 ++++++++ lib/Makefile | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index ad0cd52edd8..e1415799965 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -40,6 +40,14 @@ config CC_OPTIMIZE_LIBS_FOR_SPEED If unsure, say N. +config CHARSET + bool + default y if UT_UNICODE || EFI_LOADER || UFS + help + Enables support for various conversions between different + character sets, such as between unicode representations and + different 'code pages'. + config DYNAMIC_CRC_TABLE bool "Enable Dynamic tables for CRC" help diff --git a/lib/Makefile b/lib/Makefile index 881034f4ae3..2d2b273ccef 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -25,7 +25,7 @@ obj-$(CONFIG_AES) += aes/ obj-$(CONFIG_$(SPL_TPL_)BINMAN_FDT) += binman.o ifndef API_BUILD -ifneq ($(CONFIG_UT_UNICODE)$(CONFIG_EFI_LOADER),) +ifneq ($(CONFIG_CHARSET),) obj-y += charset.o endif endif -- 2.32.0.93.g670b81a890-goog