pxe: Allow calling the pxe_get logic directly
authorSimon Glass <sjg@chromium.org>
Thu, 14 Oct 2021 18:48:11 +0000 (12:48 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Nov 2021 00:02:43 +0000 (19:02 -0500)
commitd50244e9d8583378770392fb429a0283b2b47885
tree61dff7a6190c6f17c4a9bede54043fafc221fa41
parent37c5195dfcd15781db9e9f7f414611dc1af3bd2e
pxe: Allow calling the pxe_get logic directly

Refactor this code so that we can call the 'pxe get' command without going
through the command-line interpreter. This makes it easier to get the
information we need, without going through environment variables.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Artem Lapkin <email2tema@gmail.com>
Tested-by: Artem Lapkin <email2tema@gmail.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
cmd/pxe.c
include/pxe_utils.h