mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-30 12:43:41 +01:00
improved cbuild.bat
Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
parent
e13c81704b
commit
eb938ce184
@ -26,6 +26,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
// Disable warning when last field of data structure is a zero sized array.
|
// Disable warning when last field of data structure is a zero sized array.
|
||||||
//
|
//
|
||||||
#pragma warning ( disable : 4200 )
|
#pragma warning ( disable : 4200 )
|
||||||
|
#pragma warning ( disable : 4804 )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,7 +40,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
|||||||
@param Size The expected size for the TYPE.
|
@param Size The expected size for the TYPE.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
#define VERIFY_SIZE_OF(TYPE, Size) extern UINT8 _VerifySizeof##TYPE[(sizeof(TYPE) == (Size)) / (sizeof(TYPE) == (Size))]
|
#define VERIFY_SIZE_OF(TYPE, Size) extern UINT8 _VerifySizeof##TYPE[(sizeof(TYPE) == (Size))?1:0 / (sizeof(TYPE) == (Size))?1:0]
|
||||||
|
|
||||||
//
|
//
|
||||||
// Verify that ProcessorBind.h produced UEFI Data Types that are compliant with
|
// Verify that ProcessorBind.h produced UEFI Data Types that are compliant with
|
||||||
|
10
cbuild.bat
10
cbuild.bat
@ -30,11 +30,11 @@ set DEVSTAGE=
|
|||||||
set IASL_PREFIX=c:\ASL\
|
set IASL_PREFIX=c:\ASL\
|
||||||
|
|
||||||
set DEFAULT_CYGWIN_HOME=c:\cygwin
|
set DEFAULT_CYGWIN_HOME=c:\cygwin
|
||||||
rem set DEFAULT_PYTHONHOME=
|
set DEFAULT_PYTHONHOME=d:\Program File\Python38
|
||||||
rem d:\Program File\Python37"
|
set DEFAULT_PYTHONPATH=d:\Program File\Python38\Lib
|
||||||
rem set DEFAULT_PYTHON_FREEZER_PATH=%PYTHON_HOME%\Scripts
|
set DEFAULT_PYTHON_FREEZER_PATH=%PYTHON_HOME%\Scripts
|
||||||
set "PYTHONHOME=d:\Program File\Python37"
|
rem set "PYTHONHOME=d:\Program File\Python37"
|
||||||
set "PYTHON_FREEZER_PATH=%PYTHONHOME%\Scripts"
|
rem set "PYTHON_FREEZER_PATH=%PYTHONHOME%\Scripts"
|
||||||
set PYTHON3_ENABLE=TRUE
|
set PYTHON3_ENABLE=TRUE
|
||||||
set DEFAULT_NASM_PREFIX=
|
set DEFAULT_NASM_PREFIX=
|
||||||
rem C:\Program Files (x86)\NASM"
|
rem C:\Program Files (x86)\NASM"
|
||||||
|
@ -310,8 +310,11 @@ EFI_STATUS ScanDeviceHandles(EFI_HANDLE ControllerHandle,
|
|||||||
//
|
//
|
||||||
Status = gBS->LocateHandleBuffer (AllHandles, NULL, NULL, HandleCount, HandleBuffer);
|
Status = gBS->LocateHandleBuffer (AllHandles, NULL, NULL, HandleCount, HandleBuffer);
|
||||||
if (EFI_ERROR (Status)) goto Error;
|
if (EFI_ERROR (Status)) goto Error;
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
*HandleType = static_cast<UINT32*>(AllocatePool(*HandleCount * sizeof(UINT32)));
|
||||||
|
#else
|
||||||
*HandleType = (__typeof__(*HandleType))AllocatePool (*HandleCount * sizeof (UINT32));
|
*HandleType = (__typeof__(*HandleType))AllocatePool (*HandleCount * sizeof (UINT32));
|
||||||
|
#endif
|
||||||
if (*HandleType == NULL) goto Error;
|
if (*HandleType == NULL) goto Error;
|
||||||
|
|
||||||
for (HandleIndex = 0; HandleIndex < *HandleCount; HandleIndex++) {
|
for (HandleIndex = 0; HandleIndex < *HandleCount; HandleIndex++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user