Skip to content

Commit

Permalink
Merge branch 'master' into create-redfishpkg-base-header
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Sep 16, 2024
2 parents bac05a7 + 670e263 commit c6cd049
Show file tree
Hide file tree
Showing 311 changed files with 3,298 additions and 2,032 deletions.
27 changes: 0 additions & 27 deletions .pytool/CISettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,20 @@ def __init__(self):
self.ActualTargets = []
self.ActualArchitectures = []
self.ActualToolChainTag = ""
self.UseBuiltInBaseTools = None
self.ActualScopes = None

# ####################################################################################### #
# Extra CmdLine configuration #
# ####################################################################################### #

def AddCommandLineOptions(self, parserObj):
group = parserObj.add_mutually_exclusive_group()
group.add_argument("-force_piptools", "--fpt", dest="force_piptools", action="store_true", default=False, help="Force the system to use pip tools")
group.add_argument("-no_piptools", "--npt", dest="no_piptools", action="store_true", default=False, help="Force the system to not use pip tools")

try:
codeql_helpers.add_command_line_option(parserObj)
except NameError:
pass

def RetrieveCommandLineOptions(self, args):
super().RetrieveCommandLineOptions(args)
if args.force_piptools:
self.UseBuiltInBaseTools = True
if args.no_piptools:
self.UseBuiltInBaseTools = False

try:
self.codeql = codeql_helpers.is_codeql_enabled_on_command_line(args)
Expand Down Expand Up @@ -176,24 +167,6 @@ def GetActiveScopes(self):

self.ActualToolChainTag = shell_environment.GetBuildVars().GetValue("TOOL_CHAIN_TAG", "")

is_linux = GetHostInfo().os.upper() == "LINUX"

if self.UseBuiltInBaseTools is None:
is_linux = GetHostInfo().os.upper() == "LINUX"
# try and import the pip module for basetools
try:
import edk2basetools
self.UseBuiltInBaseTools = True
except ImportError:
self.UseBuiltInBaseTools = False
pass

if self.UseBuiltInBaseTools == True:
scopes += ('pipbuild-unix',) if is_linux else ('pipbuild-win',)
logging.warning("Using Pip Tools based BaseTools")
else:
logging.warning("Falling back to using in-tree BaseTools")

try:
scopes += codeql_helpers.get_scopes(self.codeql)

Expand Down
5 changes: 5 additions & 0 deletions .pytool/Plugin/EccCheck/EccCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ def GetModifyDir(self, pkg: str, temp_diff_output: str) -> List[str]:
#
file_dir = os.path.dirname(file_path[-1])
#
# strip the prefix path till the package name
#
if pkg in file_dir:
file_dir = file_dir[file_dir.find(pkg):]
#
# Skip directory names that do not start with the package being scanned.
#
if file_dir.split('/')[0] != pkg:
Expand Down
13 changes: 5 additions & 8 deletions ArmPkg/ArmPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -93,24 +93,21 @@

OemMiscLib|ArmPkg/Universal/Smbios/OemMiscLibNull/OemMiscLibNull.inf

[LibraryClasses.common.SEC]
# ARM platforms have SEC modules with standard entry points, so we can generically link StackCheckLib
NULL|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf

[LibraryClasses.common.PEIM]
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf

[LibraryClasses.ARM, LibraryClasses.AARCH64]
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf

# Add support for GCC stack protector
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf

[Components.common]
ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
Expand Down Expand Up @@ -154,7 +151,6 @@
ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
ArmPkg/Library/LinuxBootBootManagerLib/LinuxBootBootManagerLib.inf

ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.inf
ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf

ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
Expand All @@ -164,6 +160,7 @@
ArmPkg/Drivers/MmCommunicationPei/MmCommunicationPei.inf

[Components.AARCH64]
ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.inf
ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.inf
ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
Expand Down
3 changes: 0 additions & 3 deletions ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,5 @@
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf

NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf

[Components.common]
ArmPkg/Drivers/ArmCrashDumpDxe/ArmCrashDumpDxe.inf
2 changes: 1 addition & 1 deletion ArmPkg/Drivers/ArmGic/GicV3/AArch64/ArmGicV3.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
#

#include <AsmMacroIoLibV8.h>
#include <AsmMacroLib.h>

#if !defined(__clang__)

Expand Down
2 changes: 1 addition & 1 deletion ArmPkg/Drivers/ArmGic/GicV3/Arm/ArmGicV3.S
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
#

#include <AsmMacroIoLib.h>
#include <AsmMacroLib.h>
#include <Library/ArmLib.h>

