efi_loader: add efi_create_indexed_name()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 29 Oct 2020 04:47:46 +0000 (13:47 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 30 Oct 2020 13:27:43 +0000 (14:27 +0100)
commit077153e085b48e7683552667ab2247c991c1e1ff
treed6954162b528b1932ee31c22878fe0b954e2aec5
parentc57c9439548a58a0c1f0eb2ec7b5ab5d7b7fd801
efi_loader: add efi_create_indexed_name()

This function will be used from several places in UEFI subsystem
to generate some specific form of utf-16 variable name.
For example, L"Capsule0001"

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Move function to separate module.
Use char * as argument instead of u16 *.
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/Makefile
lib/efi_loader/efi_string.c [new file with mode: 0644]