summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2020-07-13 01:08:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-07-14 20:20:18 +0200
commit0fc1b594a23a99ebfb3b1ee035711af4fc36ea86 (patch)
tree589e25c7c3169b27fac90130f3ec53d3d20cf2ed /scripts
parent420577740f190a9bcc80270952b18c875dce9542 (diff)
downloadbarebox-0fc1b594a23a99ebfb3b1ee035711af4fc36ea86.tar.gz
barebox-0fc1b594a23a99ebfb3b1ee035711af4fc36ea86.tar.xz
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.c9
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,
}, {