// For the moment we assume this will run in SVC mode on ARMv7
Expand Down
2 changes: 1 addition & 1 deletion ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ GetProcessorInfo (

CopyMem (
ProcessorInfoBuffer,
&mCpuMpData.CpuData[ProcessorIndex],
&mCpuMpData.CpuData[ProcessorIndex].Info,
sizeof (EFI_PROCESSOR_INFORMATION)
);
return EFI_SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion ArmPkg/Drivers/ArmPsciMpServicesDxe/MpFuncs.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
.text
.align 3

#include <AsmMacroIoLibV8.h>
#include <AsmMacroLib.h>
#include <IndustryStandard/ArmStdSmc.h>
#include <Library/ArmLib.h>

Expand Down
33 changes: 0 additions & 33 deletions ArmPkg/Include/AsmMacroIoLib.inc

This file was deleted.

2 changes: 1 addition & 1 deletion ArmPkg/Library/ArmExceptionLib/AArch64/ExceptionSupport.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <AArch64/AArch64.h>
#include <Library/PcdLib.h>
#include <AsmMacroIoLibV8.h>
#include <AsmMacroLib.h>
#include <Protocol/DebugSupport.h> // for exception type definitions

/*
Expand Down
2 changes: 1 addition & 1 deletion ArmPkg/Library/ArmHvcLib/AArch64/ArmHvc.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//

#include <AsmMacroIoLibV8.h>
#include <AsmMacroLib.h>

ASM_FUNC(ArmCallHvc)
// Push x0 on the stack - The stack must always be quad-word aligned
Expand Down
2 changes: 1 addition & 1 deletion ArmPkg/Library/ArmHvcLib/Arm/ArmHvc.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
//
//

#include <AsmMacroIoLib.h>
#include <AsmMacroLib.h>

.arch_extension virt

Expand Down
2 changes: 1 addition & 1 deletion ArmPkg/Library/ArmLib/AArch64/AArch64ArchTimerSupport.S
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
#------------------------------------------------------------------------------

#include <AsmMacroIoLibV8.h>
#include <AsmMacroLib.h>

ASM_FUNC(ArmReadCntFrq)
mrs x0, cntfrq_el0 // Read CNTFRQ
Expand Down
55 changes: 0 additions & 55 deletions ArmPkg/Library/ArmLib/AArch64/AArch64Lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,61 +18,6 @@
#include "AArch64Lib.h"
#include "ArmLibPrivate.h"

VOID
AArch64DataCacheOperation (
IN AARCH64_CACHE_OPERATION DataCacheOperation
)
{
UINTN SavedInterruptState;

SavedInterruptState = ArmGetInterruptState ();
ArmDisableInterrupts ();

AArch64AllDataCachesOperation (DataCacheOperation);

ArmDataSynchronizationBarrier ();

if (SavedInterruptState) {
ArmEnableInterrupts ();
}
}

VOID
EFIAPI
ArmInvalidateDataCache (
VOID
)
{
ASSERT (!ArmMmuEnabled ());

ArmDataSynchronizationBarrier ();
AArch64DataCacheOperation (ArmInvalidateDataCacheEntryBySetWay);
}

VOID
EFIAPI
ArmCleanInvalidateDataCache (
VOID
)
{
ASSERT (!ArmMmuEnabled ());

ArmDataSynchronizationBarrier ();
AArch64DataCacheOperation (ArmCleanInvalidateDataCacheEntryBySetWay);
}

VOID
EFIAPI
ArmCleanDataCache (
VOID
)
{
ASSERT (!ArmMmuEnabled ());

ArmDataSynchronizationBarrier ();
AArch64DataCacheOperation (ArmCleanDataCacheEntryBySetWay);
}

/**
Check whether the CPU supports the GIC system register interface (any version)
Expand Down
27 changes: 0 additions & 27 deletions ArmPkg/Library/ArmLib/AArch64/AArch64Lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,6 @@
#ifndef AARCH64_LIB_H_
#define AARCH64_LIB_H_

typedef VOID (*AARCH64_CACHE_OPERATION)(
UINTN
);

VOID
AArch64AllDataCachesOperation (
IN AARCH64_CACHE_OPERATION DataCacheOperation
);

VOID
EFIAPI
ArmInvalidateDataCacheEntryBySetWay (
IN UINTN SetWayFormat
);

VOID
EFIAPI
ArmCleanDataCacheEntryBySetWay (
IN UINTN SetWayFormat
);

VOID
EFIAPI
ArmCleanInvalidateDataCacheEntryBySetWay (
IN UINTN SetWayFormat
);

UINTN
EFIAPI
ArmReadIdAA64Dfr0 (
Expand Down
Loading

0 comments on commit c6cd049

Please sign in to comment.