]> git.proxmox.com Git - mirror_edk2.git/commit
ShellPkg: Export default shell delay as PCD
authorTomas Pilar <quic_tpilar@quicinc.com>
Tue, 3 Jan 2023 17:02:29 +0000 (09:02 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 20 Jan 2023 16:43:51 +0000 (16:43 +0000)
commite96a5734f6b1b1d38a60d9ecf77a453ae2fc8303
treeb3e3e7474f93c968e193c9b0e7b98647e646108e
parentbf5678b5802685e07583e3c7ec56d883cbdd5da3
ShellPkg: Export default shell delay as PCD

Create PcdShellDefaultDelay to configure the default
delay the shell provides for the user at the start time
if the user wishes to cancel the execution of a potential
startup script.

The shell application already allows the user to override
the delay default value by specifying the -delay cmdline
argument. This however cannot be used when loading the
shell application using direct boot or when integrating
the shell into the platform firmware build.

Thus, a PCD can be easily configured by the developer
either at build time, or even at runtime.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Zhichao Gao <zhichao.gao@intel.com>
Signed-off-by: Tomas Pilar <tomas@quicinc.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
ShellPkg/Application/Shell/Shell.c
ShellPkg/Application/Shell/Shell.inf
ShellPkg/ShellPkg.dec