All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Reynes <philippe.reynes@softathome.com>
To: sjg@chromium.org, rasmus.villemoes@prevas.dk
Cc: u-boot@lists.denx.de, Philippe Reynes <philippe.reynes@softathome.com>
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	[thread overview]
Message-ID: <20220314145745.15249-5-philippe.reynes@softathome.com> (raw)
In-Reply-To: <20220314145745.15249-1-philippe.reynes@softathome.com>

This commit adds the options:
- SPL_ASN1_DECODER
- SPL_OID_REGISTRY

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
---
 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


  parent reply	other threads:[~2022-03-14 14:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-14 14:57 [PATCH v7 00/16] image: add a stage pre-load Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 01/16] arch: Kconfig: imply BINMAN for SANDBOX Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 02/16] lib: Kconfig: enhance help for ASN1 Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 03/16] lib: Kconfig: enhance the help of OID_REGISTRY Philippe Reynes
2022-03-14 14:57 ` Philippe Reynes [this message]
2022-03-14 14:57 ` [PATCH v7 05/16] lib: crypto: allow to build crypyo in SPL Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 06/16] lib: rsa: allow rsa verify with pkey " Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 07/16] boot: image: add a stage pre-load Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 08/16] cmd: bootm: " Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 09/16] common: spl: fit_ram: allow to use image pre load Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 10/16] mkimage: add public key for image pre-load stage Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 11/16] Makefile: provide sah-key to binman Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 12/16] tools: binman: add support for pre-load header Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 13/16] configs: sandbox_defconfig: enable stage pre-load in bootm Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 14/16] test: py: vboot: add test for global image signature Philippe Reynes
2022-03-25 17:11   ` Tom Rini
2022-03-25 22:54     ` Philippe REYNES
2022-03-25 23:02       ` Tom Rini
2022-03-28 20:58         ` Philippe REYNES
2022-03-14 14:57 ` [PATCH v7 15/16] cmd: pre_load_verify: initial import Philippe Reynes
2022-03-14 14:57 ` [PATCH v7 16/16] configs: sandbox_defconfig: enable config CMD_PRE_LOAD_VERIFY Philippe Reynes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220314145745.15249-5-philippe.reynes@softathome.com \
    --to=philippe.reynes@softathome.com \
    --cc=rasmus.villemoes@prevas.dk \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.