summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-05-01 17:58:37 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-05-13 15:16:59 +0200
commit48d5bebe76fafdd7cc3a990b1e6e49468397a2cc (patch)
tree7571aa3447e59fa33eaef7cbdb0d655aca56759c
parent205c5283042ffd96859e1b78e539492a0143d0c4 (diff)
downloadbuildroot-48d5bebe76fafdd7cc3a990b1e6e49468397a2cc.tar.gz
buildroot-48d5bebe76fafdd7cc3a990b1e6e49468397a2cc.zip
package/mke2img: check nb_blocks is specified
Since we do not have autocalculation anymore, the user must specify the exact number of blocks. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rwxr-xr-xpackage/mke2img/mke2img3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index b773aa99db..758b6dee68 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -44,6 +44,9 @@ main() {
if [ -z "${image}" ]; then
error "you must specify an output image file with '-o'\n"
fi
+ if [ -z "${nb_blocks}" ]; then
+ error "you must specify the size of the output image with '-b'\n"
+ fi
case "${gen}:${rev}" in
2:0|2:1|3:1|4:1)
;;
OpenPOWER on IntegriCloud