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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 61F65C433EF for ; Mon, 14 Mar 2022 14:58:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 97A7E83B67; Mon, 14 Mar 2022 15:58:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com 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=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="Fb5HTOUj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F93E83BB6; Mon, 14 Mar 2022 15:58:09 +0100 (CET) Received: from FRA01-PR2-obe.outbound.protection.outlook.com (mail-pr2fra01on0612.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e18::612]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 0BC3383217 for ; Mon, 14 Mar 2022 15:58:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BcelNbmUsxGJMg0CV1mTDt+XcRH9PL3VWogRapVGbm5W39F1z5MNSg40bMQy7fGSKP64jWopysD3iYdirq2cST6K4QPtkqp3FyhsaFWCVwxmveqXO5mnUtfIfGhzLDjAgC5DfZRsEXvhzPBY34SQ1DQNwPYBPDF/ir2YNJiGFq7onO0GaqiGBJ2xiMQDNbRbzVBGuIYWqnexHxgZ+EUo+lZSp1RS08We7HnDAuIT9am+wHlbj1PVZZcI8bXDaBH56Pq4jb5LfsykNNkydZHLb05ofGaUphK5ZXPupsKETJG/j6pBPC43Pw6ENNWmpGKtVjRXREEY/oruQL6KtfM0cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RcQqtmEn68Nq5mwWM4FRtX+ig9g+ZgWazqUtuYt03dQ=; b=XS8CSrH6cvhLLmxLWS4kN5jVrSfHBO0CIcx7YsBF6X/aZO1127I6uoFshtwLn1LsZ7l7YppgBVecsCsOYucA1WDX0aryjoj6Lpzvc6iRSnC1q7zAXO0FX2rkFwZbPWAdQ7EDgTuviFRd2pKTwDhOOzRZpiQvUkPSDPN1U7qL7AQp7qViONEF5b7m/95qsuixBPhQXIyrTjIwCiTTci1peA60qR9j9QvLa/mkAGz32H+c0U5XmgHiAx/KfwhywMxASR/7JqIWHPyZm+gVnE7rBeWYuJ/XiVYCrBo0wjS1+JUXotL+J/bcq9zxrt9Bj+wQ7ssKVrjXrSNPPAfaCd2n0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=chromium.org smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RcQqtmEn68Nq5mwWM4FRtX+ig9g+ZgWazqUtuYt03dQ=; b=Fb5HTOUjgYhetmgS18UvGpALyEGF/cDr7VQ+LUO1lpiIJ70yeMEU3kqUgRpoCUNSdwn5129RSiXbKNNRh3eavATmD2KFw1zV/6tYWbPw+E9q7WfH24yN//HH07RjD9msRl9eYYsw1qcD41SJZinUI8jZni3tBLUXSy5LFmAFVPhZKixiEpOnDLf6TPmme0TLc0/fZzDrlterHhMYpMn2q7GkQy/g31CId+tP8oL+2so+dGNWE1Xr+GMgI7hvV18GXGZ1+OZoqcN3TTOPOxs8aJ0JkwEKmSJDI1mr5poOZO/9GtIyi8B888rTVqlvUa1Hy+UOI8z1GHLRyPqEUR7oIQ== Received: from MR2P264CA0049.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:31::13) by MRZP264MB2841.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:1e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22; Mon, 14 Mar 2022 14:58:01 +0000 Received: from MR2FRA01FT011.eop-fra01.prod.protection.outlook.com (2603:10a6:500:31:cafe::4d) by MR2P264CA0049.outlook.office365.com (2603:10a6:500:31::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.25 via Frontend Transport; Mon, 14 Mar 2022 14:58:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by MR2FRA01FT011.mail.protection.outlook.com (10.152.50.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5061.22 via Frontend Transport; Mon, 14 Mar 2022 14:58:01 +0000 Received: from localhost.localdomain (unknown [192.168.72.32]) by proxy.softathome.com (Postfix) with ESMTPSA id D30EA20065; Mon, 14 Mar 2022 15:58:00 +0100 (CET) From: Philippe Reynes To: sjg@chromium.org, rasmus.villemoes@prevas.dk Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH v7 04/16] lib: allow to build asn1 decoder and oid registry in SPL Date: Mon, 14 Mar 2022 15:57:33 +0100 Message-Id: <20220314145745.15249-5-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220314145745.15249-1-philippe.reynes@softathome.com> References: <20220314145745.15249-1-philippe.reynes@softathome.com> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 83409d6c-957e-4016-76b9-08da05cb08de X-MS-TrafficTypeDiagnostic: MRZP264MB2841:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DWat9GTkjQiYTic7DZhx5EfCoku6PT6JE1GB9XB0dHp/+61A/jdcDrY5ICbgAYsyr0wCealFQp0oFQ5Rewk9FuqgmI2i4x0znNOiDOPClSfXJV0lL8bcRtzX2GbqaUU3DeFTLoOd6HzKrt/xL8U35yJMTdYGByBWUkdEKuOyBdHhU2vPJ4nuwanFtjlqUiBuAHrlmyXH9I5muSlQqSFoaZCj4slkA6QaLJ8bNK03h8+ihpSiGRjXOligUfC5b0u4d8ZIWso/QYC9fdYiMyf4zCBHMy1qxI+SW0x5s+dg1w9+wO40ipqnQNWgWiTzthCiHpVIKDSIeX3As2Rku9iKmADhN85a/QiMeWnSTihKgu036ypigEKTIeYiDa97ecsG96k7MR0EQjgReE87++Nb9JuzgK05scxxx+df+s0urpWedTFpAq9OA9Ba5MYAKQMhigw527Dqws3X6OdXF3NmvdZypBmGS/aKi5Radr3BD86A33X1//v47+nru7HsUniB1StoPAfmmunE/14PWKqC8/dYz8Kay1YIJg/pupPA6qvilt1iDgXL5fx/vIVd6G5exK+ipzLYKMUfKgrNC2oyUGeNrd2YrgRwAJd9Ud7Io/ruYgvW+mzDOfZbyJi1Q0/sABg0rWRoPyI4nGAO+APQxWih449OxBsl0yBGDH8h4t0StFqThQw+M90MtxBU1BP44qFawHLSkeutvdyXvHmBV+/vwWkh7KHBrA6KjtG1hzjAm6rYXymWLAPJw9o/uEgVh1cLCfz8oQwjlTTrt62fFhT2zWSdoyTAoNVZMLM+SkshDvypCClUMu2hNIszs/xI2lzNUnuXsjiQ3RaQdYnY5g== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(2616005)(40460700003)(107886003)(82310400004)(86362001)(6666004)(5660300002)(8936002)(508600001)(44832011)(2906002)(81166007)(356005)(82960400001)(1076003)(36860700001)(83380400001)(26005)(426003)(336012)(6266002)(186003)(47076005)(6966003)(36756003)(4326008)(8676002)(316002)(70206006)(70586007)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2022 14:58:01.0862 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 83409d6c-957e-4016-76b9-08da05cb08de X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: MR2FRA01FT011.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MRZP264MB2841 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean This commit adds the options: - SPL_ASN1_DECODER - SPL_OID_REGISTRY Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- lib/Kconfig | 19 +++++++++++++++++++ lib/Makefile | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index e749826f22..effe735365 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -809,6 +809,16 @@ config ASN1_DECODER and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1). This option enables the support of the asn1 decoder. +config SPL_ASN1_DECODER + bool + help + ASN.1 (Abstract Syntax Notation One) is a standard interface + description language for defining data structures that can be + serialized and deserialized in a cross-platform way. It is + broadly used in telecommunications and computer networking, + and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1). + This option enables the support of the asn1 decoder in the SPL. + config OID_REGISTRY bool help @@ -818,6 +828,15 @@ config OID_REGISTRY unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier). Enable fast lookup object identifier registry. +config SPL_OID_REGISTRY + bool + help + In computing, object identifiers or OIDs are an identifier mechanism + standardized by the International Telecommunication Union (ITU) and + ISO/IEC for naming any object, concept, or "thing" with a globally + unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier). + Enable fast lookup object identifier registry in the SPL. + config SMBIOS_PARSER bool "SMBIOS parser" help diff --git a/lib/Makefile b/lib/Makefile index 11b03d1cbe..13e5d8f7a6 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -17,7 +17,6 @@ obj-$(CONFIG_OF_LIVE) += of_live.o obj-$(CONFIG_CMD_DHRYSTONE) += dhry/ obj-$(CONFIG_ARCH_AT91) += at91/ obj-$(CONFIG_OPTEE_LIB) += optee/ -obj-$(CONFIG_ASN1_DECODER) += asn1_decoder.o obj-y += crypto/ obj-$(CONFIG_AES) += aes.o @@ -74,6 +73,7 @@ obj-$(CONFIG_SHA1) += sha1.o obj-$(CONFIG_SHA256) += sha256.o obj-$(CONFIG_SHA512) += sha512.o obj-$(CONFIG_CRYPT_PW) += crypt/ +obj-$(CONFIG_$(SPL_)ASN1_DECODER) += asn1_decoder.o obj-$(CONFIG_$(SPL_)ZLIB) += zlib/ obj-$(CONFIG_$(SPL_)ZSTD) += zstd/ @@ -135,9 +135,9 @@ obj-$(CONFIG_$(SPL_TPL_)STRTO) += strto.o else # Main U-Boot always uses the full printf support obj-y += vsprintf.o strto.o -obj-$(CONFIG_OID_REGISTRY) += oid_registry.o obj-$(CONFIG_SSCANF) += sscanf.o endif +obj-$(CONFIG_$(SPL_)OID_REGISTRY) += oid_registry.o obj-y += abuf.o obj-y += date.o -- 2.17.1