efi: libstub: Provide local implementations of strrchr() and memchr()
authorArd Biesheuvel <ardb@kernel.org>
Tue, 11 Oct 2022 16:21:52 +0000 (18:21 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 9 Nov 2022 11:42:02 +0000 (12:42 +0100)
commitda8dd0c75b3f82eb366eb1745fb473ea92c8c087
treeb97eed71c3e68d41909c665273b3b6d899e64bf4
parent732ea9db9d8a6a0444d18ed810cccb2428d8766b
efi: libstub: Provide local implementations of strrchr() and memchr()

Clone the implementations of strrchr() and memchr() in lib/string.c so
we can use them in the standalone zboot decompressor app. These routines
are used by the FDT handling code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm64/kernel/image-vars.h
arch/riscv/kernel/image-vars.h
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/string.c