Skip to content

Commit

Permalink
BaseTools: Fixed compilation after rebasing upon edk2-stable202311 tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Krichanov committed Dec 11, 2023
1 parent dd7b6db commit 79e4dde
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 17 deletions.
1 change: 0 additions & 1 deletion BaseTools/Conf/tools_def.template
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,6 @@ DEFINE CLANGDWARF_RISCV64_DLINK_FLAGS = DEF(CLANGDWARF_RISCV64_TARGET) DEF
*_CLANGDWARF_RISCV64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--defsym=PECOFF_HEADER_SIZE=0x240
*_CLANGDWARF_RISCV64_PLATFORM_FLAGS =
*_CLANGDWARF_RISCV64_PP_FLAGS = DEF(GCC_PP_FLAGS) DEF(CLANGDWARF_RISCV64_TARGET) $(PLATFORM_FLAGS)
*_CLANGDWARF_RISCV64_RC_FLAGS = DEF(GCC_RISCV64_RC_FLAGS)
*_CLANGDWARF_RISCV64_VFRPP_FLAGS = DEF(GCC_VFRPP_FLAGS) DEF(CLANGDWARF_RISCV64_TARGET) $(PLATFORM_FLAGS)
*_CLANGDWARF_RISCV64_ASLPP_FLAGS = DEF(GCC_ASLPP_FLAGS) DEF(CLANGDWARF_RISCV64_TARGET)
*_CLANGDWARF_RISCV64_CC_SECPEIFLAGS = DEF(GCC_RISCV64_CC_SECPEIFLAGS)
Expand Down
3 changes: 0 additions & 3 deletions BaseTools/Source/C/Common/Decompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
//
// Decompression algorithm begins here
//
#define UINT8_MAX 0xff
#define BITBUFSIZ 32
#define MAXMATCH 256
#define THRESHOLD 3
Expand Down Expand Up @@ -899,5 +898,3 @@ Extract (

return Status;
}


2 changes: 0 additions & 2 deletions BaseTools/Source/C/GenFfs/GenFfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
**/

#include "WinNtInclude.h"

#ifndef __GNUC__
#include <windows.h>
#include <io.h>
Expand Down
2 changes: 1 addition & 1 deletion BaseTools/Source/C/GenFv/GenFvInternalLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3595,7 +3595,7 @@ Routine Description:
Machine = UefiImageGetMachine (&ImageContext);

if ( (Machine == IMAGE_FILE_MACHINE_ARMTHUMB_MIXED) ||
(Machine == IMAGE_FILE_MACHINE_AARCH64) ) {
(Machine == IMAGE_FILE_MACHINE_ARM64) ) {
mArm = TRUE;
}

Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/C/GenSec/GenSec.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "WinNtInclude.h"

#ifndef __GNUC__
#include <windows.h>
#include <io.h>
Expand Down
6 changes: 0 additions & 6 deletions BaseTools/Source/C/Include/Common/BaseTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
#ifndef __BT_BASE_TYPES_H__
#define __BT_BASE_TYPES_H__

//
// To be able to safely include Windows headers, we need to include
// WinNtInclude.h first.
//
#include "WinNtInclude.h"

#include <stdarg.h>
#include <stdint.h>

Expand Down
2 changes: 0 additions & 2 deletions BaseTools/Source/C/LzmaCompress/LzmaCompress.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@

#define _CRT_SECURE_NO_WARNINGS

#include "WinNtInclude.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand Down
2 changes: 2 additions & 0 deletions MdePkg/Include/IndustryStandard/PeImage2.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#define IMAGE_FILE_MACHINE_RISCV32 0x5032
#define IMAGE_FILE_MACHINE_RISCV64 0x5064
#define IMAGE_FILE_MACHINE_RISCV128 0x5128
#define IMAGE_FILE_MACHINE_LOONGARCH32 0x6232
#define IMAGE_FILE_MACHINE_LOONGARCH64 0x6264

//
// EXE file formats
Expand Down

0 comments on commit 79e4dde

Please sign in to comment.