From 3894d4fd7550273f2c2163a78218cc0be0a7b840 Mon Sep 17 00:00:00 2001 From: belliash Date: Wed, 12 Oct 2022 23:14:33 +0200 Subject: [PATCH] Move blproto.c and add missing header file --- xtldr/{modules => }/blproto.c | 2 +- xtldr/includes/blmod.h | 22 ++++++++++++++++++++++ xtldr/modules/dummy/CMakeLists.txt | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) rename xtldr/{modules => }/blproto.c (97%) create mode 100644 xtldr/includes/blmod.h diff --git a/xtldr/modules/blproto.c b/xtldr/blproto.c similarity index 97% rename from xtldr/modules/blproto.c rename to xtldr/blproto.c index e99cca3..d46105e 100644 --- a/xtldr/modules/blproto.c +++ b/xtldr/blproto.c @@ -1,7 +1,7 @@ /** * PROJECT: ExectOS * COPYRIGHT: See COPYING.md in the top level directory - * FILE: xtldr/modules/blproto.c + * FILE: xtldr/blproto.c * DESCRIPTION: EFI XTLDR protocol API * DEVELOPERS: Rafal Kupiec */ diff --git a/xtldr/includes/blmod.h b/xtldr/includes/blmod.h new file mode 100644 index 0000000..0f6fcf3 --- /dev/null +++ b/xtldr/includes/blmod.h @@ -0,0 +1,22 @@ +/** + * PROJECT: ExectOS + * COPYRIGHT: See COPYING.md in the top level directory + * FILE: xtldr/includes/blmod.h + * DESCRIPTION: XTLDR modules support + * DEVELOPERS: Rafal Kupiec + */ + +#ifndef __XTLDR_BLMOD_H +#define __XTLDR_BLMOD_H + +#include +#include + + +/* EFI XT Loader Protocol */ +EXTERN PXT_BOOT_LOADER_PROTOCOL EfiXtLdrProtocol; + +EFI_STATUS +BlGetXtLoaderProtocol(); + +#endif /* __XTLDR_BLMOD_H */ diff --git a/xtldr/modules/dummy/CMakeLists.txt b/xtldr/modules/dummy/CMakeLists.txt index d2efef7..5c64bc9 100644 --- a/xtldr/modules/dummy/CMakeLists.txt +++ b/xtldr/modules/dummy/CMakeLists.txt @@ -8,7 +8,7 @@ include_directories( # Specify list of source code files list(APPEND XTLDR_DUMMY_SOURCE - ${XTLDR_SOURCE_DIR}/modules/blproto.c + ${XTLDR_SOURCE_DIR}/blproto.c ${XTLDR_DUMMY_SOURCE_DIR}/dummy.c) # Link bootloader executable