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-19 18:08:02 +0000
commit90487dfbbbfcb4928cbcc25ba368f0196b5fc1ce (patch)
tree6f3e0e0c2ee755b67d7fbf9ffb0b3dc270f61e3f /scripts
parent94e14422f6af3f34e0d71fef1bcbe48ff63e1946 (diff)
downloadpoky-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')
-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