boot: pxe: Use bootm_...() functions where possible
authorSimon Glass <sjg@chromium.org>
Thu, 6 Mar 2025 00:25:12 +0000 (17:25 -0700)
committerTom Rini <trini@konsulko.com>
Tue, 18 Mar 2025 19:12:15 +0000 (13:12 -0600)
commitb13408021d361fbae1c254307f139ad1e6def3d2
treefd560e35c5880e570536658ee6e735605cea783d
parentecd50bb4643c9052e5f8b6171ab6c3905ed0ca70
boot: pxe: Use bootm_...() functions where possible

Rather than building a command line for each operation, use the
functions provided by the bootm API.

Make sure that the bootm functions are available if pxe_utils is used.

Since SYS_BOOTM_LEN is not present for the tools-only build, adjust the
code to handle that.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
boot/Makefile
boot/pxe_utils.c