With dcdofs renamed to ivtofs, out-of-tree boards will start to fail. Make the migration easier by suggesting what needs to be changed on stderr. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- scripts/imx/imx.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c index 4d2f65af9bc8..1fb3922fcf34 100644 --- a/scripts/imx/imx.c +++ b/scripts/imx/imx.c @@ -221,6 +221,12 @@ static int do_ivt_offset(struct config_data *data, int argc, char *argv[]) return 0; } +static int do_dcdofs_error(struct config_data *data, int argc, char *argv[]) +{ + fprintf(stderr, "ERROR: misnomer dcdofs has been renamed to ivtofs. imxcfg must be adapted.\n"); + return -EINVAL; +} + struct soc_type { char *name; int header_version; @@ -588,6 +594,9 @@ struct command cmds[] = { }, { .name = "ivtofs", .parse = do_ivt_offset, + }, { + .name = "dcdofs", + .parse = do_dcdofs_error, }, { .name = "soc", .parse = do_soc, -- 2.27.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox