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 18:08:02 +0000 |
commit | 90487dfbbbfcb4928cbcc25ba368f0196b5fc1ce (patch) | |
tree | 6f3e0e0c2ee755b67d7fbf9ffb0b3dc270f61e3f /scripts/lib/wic/plugins/source/bootimg-partition.py | |
parent | 94e14422f6af3f34e0d71fef1bcbe48ff63e1946 (diff) | |
download | poky-90487dfbbbfcb4928cbcc25ba368f0196b5fc1ce.tar.gz |
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.
(From OE-Core rev: e56072aaaad6cfa222853a4e9e68dd8aa861de18)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/plugins/source/bootimg-partition.py')
-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): | |||
90 | for src_entry in re.findall(r'[\w;\-\./]+', boot_files): | 90 | for src_entry in re.findall(r'[\w;\-\./]+', boot_files): |
91 | if ';' in src_entry: | 91 | if ';' in src_entry: |
92 | dst_entry = tuple(src_entry.split(';')) | 92 | dst_entry = tuple(src_entry.split(';')) |
93 | if not dst_entry[0] or not dst_entry[1]: | ||
94 | msger.error('Malformed boot file entry: %s' % (src_entry)) | ||
93 | else: | 95 | else: |
94 | dst_entry = (src_entry, src_entry) | 96 | dst_entry = (src_entry, src_entry) |
95 | 97 | ||