From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web10.3434.1631951375953336824 for ; Sat, 18 Sep 2021 00:49:36 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: zhiguang.liu@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="219736388" X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="219736388" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2021 00:49:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="555113849" Received: from shwdesfp01.ccr.corp.intel.com ([10.239.158.158]) by fmsmga002.fm.intel.com with ESMTP; 18 Sep 2021 00:49:31 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Guo Dong , Ray Ni , Maurice Ma , Benjamin You Subject: [PATCH] UefiPayloadPkg: Add Macro to enable or diable some drivers. Date: Sat, 18 Sep 2021 15:49:17 +0800 Message-Id: <20210918074917.553-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.32.0.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Add Macro to enable or diable RamDiskDxe and SioBusDxe drivers. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by: Zhiguang Liu --- UefiPayloadPkg/UefiPayloadPkg.dsc | 10 ++++++++-- UefiPayloadPkg/UefiPayloadPkg.fdf | 7 +++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 9d7f311343..fb805dc772 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -28,6 +28,8 @@ =0D DEFINE SOURCE_DEBUG_ENABLE =3D FALSE=0D DEFINE PS2_KEYBOARD_ENABLE =3D FALSE=0D + DEFINE RAM_DISK_ENABLE =3D FALSE=0D + DEFINE SIO_BUS_ENABLE =3D FALSE=0D DEFINE UNIVERSAL_PAYLOAD =3D FALSE=0D =0D #=0D @@ -536,8 +538,10 @@ MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf=0D MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf=0D MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf=0D - MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf=0D =0D +!if $(RAM_DISK_ENABLE) =3D=3D TRUE=0D + MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf=0D +!endif=0D #=0D # SD/eMMC Support=0D #=0D @@ -562,8 +566,10 @@ !if $(SERIAL_DRIVER_ENABLE) =3D=3D TRUE=0D MdeModulePkg/Universal/SerialDxe/SerialDxe.inf=0D !endif=0D -!if $(PS2_KEYBOARD_ENABLE) =3D=3D TRUE=0D +!if $(SIO_BUS_ENABLE) =3D=3D TRUE=0D OvmfPkg/SioBusDxe/SioBusDxe.inf=0D +!endif=0D +!if $(PS2_KEYBOARD_ENABLE) =3D=3D TRUE=0D MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf=0D !endif=0D MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf=0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload= Pkg.fdf index 6caa134081..6b48bfc869 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.fdf +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf @@ -142,8 +142,10 @@ INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridg= eDxe.inf !if $(SERIAL_DRIVER_ENABLE) =3D=3D TRUE=0D INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf=0D !endif=0D -!if $(PS2_KEYBOARD_ENABLE) =3D=3D TRUE=0D +!if $(SIO_BUS_ENABLE) =3D=3D TRUE=0D INF OvmfPkg/SioBusDxe/SioBusDxe.inf=0D +!endif=0D +!if $(PS2_KEYBOARD_ENABLE) =3D=3D TRUE=0D INF MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf=0D !endif=0D INF MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf=0D @@ -171,8 +173,9 @@ INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassT= hru.inf INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf=0D INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf=0D INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf=0D +!if $(RAM_DISK_ENABLE) =3D=3D TRUE=0D INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf=0D -=0D +!endif=0D INF FatPkg/EnhancedFatDxe/Fat.inf=0D =0D #=0D --=20 2.32.0.windows.2