From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) by mx.groups.io with SMTP id smtpd.web12.8986.1592924723683817823 for ; Tue, 23 Jun 2020 08:05:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@9elements.com header.s=google header.b=bOVYCnjs; spf=pass (domain: 9elements.com, ip: 209.85.128.46, mailfrom: marcello.bauer@9elements.com) Received: by mail-wm1-f46.google.com with SMTP id f18so3587322wml.3 for ; Tue, 23 Jun 2020 08:05:23 -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=f88rBnijN8GYl8uHoPZBnTlKdC4hc8UZ8ErYe6uScTs=; b=bOVYCnjsDNMHk7txOt7GXv9sA4/TMaG+7HzFwqavUibG+uNz9s4RcOLUO48hMfmNlk lO+3GLOYkpVK4hMMDNvYNfv/zAdYqdMuEzKOwbWk2D4JG3g7LCRbsGb8xyD+UghMpzX1 1LL6R5CJKZCXHdRbOEJc4s9OLWzfznC7Pn+Temdqrq86RQr7fBo2WND053BJVz+F43CM DAhsPDSCYX1oQ3Qb2q6UeBt3YD/PC9QOEKY8nghFRf7y8s3dHCxUcwziVmRx/V2fQsmr h4WeDjTXYqzl/rqxVWA+zfviKNOXqeTIao/Fyr4BT1wUrf/2CEz3LBE70EFitWOl9NC+ 4ObQ== 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=f88rBnijN8GYl8uHoPZBnTlKdC4hc8UZ8ErYe6uScTs=; b=ndiBbJfWih+VBPCtuTPRXv/5NFGHNs5l3aa/XGalAibWpx2jvgao3Obvmvsqd1lId3 bSyPx72eXfG/Gue1QtjzJiNetMoIJzErJ1BA2g5CqF2cPUlVNGKcY3I0v+7YJYI+1ah1 /NBL03Zxa57ZChHHlBOM5JkRF8JESyPF9YeezZz2mrYcYqmADMNHS892uOfn8Kv0G1q2 b7wls2+e5jcryVXLSr3C72+2WbHXLqVWSe4K3rRKOe6bzgBpfEuychCUnv/thoJ009IW ZB/Cv1Pvt2TwEhWlUCxn0RrqZ3rBGn+tCwfN+1iFqnefYOWK5LRPZSZbmYkiXKZu/B6X CSUw== X-Gm-Message-State: AOAM531t3thtfAscrMFSOcRYYK96BW8b+Z88Q/CNM97eXVKZu/18KkbQ VC4wBQ8VsBnMAUuR/B6pYUpnb5DFRYjgww== X-Google-Smtp-Source: ABdhPJx7wktdqI42a788eliihXyC91WwI6CQvP+d4+HfdAshxGKTyq1PBeVlqLDQRqDsp/VZSpMWWA== X-Received: by 2002:a05:600c:285:: with SMTP id 5mr5409018wmk.41.1592924720885; Tue, 23 Jun 2020 08:05:20 -0700 (PDT) Return-Path: Received: from T580.9e.network (ip-37-201-52-232.hsi13.unitymediagroup.de. [37.201.52.232]) by smtp.gmail.com with ESMTPSA id d28sm24888597wrc.50.2020.06.23.08.05.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jun 2020 08:05:20 -0700 (PDT) From: Marcello Sylvester Bauer To: devel@edk2.groups.io Cc: Maurice Ma , Guo Dong , Benjamin You Subject: [UefiPayloadPkg: Make TerminalDxe build time configurable 1/1] UefiPayloadPkg: Make TerminalDxe build time configurable Date: Tue, 23 Jun 2020 17:02:48 +0200 Message-Id: <20200623150248.16206-2-marcello.bauer@9elements.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200623150248.16206-1-marcello.bauer@9elements.com> References: <20200623150248.16206-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. Disable it by default and add the option SERIAL_TERMINAL to enabled it for headless platforms. Signed-off-by: Patrick Rudolph Signed-off-by: Marcello Sylvester Bauer 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..2ea475a4cee4 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 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 $(SERIAL_TERMINAL) =3D=3D TRUE=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..62539ad56031 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 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 $(SERIAL_TERMINAL) =3D=3D TRUE=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..bda831d77c9b 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 $(SERIAL_TERMINAL) =3D=3D TRUE=0D INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf=0D +!endif=0D INF UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf=0D =0D #=0D --=20 2.25.4