summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2021-08-06 11:33:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-08-09 19:56:29 +0200
commit679659452759811b040c15d3b1d989de21f18ab0 (patch)
tree617218165fadaead02a50719d9fec27b0b90d0d0 /scripts
parentba540e79eca794b6051effe54a2e34650c48a77a (diff)
downloadbarebox-679659452759811b040c15d3b1d989de21f18ab0.tar.gz
barebox-679659452759811b040c15d3b1d989de21f18ab0.tar.xz
scripts: bareboxenv: add erase hint if build as host-tool
The bareboxenv behviour is different if used as host-tool. As host-tool the erase is skipped which can confuse the user. Add a help note as hot fix. In the long term we should add the host-tool erase support as well. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.barebox.org/20210806093337.10153-1-m.felsch@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bareboxenv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/bareboxenv.c b/scripts/bareboxenv.c
index bdff644335..f1706a5e17 100644
--- a/scripts/bareboxenv.c
+++ b/scripts/bareboxenv.c
@@ -98,6 +98,12 @@ static void usage(char *prgname)
printf( "Usage : %s [OPTION] DIRECTORY FILE\n"
"Load a barebox environment sector into a directory or\n"
"save a directory into a barebox environment sector\n"
+#ifndef __BAREBOX__
+ "\n"
+ "Attention:\n"
+ "Depending on your environment backend storage you need to\n"
+ "erase FILE before you save the new environment.\n"
+#endif
"\n"
"options:\n"
" -s save (directory -> environment sector)\n"