From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.web10.10154.1592992682663760499 for ; Wed, 24 Jun 2020 02:58:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=aOgmAwcr; spf=pass (domain: 9elements.com, ip: 209.85.221.54, mailfrom: marcello.bauer@9elements.com) Received: by mail-wr1-f54.google.com with SMTP id h15so1633888wrq.8 for ; Wed, 24 Jun 2020 02:58:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=9elements.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WXJ9tbuz1xbPElhrtan1+BeuZhfDgdRqPXI2t89zbyM=; b=aOgmAwcrfBWldgkTDnMuXGhDlbqMpBjl0ctvzQIDhgIctX37fqOPhI+lYorH2GjHdf GSHIOrG2jVv54GRlSHL9gKtisClv8AdUQJb8jHqK0yMjnS0GN2MFwIyciVRPGZi8IRrB pHwx7GgyFptcJbb7z8TzbOMuPwS84ZQPeqUSIYl9w+htJf/jPRnL2XETWWnwGFSphVSH NDeMFyowHlLyY0TUCNeloL1+TqJ9wP8Qfor/qrv5D4eNtx4fJONHL7eZmMpMW2AczvTY SvBTdIjjj+k7dd7nGiYmObXLFZw75zWGFNQ3HYRMXKdxxToIjFgE1jxOEH3J81wssFYe Y0vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WXJ9tbuz1xbPElhrtan1+BeuZhfDgdRqPXI2t89zbyM=; b=GgZnsjUmzec/EF7zr4kJSkuIrgQcWNy2HmCXVPHkwyuY8xYKjVk8jVSeMVxypx0Uc0 4lM1z8NMsABXEqENfJhog69M+9f60oH0ZEYj1Ahsvx7sGHnoRLplMQojc0AB6VPuN0kj MCb8ybKwALjjHznxx2zv+hk7NTCqj8tET0cdov9iQMGL9lCf+xD8tOrV3V2HH8zBpd+D 9cMifoEh+Jx4EDAm9F0Eg61n/YfLpOjfRaUZ8ce28VbfdSOBwGCFZZ81p0TmPRzG5IJh nGifOQw9vwCyDidBQjAKFm5dK0pCDsTdTmybjDlXLn3mnMiB/cHbyOas/HdYoONtXAsb PMuA== X-Gm-Message-State: AOAM5337ihLMrofkAKvwjTE3rLU+vA4uwVDG3CDXSAztkenUqoRlVBwS gVD7qQEnXioznDphItyfGHpPN8HVeF2r7g== X-Google-Smtp-Source: ABdhPJxesrok8C6Bj7RnA8RO9yZPuyUDCb1VfDV2trbN3+rlBEu8xwTo4VNpAJElhkjH6UpttqOSww== X-Received: by 2002:a5d:5341:: with SMTP id t1mr32077648wrv.207.1592992680973; Wed, 24 Jun 2020 02:58:00 -0700 (PDT) Return-Path: Received: from T580.n1ce.space ([2a02:908:e851:d750:6547:7a47:84ac:1330]) by smtp.gmail.com with ESMTPSA id f12sm13307686wrw.53.2020.06.24.02.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 02:58:00 -0700 (PDT) From: "Marcello Sylvester Bauer" To: devel@edk2.groups.io Cc: Patrick Rudolph , Christian Walter , Maurice Ma , Guo Dong , Benjamin You Subject: [PATCH v2 1/1] UefiPayloadPkg: Make TerminalDxe build time configurable Date: Wed, 24 Jun 2020 11:57:55 +0200 Message-Id: <20200624095755.27057-2-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200624095755.27057-1-marcello.bauer@9elements.com> References: <20200624095755.27057-1-marcello.bauer@9elements.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Patrick Rudolph As the TerminalDxe significantly slows down the boot menu rendering, add the DISABLE_SERIAL_TERMINAL option to disable it at build time. Signed-off-by: Patrick Rudolph Signed-off-by: Marcello Sylvester Bauer Cc: Patrick Rudolph Cc: Christian Walter Cc: Maurice Ma Cc: Guo Dong Cc: Benjamin You --- UefiPayloadPkg/UefiPayloadPkgIa32.dsc | 5 +++++ UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc | 5 +++++ UefiPayloadPkg/UefiPayloadPkg.fdf | 2 ++ 3 files changed, 12 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadPkgIa32.dsc b/UefiPayloadPkg/UefiPay= loadPkgIa32.dsc index c6c47833871b..49f42285882d 100644 --- a/UefiPayloadPkg/UefiPayloadPkgIa32.dsc +++ b/UefiPayloadPkg/UefiPayloadPkgIa32.dsc @@ -58,6 +58,9 @@ [Defines] DEFINE UART_DEFAULT_STOP_BITS =3D 1=0D DEFINE DEFAULT_TERMINAL_TYPE =3D 0=0D =0D + # Enabling the serial terminal will slow down the boot menu rendering!=0D + DEFINE DISABLE_SERIAL_TERMINAL =3D FALSE=0D +=0D #=0D # typedef struct {=0D # UINT16 VendorId; ///< Vendor ID to match the PCI device. = The value 0xFFFF terminates the list of entries.=0D @@ -502,7 +505,9 @@ [Components.IA32] MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf=0D MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf=0D MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf= =0D +!if $(DISABLE_SERIAL_TERMINAL) =3D=3D FALSE=0D MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf=0D +!endif=0D UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf=0D =0D #------------------------------=0D diff --git a/UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc b/UefiPayloadPkg/Uefi= PayloadPkgIa32X64.dsc index 5559b1258521..33805902f705 100644 --- a/UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc +++ b/UefiPayloadPkg/UefiPayloadPkgIa32X64.dsc @@ -59,6 +59,9 @@ [Defines] DEFINE UART_DEFAULT_STOP_BITS =3D 1=0D DEFINE DEFAULT_TERMINAL_TYPE =3D 0=0D =0D + # Enabling the serial terminal will slow down the boot menu redering!=0D + DEFINE DISABLE_SERIAL_TERMINAL =3D FALSE=0D +=0D #=0D # typedef struct {=0D # UINT16 VendorId; ///< Vendor ID to match the PCI device. = The value 0xFFFF terminates the list of entries.=0D @@ -504,7 +507,9 @@ [Components.X64] MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf=0D MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf=0D MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf= =0D +!if $(DISABLE_SERIAL_TERMINAL) =3D=3D FALSE=0D MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf=0D +!endif=0D UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf=0D =0D #------------------------------=0D diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload= Pkg.fdf index dfbcde566849..03ff6a9595d1 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.fdf +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf @@ -131,7 +131,9 @@ [FV.DXEFV] INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf=0D INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf=0D INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.i= nf=0D +!if $(DISABLE_SERIAL_TERMINAL) =3D=3D FALSE=0D INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf=0D +!endif=0D INF UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf=0D =0D #=0D --=20 2.25.4