XTLDR Rewrite #7

Merged
belliash merged 184 commits from xtldr_rewrite into master 2024-01-09 18:51:04 +01:00
3 changed files with 0 additions and 58 deletions
Showing only changes of commit d4252ebc05 - Show all commits

View File

@ -1,2 +1 @@
add_subdirectory(dummy)
add_subdirectory(dummy2)

View File

@ -1,26 +0,0 @@
# XT Boot Loader
PROJECT(XTLDR_DUMMY2)
# Specify include directories
include_directories(
${EXECTOS_SOURCE_DIR}/sdk/xtdk
${XTLDR_SOURCE_DIR}/includes
${XTLDR_DUMMY2_SOURCE_DIR}/includes)
# Specify list of source code files
list(APPEND XTLDR_DUMMY2_SOURCE
${XTLDR_DUMMY2_SOURCE_DIR}/dummy2.c)
# Link bootloader executable
add_executable(dummy2 ${XTLDR_DUMMY2_SOURCE})
# Add linker libraries
target_link_libraries(dummy2 libxtldr libxtos)
# Set proper binary name and install target
set_target_properties(dummy2 PROPERTIES SUFFIX .efi)
set_install_target(dummy2 efi/boot/xtldr/modules)
# Set module entrypoint and subsystem
set_entrypoint(dummy2 "XtLdrModuleMain")
set_subsystem(dummy2 efi_boot_service_driver)

View File

@ -1,31 +0,0 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtldr/modules/dummy/dummy.c
* DESCRIPTION: Dummy XTLDR module
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#include <xtblapi.h>
/**
* This routine is the entry point of the XT EFI boot loader module.
*
* @param ImageHandle
* Firmware-allocated handle that identifies the image.
*
* @param SystemTable
* Provides the EFI system table.
*
* @return This routine returns status code.
*
* @since XT 1.0
*/
XTCDECL
EFI_STATUS
XtLdrModuleMain(IN EFI_HANDLE ImageHandle,
IN PEFI_SYSTEM_TABLE SystemTable)
{
return STATUS_EFI_SUCCESS;
}