9
0
Fork 0
barebox/scripts
Thomas Petazzoni d60819c626 scripts/kwbimage: add a few sanity checks
This commit uses the newly introduced image_count_options() function
to:

 - See if there is any DATA option that require the creation of an
   extended header for v0 header.

 - Verify that no more than one payload has been provided when
   creating a v0 header.

 - Verify that no more than one binary payload has been provided when
   creating a v1 header. Technically speaking, it is possible to
   support several payloads, but in real life, only one gets used, so
   we will only support that to make the code simpler for now. It can
   always be extended later on if needed.

 - Verify that no more than one payload has been provided when
   creating a v1 header.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-05-17 07:39:51 +02:00
..
basic Fix error handling with malloc, memalign etc. Introduce xmemalign(). 2011-01-07 10:21:22 +01:00
dtc dtc: remove autogenerated modules.order 2013-04-11 16:35:24 +02:00
kconfig Merge branch 'for-next/remove-fsf-address' 2012-10-03 21:12:48 +02:00
mod kbuild: Use Elfnn_Half as replacement for Elfnn_Section 2012-06-05 21:40:15 +02:00
setupmbr Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
.gitignore scripts: add kwboot tool 2013-05-11 17:23:36 +02:00
Kbuild.include Make: Fix if_changed when command contains backslashes 2012-09-16 22:10:22 +02:00
Makefile scripts: add kwboot tool 2013-05-11 17:23:36 +02:00
Makefile.build pbl: Add missing FORCE 2012-10-26 08:54:33 +02:00
Makefile.clean Makefile.clean: include Makefiles again 2012-08-03 17:17:03 +08:00
Makefile.host svn_rev_008 2007-07-05 18:01:13 +02:00
Makefile.lib Makefile.lib: Add dtc support 2013-03-12 18:43:31 +01:00
Makefile.modpost rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
bareboxenv.c bareboxenv: Return proper exit code on failure. 2013-02-26 15:01:54 +01:00
bin2c.c svn_rev_429 2007-07-05 18:01:53 +02:00
checkpatch.pl scripts: allow lines longer than 80 cols with printf() in checkpatch 2013-05-06 09:20:29 +02:00
compiler.h scripts/compiler.h: fixup endianess defines on OS X 2012-06-05 21:40:15 +02:00
doxy_filter.awk doc: add macros to unify command help with doxygen 2010-11-01 16:23:08 +01:00
gen_netx_image.c netX: add more common permissions 2012-04-23 07:52:46 +02:00
genenv Merge branch 'for-next/defaultenv-deps' 2012-10-03 21:18:10 +02:00
kallsyms.c scripts: Fix compilation warning. 2011-05-04 08:41:46 +02:00
kwbimage.c scripts/kwbimage: add a few sanity checks 2013-05-17 07:39:51 +02:00
kwboot.c scripts: kwboot: add support for Marvell Dove 2013-05-14 07:10:13 +02:00
mk-am35xx-spi-image.c ARM omap spi image: print error to stderr 2012-10-26 08:57:16 +02:00
mkcompile_h Makefile: fix build timestamps 2012-04-15 15:18:17 +02:00
mkimage.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
mkmakefile Add scripts/mkmakefile from Linux. This is necessary if you want to 2007-11-09 11:47:07 +01:00
mksysmap rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
mkublheader.c scripts/mkublheader: add program to produce an UBL image header 2012-07-04 09:13:23 +02:00
netconsole add netconsole host script 2010-06-24 17:37:00 +02:00
omap4_usbboot.c OMAP4 USB BOOT: remove double line endings 2013-02-25 09:18:03 +01:00
omap_signGP.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
s5p_cksum.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
setlocalversion Make: update setlocalversion from the kernel 2013-03-09 20:14:15 +01:00
tags.sh Makefile: move ctags and cscope support to a shell script 2012-12-03 11:01:44 +01:00
usb.h omap4: add support for booting cpu from usb 2012-11-16 15:32:31 +01:00
usb_linux.c OMAP4_USB: more stable communications 2013-01-17 18:46:40 +01:00
zynq_mkimage.c ARM: zynq: add zynq fsbl checksum script 2013-03-27 09:23:49 +01:00