efi: Share struct efi_priv between the app and stub code
authorSimon Glass <sjg@chromium.org>
Wed, 29 Dec 2021 18:57:45 +0000 (11:57 -0700)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 31 Dec 2021 05:45:01 +0000 (06:45 +0100)
commit2a1cf03ea4ff9a43fd990dc9ae0110464569c59b
tree065ee5c259e3d84d434a765a2bfc49c3b9322c2e
parent184be592580178dd149800459c8817199160ca22
efi: Share struct efi_priv between the app and stub code

At present each of these has its own static variable and helper functions.
Move them into a shared file.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
include/efi.h
lib/efi/efi.c
lib/efi/efi_app.c
lib/efi/efi_stub.c