The existing code works only on sandbox, generating test data rather than a real payload. Add a check for this.
Eventually a real writer will be in place. Signed-off-by: Simon Glass <s...@chromium.org> --- cmd/upl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/upl.c b/cmd/upl.c index c9a823bbc06..d8d46cdf34f 100644 --- a/cmd/upl.c +++ b/cmd/upl.c @@ -56,6 +56,11 @@ static int do_upl_write(struct cmd_tbl *cmdtp, int flag, int argc, ulong addr; int ret; + if (!IS_ENABLED(CONFIG_UNIT_TEST)) { + printf("Not yet implemented\n"); + return CMD_RET_FAILURE; + } + upl_get_test_data(&uts, upl); log_debug("Writing UPL\n"); -- 2.43.0