summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@open-rnd.pl>2014-12-10 12:45:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-31 10:19:07 +0000
commit0b8a386a68819dc10e0d5d73b5be96ee4a8482bd (patch)
tree1355d127c75f582f67c48fbd5ba28714edf2fc2a /scripts
parent87f7ca26133b456420fa793e01c99f8a281e2cb6 (diff)
downloadpoky-0b8a386a68819dc10e0d5d73b5be96ee4a8482bd.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) (From OE-Core rev: bcc7612dc98b22dc61162a9c403ecc92989d9484) 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> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/plugins/source/bootimg-partition.py2
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