[PATCH 1/5] lib: do not build OID registry in SPL

Heinrich Schuchardt
2020-04-16T15:49:13Z

On 4/16/20 4:32 AM, Tom Rini wrote:
> On Wed, Apr 15, 2020 at 06:46:19PM +0200, Heinrich Schuchardt wrote:
>
>> The OID registry is only used by crypto functions that are not built in
>> SPL. So we should not build it in SPL.
>>
>> Fixes: a9b45e6e8382 ("lib: add oid registry utility")
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
>> ---
>> lib/Makefile | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> This problem shows up with the full secure boot patch series, yes?
> Thanks.
>

Take origin/master:

pine64-lts_defconfig
+ CONFIG_RSA=y
+ CONFIG_ASYMMETRIC_KEY_TYPE=y
+ CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y
+ CONFIG_RSA_PUBLIC_KEY_PARSER=y

and you will see spl/lib/oid_registry.o being built.

These settings will in future be needed for UEFI secure boot.

Best regards

Heinrich