bootstd: Set the distro_bootpart env var with scripts
authorSimon Glass <sjg@chromium.org>
Tue, 17 Jan 2023 17:47:58 +0000 (10:47 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 23 Jan 2023 23:11:40 +0000 (18:11 -0500)
commit25365879029d06b17b29010547e7a992901f51c0
treec556c8d9cf06129efffa9a63b77a0f13e292cbeb
parente890e8c4cbeb6b8ed27d48be946ecec03ef267e2
bootstd: Set the distro_bootpart env var with scripts

This environment variable is supposed to be set so that the script knows
which partition holds the script. Set it before invoking the script.

Signed-off-by: Simon Glass <sjg@chromium.org>
boot/bootmeth_script.c
include/bootflow.h