efi/libstub: consolidate initrd handling across architectures
authorArd Biesheuvel <ardb@kernel.org>
Fri, 19 Nov 2021 11:47:44 +0000 (13:47 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 21 Nov 2021 16:08:10 +0000 (17:08 +0100)
commit20287d56f52dab0790acb05f44cd2011bac0a431
tree2860a7f1fd8e86bf944d0ac906aedf509a33c75e
parent44f155b4b07b8293472c9797d5b39839b91041ca
efi/libstub: consolidate initrd handling across architectures

Before adding TPM measurement of the initrd contents, refactor the
initrd handling slightly to be more self-contained and consistent.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Link: https://lore.kernel.org/r/20211119114745.1560453-4-ilias.apalodimas@linaro.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/efi-stub-helper.c
drivers/firmware/efi/libstub/efi-stub.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/x86-stub.c