genimage.sh: fix calling from BR2_ROOTFS_POST_IMAGE_SCRIPT
authorAbhimanyu Vishwakarma <Abhimanyu.V@gmail.com>
Mon, 24 Apr 2017 05:24:45 +0000 (10:54 +0530)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 27 Apr 2017 20:55:52 +0000 (22:55 +0200)
commite73cf8a228a15ae11530cd589b11930cf4f4478d
tree68fc1e48d58e994396296463e4925510f73122de
parentbb1c63763d862419e22f30b90fcd5179d40a0c5a
genimage.sh: fix calling from BR2_ROOTFS_POST_IMAGE_SCRIPT

When called from BR2_ROOTFS_POST_IMAGE_SCRIPT, this script
ends up with following error:

Error: Missing argument

This is because, an extra positional argument is also passed
along with BR2_ROOTFS_POST_SCRIPT_ARGS. genimage.sh didn't
have support to parse positional and optional arguments
together.

Signed-off-by: Abhimanyu Vishwakarma <Abhimanyu.V@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/scripts/genimage.sh