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 20259C433F5 for ; Mon, 28 Mar 2022 20:58:07 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 43A8E83F93; Mon, 28 Mar 2022 22:57:39 +0200 (CEST) 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="nOJ1hnqZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 201F383F9E; Mon, 28 Mar 2022 22:57:21 +0200 (CEST) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-mr2fra01on0608.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e19::608]) (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 2A82483CE9 for ; Mon, 28 Mar 2022 22:57:15 +0200 (CEST) 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=gpP0RRBko7y3Y0DNir1OWpA2A+L6EaRbd8QaWNuqAOCJPu6CdvAbPlrKssPpBhdhQWM3xf2IjuxJjg8IKcLU+QyZZzrBdt7ScoGj5+0ErBb36EFlNtAnjr7RuZuG6wYFHG2kExj0us6VU/DX3WwDnGOZ4j6TL3soZqHVTwhYW6zIegKUH3nry2wF5opfSg1iLd8XmKR/eH2P68VgCby1Q0tSUAJ0TgXe5AllluEnBfUIMavDXIFRZSOmUy0Xi7QMzh17ETkKp43e7RG8b3dYJH2TKOodP9Y1cnHrMx3TTmdQYPnXMezQ1Linry336ywJin8thwvIquucMJrSBPE4qw== 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=fbkRJaPJR9iiHM8o72VOhbXC4Sb2FexhGRwqa57wkxw=; b=Ro3OQiZptuz8+OVaa8C2FNMRLNq2/kTvXCJypuXK/nSGi8o0zFNaXF9LHIsX5wvajLnAAtE4MD0o4LR2PvvibvjxjQZy+hGIczlz4Ea7O/VseHOxM4t6qrrVm/A+7HGUNEh9QGdQ4+rlU9HHdu1I0f89gVOI/EsYFmToHwi3oxCPE3QxaZ1KuD0rI3xsgqE8WbhawdHoa5rrgTZCPgsPpwZLFXTQzzu6in83TYMJswI0yu7rGoMWmbJA8tHmbDTotAghPdQ/VH8UWs73ORrWpKZsyRlCqxzYFjF5g7EF/omS6Dnv1ibO3R5sMpLDhfrVuL3OxBlsvQz9Ik9mNuy4ow== 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=fbkRJaPJR9iiHM8o72VOhbXC4Sb2FexhGRwqa57wkxw=; b=nOJ1hnqZyoPIVyqhyW8RE/vJXyto8gkxScFZhEzc1riBix+eCAy8H6LkaoQwwTaEjakQD/91Y3A5nTp9/cDx4hbFoFcOHnuBkm5lsUj06INndOO7QycnCizI38N6McGo1DHObvd8DYg7TfEQdmszS8F+9RZkesneZSm4JMUrlqkP4X7f3qnYyDlSr9CEBCY3Bh4nUWpcpZx7e3uXQYIYDDZTs4U8CrjOdl4vIaBC0nruKkYbViQdYhLIp+8gWkjEfPIZS+fj7ZjvkOePchWPsAUI1MO1s6K71Yj4+YSZvY2JMASiCX6o+Yq/YXpaka43hTxdHjGaUWOANqme10HMuA== Received: from AM5PR0601CA0048.eurprd06.prod.outlook.com (2603:10a6:203:68::34) by PAZP264MB3952.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:18a::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.17; Mon, 28 Mar 2022 20:57:13 +0000 Received: from PR2FRA01FT003.eop-fra01.prod.protection.outlook.com (2603:10a6:203:68:cafe::31) by AM5PR0601CA0048.outlook.office365.com (2603:10a6:203:68::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.18 via Frontend Transport; Mon, 28 Mar 2022 20:57:13 +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 PR2FRA01FT003.mail.protection.outlook.com (10.152.48.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.17 via Frontend Transport; Mon, 28 Mar 2022 20:57:12 +0000 Received: from localhost.localdomain (unknown [192.168.72.32]) by proxy.softathome.com (Postfix) with ESMTPSA id CE69020084; Mon, 28 Mar 2022 22:57:11 +0200 (CEST) From: Philippe Reynes To: sjg@chromium.org, rasmus.villemoes@prevas.dk Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH v8 04/15] lib: allow to build asn1 decoder and oid registry in SPL Date: Mon, 28 Mar 2022 22:56:56 +0200 Message-Id: <20220328205707.348270-5-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220328205707.348270-1-philippe.reynes@softathome.com> References: <20220328205707.348270-1-philippe.reynes@softathome.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 87fa3878-978d-401d-947a-08da10fd8833 X-MS-TrafficTypeDiagnostic: PAZP264MB3952: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: 3PzQhNjlOYrU7zKLZyMuD7wCxAFaes8xL+HPieusJdWO9JUWTpUixHp9diBs0jFJ3G6O1hMfCuIPIbfer4IfeXMHpwPCMsZJOoR0c+KWpDKG7IndNx9u6/12COkOA0vjbbP8RBfVfuvJapZLLD5huTH3Kx9/rZTtCaZuTLyxY0zPg9HOW6OAOEspy1bFPNdzlmPZuFnFYg9qjPUKH9bTqygRztDEDRbIhV1hBduYaPPFDRxIOMkLycyVZfoQCQpZrt7uHaLRVZ5AxvPKd5CQH36tDW9Sh4AXkgvdZhb0ecnNKzGhIVgNMcQ2GDSqgCQ/iFh/QlyY8Z997VH1D7gy9WDYqrrd35d4DbjZG9d526HrqCuzNtuPOqnIenq/QUrBDOVPMyRSQUKMr3OI/prg7IBuRGSNdw++pzijDRyrtxnCUgBq3qRS7Gf9A/gs4q5YWv4nnZg0Rk6Nfa5HyuWGaRZ2UPgTDlV4VQAtvtitIFJOfzoqrx2JdOnAjw4v5TbjbvF0QlFijDcIS7jRYy2I7mv8uzmp11If94/Z8dd7wHBlvaTvo9QUzFwuD/hyZjIviHIShWiNWMirGS4nCGAhhbP8NUgXXrFP1ti5qLvwRBYBJ4oBBGz40dKPNBejR+LjyhlB2fPY8MPWR5L0OwzfIKUijottmU/7gVwoz8b7uoIYbGF7KAu1J/EMtxUIeDnOJiAbuWi1WVg4QcAPNNpf5wofDDzbmY80X474lurMfSZpL1z5lkSCfOYAfDBqY6XBIcRcrgjtTCow3haPJI+p1ygMER6tKFuNc8h0XA9CSVACJBOS6csakFY663gjRQbl5CKLPzh3woR1bSNXi7C0kQ== 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)(36840700001)(40470700004)(46966006)(4326008)(8676002)(70206006)(83380400001)(2616005)(82310400004)(70586007)(86362001)(26005)(508600001)(44832011)(107886003)(336012)(40460700003)(2906002)(8936002)(426003)(82960400001)(5660300002)(47076005)(186003)(6666004)(6966003)(81166007)(356005)(36860700001)(316002)(36756003)(1076003)(6266002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2022 20:57:12.3729 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 87fa3878-978d-401d-947a-08da10fd8833 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: PR2FRA01FT003.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAZP264MB3952 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.25.1