aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi/libstub/systable.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2022-05-06 11:37:50 +0200
committerArd Biesheuvel <ardb@kernel.org>2022-09-19 11:19:35 +0200
commit514377d8a7da608ce618cdbeb5a2110a5a5178fc (patch)
tree69e002289d8ec8c426659a0a224e941c9b9b9dd9 /drivers/firmware/efi/libstub/systable.c
parentefi/libstub: use EFI provided memcpy/memset routines (diff)
downloadlinux-dev-514377d8a7da608ce618cdbeb5a2110a5a5178fc.tar.xz
linux-dev-514377d8a7da608ce618cdbeb5a2110a5a5178fc.zip
efi/libstub: move efi_system_table global var into separate object
To avoid pulling in the wrong object when using the libstub static library to build the decompressor, define efi_system_table in a separate compilation unit. Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/libstub/systable.c')
-rw-r--r--drivers/firmware/efi/libstub/systable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/firmware/efi/libstub/systable.c b/drivers/firmware/efi/libstub/systable.c
new file mode 100644
index 000000000000..91d016b02f8c
--- /dev/null
+++ b/drivers/firmware/efi/libstub/systable.c
@@ -0,0 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include <linux/efi.h>
+#include <asm/efi.h>
+
+#include "efistub.h"
+
+const efi_system_table_t *efi_system_table;