From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 05923D8002E for ; Sun, 25 Feb 2024 14:51:01 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=/NfC1tQsYNNn7gunLRjDR5l+axwpKYHWTfYFVlDOs18=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1708872660; v=1; b=S9uOAFYVYQLMnN8A/SqjZCEGb5sF9Q7uQ/6FwShDKkND4ty4KkD42GfiqxBEjjXOpel+mEq4 BOvK/7wQtpRou4qzU5PaPGUHW3NUsTgCcMSFBsXYdPrM/8Oel1bqeQB9Pcg3MuCQNFAL7hAj7Ud K6qkxcO9flGMU68Lnal/NJuY= X-Received: by 127.0.0.2 with SMTP id JkQYYY7687511xgLSxtDBkT6; Sun, 25 Feb 2024 06:51:00 -0800 X-Received: from mail-ot1-f51.google.com (mail-ot1-f51.google.com [209.85.210.51]) by mx.groups.io with SMTP id smtpd.web10.40102.1708872660015279807 for ; Sun, 25 Feb 2024 06:51:00 -0800 X-Received: by mail-ot1-f51.google.com with SMTP id 46e09a7af769-6e445b4f80bso1255254a34.0 for ; Sun, 25 Feb 2024 06:50:59 -0800 (PST) X-Gm-Message-State: nT9lBoXi8WQrVIatOrQIKK3Dx7686176AA= X-Google-Smtp-Source: AGHT+IEp1i172arzkg2WEyR3wFDxxPICq+uUcBcuYbLuk2Bo4JPQz4ifIkXpSbQgtjTca8G1avaquA== X-Received: by 2002:a9d:7a43:0:b0:6e4:7762:bff with SMTP id z3-20020a9d7a43000000b006e477620bffmr6265392otm.34.1708872659098; Sun, 25 Feb 2024 06:50:59 -0800 (PST) X-Received: from dhaval.. ([2401:4900:1cc5:bdc5:d3a8:c87e:e484:61a8]) by smtp.gmail.com with ESMTPSA id j7-20020a62b607000000b006e5129b41aasm449344pff.71.2024.02.25.06.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Feb 2024 06:50:58 -0800 (PST) From: "Dhaval Sharma" To: devel@edk2.groups.io Cc: Guo Dong , Sean Rhodes , James Lu , Gua Guo Subject: [edk2-devel] [PATCH v1 1/1] UefiPayloadPkg: Make Dsc accomodative of other archs Date: Sun, 25 Feb 2024 20:20:51 +0530 Message-Id: <20240225145051.1940623-2-dhaval@rivosinc.com> In-Reply-To: <20240225145051.1940623-1-dhaval@rivosinc.com> References: <20240225145051.1940623-1-dhaval@rivosinc.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dhaval@rivosinc.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=S9uOAFYV; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=none Current DSC files contains a lot of files which are specific to X86 arch. Need to move around files under arch specific sections. Cc: Guo Dong Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Dhaval Sharma --- UefiPayloadPkg/UefiPayloadPkg.dsc | 48 +++++++++++--------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 95417cec6aff..433fb51a5695 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -259,24 +259,6 @@ [LibraryClasses] BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf=0D CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/Customize= dDisplayLib.inf=0D FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltL= ib.inf=0D -=0D - #=0D - # CPU=0D - #=0D - MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf=0D - LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.in= f=0D - MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf=0D - CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf=0D - SmmCpuSyncLib|UefiCpuPkg/Library/SmmCpuSyncLib/SmmCpuSyncLib.inf=0D -=0D - #=0D - # Platform=0D - #=0D -!if $(CPU_TIMER_LIB_ENABLE) =3D=3D TRUE && $(UNIVERSAL_PAYLOAD) =3D=3D TRU= E=0D - TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf=0D -!else=0D - TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf=0D -!endif=0D ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf= =0D !if $(USE_CBMEM_FOR_CONSOLE) =3D=3D TRUE=0D SerialPortLib|UefiPayloadPkg/Library/CbSerialPortLib/CbSerialPortLib.inf= =0D @@ -339,6 +321,22 @@ [LibraryClasses.common] BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.i= nf=0D !endif=0D =0D +[LibraryClasses.X64]=0D + #=0D + # CPU=0D + #=0D + MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf=0D + LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.in= f=0D + MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf=0D + IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf=0D +!if $(CPU_TIMER_LIB_ENABLE) =3D=3D TRUE && $(UNIVERSAL_PAYLOAD) =3D=3D TRU= E=0D + TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf=0D +!else=0D + TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf=0D +!endif=0D + CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuE= xceptionHandlerLib.inf=0D + CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf=0D +=0D [LibraryClasses.common.SEC]=0D HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf=0D PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf=0D @@ -355,6 +353,8 @@ [LibraryClasses.common.DXE_CORE] MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeC= oreMemoryAllocationLib.inf=0D ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExt= ractGuidedSectionLib.inf=0D ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeRepor= tStatusCodeLib.inf=0D +=0D +[LibraryClasses.X64.DXE_CORE]=0D !if $(SOURCE_DEBUG_ENABLE)=0D DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.in= f=0D !endif=0D @@ -368,6 +368,10 @@ [LibraryClasses.common.DXE_DRIVER] MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAll= ocationLib.inf=0D ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExt= ractGuidedSectionLib.inf=0D ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeRepor= tStatusCodeLib.inf=0D +=0D +[LibraryClasses.X64.DXE_DRIVER]=0D + CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuE= xceptionHandlerLib.inf=0D + MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf=0D !if $(SOURCE_DEBUG_ENABLE)=0D DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.in= f=0D !endif=0D @@ -394,7 +398,7 @@ [LibraryClasses.common.UEFI_DRIVER,LibraryClasses.commo= n.UEFI_APPLICATION] PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.= inf=0D !endif=0D =0D -[LibraryClasses.common.SMM_CORE]=0D +[LibraryClasses.X64.SMM_CORE]=0D !if $(SMM_SUPPORT) =3D=3D TRUE=0D PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf=0D SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/Pi= SmmCoreSmmServicesTableLib.inf=0D @@ -408,7 +412,7 @@ [LibraryClasses.common.SMM_CORE] !endif=0D !endif=0D =0D -[LibraryClasses.common.DXE_SMM_DRIVER]=0D +[LibraryClasses.X64.DXE_SMM_DRIVER]=0D !if $(SMM_SUPPORT) =3D=3D TRUE=0D PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf=0D =0D @@ -438,13 +442,15 @@ [LibraryClasses.common.DXE_SMM_DRIVER] #=0D ##########################################################################= ######=0D [PcdsFeatureFlag]=0D - gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE=0D gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE=0D gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE=0D ## This PCD specified whether ACPI SDT protocol is installed.=0D gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE=0D gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE=0D gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE=0D +=0D +[PcdsFeatureFlag.X64]=0D + gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE=0D gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE=0D =0D [PcdsFixedAtBuild]=0D --=20 2.39.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115929): https://edk2.groups.io/g/devel/message/115929 Mute This Topic: https://groups.io/mt/104564122/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-