diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-07-13 01:08:14 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-07-14 20:20:18 +0200 |
commit | 0fc1b594a23a99ebfb3b1ee035711af4fc36ea86 (patch) | |
tree | 589e25c7c3169b27fac90130f3ec53d3d20cf2ed /scripts | |
parent | 420577740f190a9bcc80270952b18c875dce9542 (diff) | |
download | barebox-0fc1b594a23a99ebfb3b1ee035711af4fc36ea86.tar.gz |
scripts: imx-image: throw descriptive error on encountering dcdofs
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@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/imx/imx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c index 4d2f65af9b..1fb3922fcf 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; @@ -589,6 +595,9 @@ struct command cmds[] = { .name = "ivtofs", .parse = do_ivt_offset, }, { + .name = "dcdofs", + .parse = do_dcdofs_error, + }, { .name = "soc", .parse = do_soc, }, { |