diff options
author | Maciej Borzecki <maciej.borzecki@open-rnd.pl> | 2014-12-10 12:45:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-19 17:54:16 +0000 |
commit | e56072aaaad6cfa222853a4e9e68dd8aa861de18 (patch) | |
tree | 4db47d25699f68503614447744d883c674e8e982 /scripts/lib | |
parent | d1cf188783ea5ae9013996a208f60960e3e7a6e7 (diff) | |
download | openembedded-core-e56072aaaad6cfa222853a4e9e68dd8aa861de18.tar.gz openembedded-core-e56072aaaad6cfa222853a4e9e68dd8aa861de18.tar.bz2 openembedded-core-e56072aaaad6cfa222853a4e9e68dd8aa861de18.zip |
wic: IMAGE_BOOT_FILES format checks in bootimg-partition source
Check for malformed entries in IMAGE_BOOT_FILES, fail early if such
entries were found.
Signed-off-by: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/plugins/source/bootimg-partition.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/wic/plugins/source/bootimg-partition.py b/scripts/lib/wic/plugins/source/bootimg-partition.py index abf24942e8..564118ad8b 100644 --- a/scripts/lib/wic/plugins/source/bootimg-partition.py +++ b/scripts/lib/wic/plugins/source/bootimg-partition.py @@ -90,6 +90,8 @@ class BootimgPartitionPlugin(SourcePlugin): for src_entry in re.findall(r'[\w;\-\./]+', boot_files): if ';' in src_entry: dst_entry = tuple(src_entry.split(';')) + if not dst_entry[0] or not dst_entry[1]: + msger.error('Malformed boot file entry: %s' % (src_entry)) else: dst_entry = (src_entry, src_entry) |