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.1 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 4226DC07E95 for ; Fri, 2 Jul 2021 19:07:25 +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 6776F6141C for ; Fri, 2 Jul 2021 19:07:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6776F6141C 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 9F59582BB0; Fri, 2 Jul 2021 21:06:54 +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="h9wCC1C+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E6953829E4; Fri, 2 Jul 2021 21:06:43 +0200 (CEST) Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) (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 105F3829A6 for ; Fri, 2 Jul 2021 21:06:41 +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-x336.google.com with SMTP id 59-20020a9d0ac10000b0290462f0ab0800so11011349otq.11 for ; Fri, 02 Jul 2021 12:06:40 -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=16X8eHXRFeTX5p/Jp5IJ8/ra4GcabgW3rzwE6SAfLPw=; b=h9wCC1C+2yrnVacOAy3eFJvj1deGeg8YRmjC4TnIjTZUZUlvhmi4byLZ+p2revK1EQ f3eJvbyLQUZZW1jTl+4Rs1Kc1qsqB+79gtN8GC7aqdh5brhPAcNcjtdmociA4WdrCOrF 7g4WyyxcxU/tgBlG32Ke5LnX9+2VZzAZlFHyo= 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=16X8eHXRFeTX5p/Jp5IJ8/ra4GcabgW3rzwE6SAfLPw=; b=iTG2hsjdcXs2sYRH9P1lBi46/wlkqoOU78sFb95FTfop5hVBoNnx1MxeH1ItFK7syu 3Y/mZrv+sx90L5lw4ptILiLZkTij6TJts/I8Pl9RwchszH5BPRP3Qx9L0onU5RMX+qAA v+GjxGD+KDLf61quDpH6TmY6Xi6EJLStZGA2aALfMX131jrq1Mfqb2xOcmYzbCMC+umN 4cSf6ynFXhGxHwP5ELYrN/5phAqc/RMJTLsM7+BHfV+1K1KIPIcMoLDNep4ndDui6VQm aBWHDw5EitAKG6yxDtC2B3OWlyoVEUEP9qXYqR9NIatnQiHAqPOdIG3jmEuPT9R9cfGT HDag== X-Gm-Message-State: AOAM531jzPMBugLQOckTK8RIPcqtn7q4h+pYapwMXP86pbnCLo6z06gF 8KxAPwRHH07hk5AyiyJrYhZy6SiTn7MUTjc3 X-Google-Smtp-Source: ABdhPJyzhri6xmo/bXwwmr5AvO8khBuviyt62NJWsRV7ksgLGk57fOiPXw/fGBJdJcln1Te+w9wBWQ== X-Received: by 2002:a9d:578b:: with SMTP id q11mr623516oth.211.1625252799580; Fri, 02 Jul 2021 12:06:39 -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 v8sm772625oth.69.2021.07.02.12.06.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 12:06:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Ilias Apalodimas , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Mark Kettenis , Heinrich Schuchardt , Simon Glass Subject: [PATCH v2 6/9] lib: Create a new Kconfig option for charset conversion Date: Fri, 2 Jul 2021 12:36:17 -0600 Message-Id: <20210702123614.v2.6.I70d4b350a1d009c7cd793ac207b9dc934e53c135@changeid> X-Mailer: git-send-email 2.32.0.93.g670b81a890-goog In-Reply-To: <20210702183620.1542680-1-sjg@chromium.org> References: <20210702183620.1542680-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 Reviewed-by: Heinrich Schuchardt --- (no changes since v1) 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