> + DEFINE DISABLE_VARIABLE = FALSE
Could you change this MACRO definition as below to specifically disable EMU variable? DEFINE EMU_VARIABLE_ENABLE = FALSE This way, late we could enable other variable drivers (e.g. SMM variable) in UEFI payload. Thanks, Guo > -----Original Message----- > From: Liu, Zhiguang <zhiguang....@intel.com> > Sent: Sunday, June 20, 2021 8:47 AM > To: devel@edk2.groups.io > Cc: Ma, Maurice <maurice...@intel.com>; Dong, Guo > <guo.d...@intel.com>; You, Benjamin <benjamin....@intel.com> > Subject: [PATCH 10/12] UefiPayloadPkg: Add macro to disable some drivers > > Cc: Maurice Ma <maurice...@intel.com> > Cc: Guo Dong <guo.d...@intel.com> > Cc: Benjamin You <benjamin....@intel.com> > Signed-off-by: Zhiguang Liu <zhiguang....@intel.com> > --- > UefiPayloadPkg/UefiPayloadPkg.dsc | 11 ++++++++++- > UefiPayloadPkg/UefiPayloadPkg.fdf | 7 +++++++ > 2 files changed, 17 insertions(+), 1 deletion(-) > > diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc > b/UefiPayloadPkg/UefiPayloadPkg.dsc > index 155aea4bc4..99b0e49d46 100644 > --- a/UefiPayloadPkg/UefiPayloadPkg.dsc > +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc > @@ -87,6 +87,12 @@ > # > > DEFINE SHELL_TYPE = BUILD_SHELL > > > > + # > > + # Disable features > > + # > > + DEFINE DISABLE_VARIABLE = FALSE > > + DEFINE DISABLE_RESET_SYSTEM = FALSE > > + > > [BuildOptions] > > *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES > > GCC:*_UNIXGCC_*_CC_FLAGS = -DMDEPKG_NDEBUG > > @@ -431,10 +437,13 @@ > MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf > > MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf > > > MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCoun > terRuntimeDxe.inf > > +!if $(DISABLE_RESET_SYSTEM) == FALSE > > > MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntime > Dxe.inf > > +!endif > > > PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntime > Dxe.inf > > +!if $(DISABLE_VARIABLE) == FALSE > > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf > > - > > +!endif > > # > > # Following are the DXE drivers > > # > > diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf > b/UefiPayloadPkg/UefiPayloadPkg.fdf > index 6073f9c1b4..3b6adc2cfe 100644 > --- a/UefiPayloadPkg/UefiPayloadPkg.fdf > +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf > @@ -105,9 +105,16 @@ INF > MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf > INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf > > INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf > > INF > MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCoun > terRuntimeDxe.inf > > + > > +!if $(DISABLE_RESET_SYSTEM) == FALSE > > INF > MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntime > Dxe.inf > > +!endif > > + > > INF > PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntime > Dxe.inf > > + > > +!if $(DISABLE_VARIABLE) == FALSE > > INF > MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf > > +!endif > > > > INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf > > INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf > > -- > 2.16.2.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#76867): https://edk2.groups.io/g/devel/message/76867 Mute This Topic: https://groups.io/mt/83669565/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-