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 76181740034 for ; Tue, 27 Feb 2024 08:36:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=P+E8vcZk9z0qfhVm1YqrDNq70hnaXjSEJhwVTxqb9GQ=; 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=1709023000; v=1; b=uHziw45k4rqPefKw2rr7BzmQilz93pzs4qzdZjJ/y+j7iKUr9S2ooMnF5dr/lHxknd6AhcWx 2NXTEYjMvOhLnQmiGbNRXbY9s9efeaJg//p1V+lvkWmcyU4i/cr8OsWdnfTSuJFW9Ma0fmg1Hkd +cbf60ftCmnVM0cCBc+9GDZ0= X-Received: by 127.0.0.2 with SMTP id 0fFYYY7687511xx3I3CDdvdV; Tue, 27 Feb 2024 00:36:40 -0800 X-Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.web11.8139.1709022999630211153 for ; Tue, 27 Feb 2024 00:36:39 -0800 X-Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-29954bb87b4so2744715a91.2 for ; Tue, 27 Feb 2024 00:36:39 -0800 (PST) X-Gm-Message-State: QsGhaUWswf9pn8VJ5AJjtWrLx7686176AA= X-Google-Smtp-Source: AGHT+IGZVvCFSoFPot1O1vFj5XiVqxO7MaMAs+iRFGb0huEsedmoaNBCIPETe56A0KQNqLBFx2gNOA== X-Received: by 2002:a17:90b:30ce:b0:29a:a37f:22c6 with SMTP id hi14-20020a17090b30ce00b0029aa37f22c6mr4874653pjb.28.1709022998760; Tue, 27 Feb 2024 00:36:38 -0800 (PST) X-Received: from dhaval.blr.rivosinc.com ([49.249.129.34]) by smtp.gmail.com with ESMTPSA id v14-20020a17090a0c8e00b0029981c0d5c5sm6591289pja.19.2024.02.27.00.36.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 00:36:38 -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: Tue, 27 Feb 2024 14:06:30 +0530 Message-Id: <20240227083630.973595-2-dhaval@rivosinc.com> In-Reply-To: <20240227083630.973595-1-dhaval@rivosinc.com> References: <20240227083630.973595-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=uHziw45k; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io 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 Reviewed-by: Gua Guo --- Notes: v1: - Updated RB tab 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 (#116010): https://edk2.groups.io/g/devel/message/116010 Mute This Topic: https://groups.io/mt/104599590/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-