mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-17 01:11:36 +01:00
correct tools_def by Zentih432
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
8672324c1b
commit
59e0a2856a
@ -2008,10 +2008,10 @@ DEFINE GCC_X64_RC_FLAGS = -I binary -O elf64-x86-64 -B i386 --re
|
||||
DEFINE GCC_ARM_RC_FLAGS = -I binary -O elf32-littlearm -B arm --rename-section .data=.hii
|
||||
DEFINE GCC_AARCH64_RC_FLAGS = -I binary -O elf64-littleaarch64 -B aarch64 --rename-section .data=.hii
|
||||
|
||||
DEFINE GCC48_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
||||
DEFINE GCC48_ALL_CC_FLAGS = -g -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -Wno-unused-const-variable -ffunction-sections -fdata-sections -include AutoGen.h -fno-common -DSTRING_ARRAY_NAME=$(BASE_NAME)Strings
|
||||
DEFINE GCC48_IA32_X64_DLINK_COMMON = -nostdlib -Wl,-n,-q,--gc-sections -z common-page-size=0x20
|
||||
DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address
|
||||
DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m64 -fno-stack-protector -Wno-unused-but-set-variable "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address
|
||||
DEFINE GCC48_IA32_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m32 -march=i586 -malign-double -fno-stack-protector -D EFI32 -fno-asynchronous-unwind-tables -Wno-address -Os -flto
|
||||
DEFINE GCC48_X64_CC_FLAGS = DEF(GCC48_ALL_CC_FLAGS) -m64 -fno-stack-protector -Wno-unused-but-set-variable -mabi=ms "-DEFIAPI=__attribute__((ms_abi))" -maccumulate-outgoing-args -mno-red-zone -Wno-address -mcmodel=small -fpie -fno-asynchronous-unwind-tables -Wno-address -Os -flto
|
||||
DEFINE GCC48_IA32_X64_ASLDLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,ReferenceAcpiTable -u ReferenceAcpiTable
|
||||
DEFINE GCC48_IA32_X64_DLINK_FLAGS = DEF(GCC48_IA32_X64_DLINK_COMMON) -Wl,--entry,$(IMAGE_ENTRY_POINT) -u $(IMAGE_ENTRY_POINT) -Wl,-Map,$(DEST_DIR_DEBUG)/$(BASE_NAME).map,--whole-archive
|
||||
DEFINE GCC48_IA32_DLINK2_FLAGS = -Wl,--defsym=PECOFF_HEADER_SIZE=0x220 DEF(GCC_DLINK2_FLAGS_COMMON)
|
||||
|
@ -393,7 +393,7 @@ checkCmdlineArguments() {
|
||||
# Update variables
|
||||
PLATFORMFILE="${PLATFORMFILE:-Clover.dsc}"
|
||||
if [ ! -z "${MODULEFILE}" ]; then
|
||||
MODULEFILE=" -m Clover/$MODULEFILE"
|
||||
MODULEFILE=" -m $MODULEFILE"
|
||||
fi
|
||||
|
||||
# Allow custom config path
|
||||
|
@ -29,6 +29,7 @@ EFI_EVENT ExitBootServiceEvent = NULL;
|
||||
EFI_EVENT mSimpleFileSystemChangeEvent = NULL;
|
||||
EFI_HANDLE mHandle = NULL;
|
||||
|
||||
extern EFI_RUNTIME_SERVICES gOrgRS;
|
||||
|
||||
/*
|
||||
VOID WaitForCR()
|
||||
@ -192,6 +193,7 @@ VOID
|
||||
EFIAPI
|
||||
OnExitBootServices(IN EFI_EVENT Event, IN VOID *Context)
|
||||
{
|
||||
/*
|
||||
if (gCPUStructure.Vendor == CPU_VENDOR_INTEL &&
|
||||
(gCPUStructure.Family == 0x06 && gCPUStructure.Model >= CPU_MODEL_SANDY_BRIDGE)
|
||||
) {
|
||||
@ -200,7 +202,7 @@ OnExitBootServices(IN EFI_EVENT Event, IN VOID *Context)
|
||||
msr = AsmReadMsr64(MSR_PKG_CST_CONFIG_CONTROL); //0xE2
|
||||
// AsciiPrint("MSR 0xE2 on Exit BS %08x\n", msr);
|
||||
|
||||
}
|
||||
} */
|
||||
/*
|
||||
// EFI_STATUS Status;
|
||||
{
|
||||
@ -224,7 +226,6 @@ OnExitBootServices(IN EFI_EVENT Event, IN VOID *Context)
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
gST->ConOut->OutputString (gST->ConOut, L"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
|
||||
//
|
||||
// Patch kernel and kexts if needed
|
||||
@ -324,7 +325,7 @@ OnReadyToBoot (
|
||||
IN VOID *Context
|
||||
)
|
||||
{
|
||||
//
|
||||
/*
|
||||
if ((gCPUStructure.Vendor == CPU_VENDOR_INTEL &&
|
||||
(gCPUStructure.Family == 0x06 && gCPUStructure.Model >= CPU_MODEL_SANDY_BRIDGE)
|
||||
)) {
|
||||
@ -334,7 +335,7 @@ OnReadyToBoot (
|
||||
|
||||
}
|
||||
// AsciiPrint("MSR 0xE2 on ReadyToBoot %08x\n", msr);
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
VOID
|
||||
|
Loading…
Reference in New Issue
Block a user