-
Notifications
You must be signed in to change notification settings - Fork 622
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cpp_test, CloverX64 and create CloverMacOsApp.
- Loading branch information
jief
committed
Nov 20, 2023
1 parent
f80e377
commit 9e2bc77
Showing
234 changed files
with
25,868 additions
and
510 deletions.
There are no files selected for viewing
Submodule OpenCorePkg
updated
2 files
+5 −2 | Application/OpenCore/OpenCore.c | |
+6 −3 | Library/OcDebugLibProtocol/OcDebugLibProtocol.c |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// | ||
// printf_lite.hpp | ||
// | ||
// Created by jief the 04 Apr 2019. | ||
// Imported in CLover the 24 Feb 2020 | ||
// | ||
#ifndef __PRINTF_LITE_CONF_H__ | ||
#define __PRINTF_LITE_CONF_H__ | ||
|
||
#include <stdarg.h> | ||
#include <stddef.h> // for size_t | ||
#include <stdint.h> | ||
#include <inttypes.h> | ||
|
||
#ifndef __cplusplus | ||
#ifdef _MSC_VER | ||
typedef uint16_t wchar_t; | ||
#endif | ||
typedef uint32_t char32_t; | ||
typedef uint16_t char16_t; | ||
#endif | ||
|
||
#ifdef _MSC_VER | ||
# define __attribute__(x) | ||
#endif | ||
|
||
#ifdef DEBUG | ||
#define DEFINE_SECTIONS 0 | ||
#endif | ||
|
||
#define PRINTF_LITE_DEFINE_PRINTF_SPRINTF 1 | ||
|
||
#define PRINTF_LITE_BUF_SIZE 255 // not more than 255 | ||
#define PRINTF_LITE_TIMESTAMP_SUPPORT 1 | ||
#define PRINTF_LITE_TIMESTAMP_CUSTOM_FUNCTION 1 | ||
#define PRINTF_EMIT_CR_SUPPORT 1 | ||
|
||
#define PRINTF_LITE_REPLACE_STANDARD_FUNCTION 1 | ||
|
||
|
||
|
||
#endif // __PRINTF_LITE_CONF_H__ |
207 changes: 207 additions & 0 deletions
207
PosixEFICompilation/CloverMock/Library/MemLogLibDefault/MemLogLib.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,207 @@ | ||
/** @file | ||
Default instance of MemLogLib library for simple log services to memory buffer. | ||
**/ | ||
|
||
#include <Efi.h> | ||
#include <Library/printf_lite.h> | ||
|
||
CHAR8* | ||
GetTiming(VOID) | ||
{ | ||
return ""; | ||
} | ||
|
||
|
||
|
||
/** | ||
Inits mem log. | ||
@retval EFI_SUCCESS The constructor always returns EFI_SUCCESS. | ||
**/ | ||
EFI_STATUS | ||
EFIAPI | ||
MemLogInit ( | ||
VOID | ||
) | ||
{ | ||
return EFI_SUCCESS; | ||
} | ||
|
||
/** | ||
Prints a log message to memory buffer. | ||
@param Timing TRUE to prepend timing to log. | ||
@param DebugMode DebugMode will be passed to Callback function if it is set. | ||
@param Format The format string for the debug message to print. | ||
@param Marker VA_LIST with variable arguments for Format. | ||
**/ | ||
VOID | ||
EFIAPI | ||
MemLogVA ( | ||
IN CONST BOOLEAN Timing, | ||
IN CONST INTN DebugMode, | ||
IN CONST CHAR8 *Format, | ||
IN VA_LIST Marker | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
/** | ||
Prints a log to message memory buffer. | ||
If Format is NULL, then does nothing. | ||
@param Timing TRUE to prepend timing to log. | ||
@param DebugMode DebugMode will be passed to Callback function if it is set. | ||
@param Format The format string for the debug message to print. | ||
@param ... The variable argument list whose contents are accessed | ||
based on the format string specified by Format. | ||
**/ | ||
VOID | ||
EFIAPI | ||
MemLog ( | ||
IN CONST BOOLEAN Timing, | ||
IN CONST INTN DebugMode, | ||
IN CONST CHAR8 *Format, | ||
... | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
|
||
/** | ||
Returns pointer to MemLog buffer. | ||
**/ | ||
CHAR8* | ||
EFIAPI | ||
GetMemLogBuffer ( | ||
VOID | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
|
||
/** | ||
Returns the length of log (number of chars written) in mem buffer. | ||
**/ | ||
UINTN | ||
EFIAPI | ||
GetMemLogLen ( | ||
VOID | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
/** | ||
Sets callback that will be called when message is added to mem log. | ||
**/ | ||
VOID | ||
EFIAPI | ||
SetMemLogCallback ( | ||
MEM_LOG_CALLBACK Callback | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
/** | ||
Sets callback that will be called when message is added to mem log. | ||
**/ | ||
MEM_LOG_CALLBACK | ||
EFIAPI | ||
GetMemLogCallback () | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
/** | ||
Returns TSC ticks per second. | ||
**/ | ||
UINT64 | ||
EFIAPI | ||
GetMemLogTscTicksPerSecond (VOID) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
|
||
// Microsoft wants _fltused | ||
#ifdef _MSC_VER | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
int _fltused=0; // it should be a single underscore since the double one is the mangled name | ||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif | ||
|
||
//static int printfNewline = 1; | ||
//static void transmitS8Printf(const char* buf, unsigned int nbchar, void* context) | ||
//{ | ||
//} | ||
|
||
//const char* printf_lite_get_timestamp() | ||
//{ | ||
// return ""; | ||
//} | ||
|
||
/** | ||
Prints a log message to memory buffer. | ||
@param Timing TRUE to prepend timing to log. | ||
@param DebugMode DebugMode will be passed to Callback function if it is set. | ||
@param Format The format string for the debug message to print. | ||
@param Marker VA_LIST with variable arguments for Format. | ||
**/ | ||
VOID | ||
EFIAPI | ||
MemLogfVA ( | ||
IN CONST BOOLEAN Timing, | ||
IN CONST INTN DebugMode, | ||
IN CONST CHAR8 *Format, | ||
IN VA_LIST Marker | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
||
|
||
/** | ||
Prints a log to message memory buffer. | ||
If Format is NULL, then does nothing. | ||
@param Timing TRUE to prepend timing to log. | ||
@param DebugMode DebugMode will be passed to Callback function if it is set. | ||
@param Format The format string for the debug message to print. | ||
@param ... The variable argument list whose contents are accessed | ||
based on the format string specified by Format. | ||
**/ | ||
VOID | ||
EFIAPI | ||
MemLogf ( | ||
IN CONST BOOLEAN Timing, | ||
IN CONST INTN DebugMode, | ||
IN CONST CHAR8 *Format, | ||
... | ||
) | ||
{ | ||
panic("not yet"); | ||
} | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/UefiCpuPkg/Library/MtrrLib/MtrrLib/OUTPUT/MtrrLib.lib |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/Library/MemLogLibDefault/MemLogLibDefault/OUTPUT/MemLogLib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/MdeModulePkg/Library/UefiSortLib/UefiSortLib/OUTPUT/UefiSortLib.lib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcBlitLib/OcBlitLib/OUTPUT/OcBlitLib.lib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/./OpenCorePkg/Library/OcDeviceMiscLib/OcDeviceMiscLib/OUTPUT/OcDeviceMiscLib.lib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcFlexArrayLib/OcFlexArrayLib/OUTPUT/OcFlexArrayLib.lib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcMainLib/OcMainLibClover/OUTPUT/OcMainLib.lib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcPeCoffExtLib/OcPeCoffExtLib/OUTPUT/OcPeCoffExtLib.lib |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcTypingLib/OcTypingLib/OUTPUT/OcTypingLib.lib |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcVariableLib/OcVariableLib/OUTPUT/OcVariableLib.lib |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Application/OpenCore/OpenCoreLib/OUTPUT/OpenCore.lib |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
wcslen=wcslen_fixed wcscmp=__wcscmp_is_disabled__ wcsncmp=wcsncmp_fixed wcsstr=wcsstr_fixed sprintf=__sprintf_is_disabled__ |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.