mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-13 10:04:04 +01:00
Update cpp_test, CloverX64 and create CloverMacOsApp.
This commit is contained in:
parent
f80e3774c4
commit
9e2bc77498
@ -1 +1 @@
|
||||
Subproject commit a38c3a3705021e3808d62d135e0a4089d74986b5
|
||||
Subproject commit c24f740b07c97efec0b772d914a9bdab448f3039
|
@ -1 +0,0 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/CloverEFI/UefiCpuPkg/Library/MtrrLib/MtrrLib/OUTPUT/MtrrLib.lib
|
@ -1 +0,0 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Platform/OpenCore/OpenCoreLib/OUTPUT/OpenCore.lib
|
42
PosixEFICompilation/CloverMock/Include/printf_lite-conf.h
Executable file
42
PosixEFICompilation/CloverMock/Include/printf_lite-conf.h
Executable file
@ -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__
|
@ -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");
|
||||
}
|
||||
|
1
PosixEFICompilation/DebugLibs/CloverEFI/MtrrLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/CloverEFI/MtrrLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/UefiCpuPkg/Library/MtrrLib/MtrrLib/OUTPUT/MtrrLib.lib
|
1
PosixEFICompilation/DebugLibs/Library/MemLogLib
Symbolic link
1
PosixEFICompilation/DebugLibs/Library/MemLogLib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/Library/MemLogLibDefault/MemLogLibDefault/OUTPUT/MemLogLib
|
1
PosixEFICompilation/DebugLibs/MdeModulePkg/UefiSortLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/MdeModulePkg/UefiSortLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/MdeModulePkg/Library/UefiSortLib/UefiSortLib/OUTPUT/UefiSortLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcBlitLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcBlitLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcBlitLib/OcBlitLib/OUTPUT/OcBlitLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcDeviceMiscLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcDeviceMiscLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/./OpenCorePkg/Library/OcDeviceMiscLib/OcDeviceMiscLib/OUTPUT/OcDeviceMiscLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcFlexArrayLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcFlexArrayLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcFlexArrayLib/OcFlexArrayLib/OUTPUT/OcFlexArrayLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcMainLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcMainLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcMainLib/OcMainLibClover/OUTPUT/OcMainLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcPeCoffExtLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcPeCoffExtLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcPeCoffExtLib/OcPeCoffExtLib/OUTPUT/OcPeCoffExtLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcTypingLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcTypingLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcTypingLib/OcTypingLib/OUTPUT/OcTypingLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OcVariableLib.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OcVariableLib.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Library/OcVariableLib/OcVariableLib/OUTPUT/OcVariableLib.lib
|
1
PosixEFICompilation/DebugLibs/OC/OpenCore.lib
Symbolic link
1
PosixEFICompilation/DebugLibs/OC/OpenCore.lib
Symbolic link
@ -0,0 +1 @@
|
||||
../../../Build/Clover/DEBUGMACOS_XCODE8/X64/OpenCorePkg/Application/OpenCore/OpenCoreLib/OUTPUT/OpenCore.lib
|
2
PosixEFICompilation/ReadmeJief.txt
Normal file
2
PosixEFICompilation/ReadmeJief.txt
Normal file
@ -0,0 +1,2 @@
|
||||
|
||||
wcslen=wcslen_fixed wcscmp=__wcscmp_is_disabled__ wcsncmp=wcsncmp_fixed wcsstr=wcsstr_fixed sprintf=__sprintf_is_disabled__
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user