cmd: pxe: execute the cls command only when supported
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 3 Dec 2019 08:38:35 +0000 (09:38 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 22 Jan 2020 22:49:25 +0000 (17:49 -0500)
commite9c669867a8473116673a1e996ff74bbb1867f55
treefbd11c57c96113de0e289e5475c651d9af5ce3e1
parente605ab8483800465df9a72c56cf00034ebe6993d
cmd: pxe: execute the cls command only when supported

Execute the command cls (for clear screen), when the "menu background"
keyword is present in extlinux.conf file, only if the command is supported.

This patch avoid the warning "Unknown command 'cls'"
with "menu background" in extlinux.conf when CONFIG_CMD_BMP is activated
and CONFIG_CMD_CLS not activated (default for CONFIG_DM_VIDEO).

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
cmd/pxe_utils.c