aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create
diff options
context:
space:
mode:
authorRicardo Salveti <ricardo.salveti@linaro.org>2015-10-27 02:40:25 -0200
committerFathi Boudra <fathi.boudra@linaro.org>2015-12-03 12:40:35 +0000
commite2aca5bd3a691507963f17ad00620ec221e8ade0 (patch)
tree62ab2ba8dd211dbea45e765c8ae18ce094dfcdf4 /linaro_image_tools/media_create
parentbe1515f9782a9ed1c46689a0017060a8a9e7cefd (diff)
downloadlinaro-image-tools-e2aca5bd3a691507963f17ad00620ec221e8ade0.tar.gz
boards: switch logic from or to and when checking for dtbs
Since we just want to warn the user if it can't find any dtb. Change-Id: I7b4addf9fe8bcda60b9c55e19b7d83e0724a4e49 Signed-off-by: Ricardo Salveti <ricardo.salveti@linaro.org>
Diffstat (limited to 'linaro_image_tools/media_create')
-rw-r--r--linaro_image_tools/media_create/boards.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linaro_image_tools/media_create/boards.py b/linaro_image_tools/media_create/boards.py
index 629b119..f6f03f8 100644
--- a/linaro_image_tools/media_create/boards.py
+++ b/linaro_image_tools/media_create/boards.py
@@ -939,7 +939,7 @@ class BoardConfig(object):
if not to_file:
to_file = os.path.basename(from_file)
dtb = _get_file_matching(os.path.join(path, from_file))
- if not self.dtb_files or not dtb:
+ if not self.dtb_files and not dtb:
logger.warn("Could not find a valid dtb file, skipping it.")
logger.info("Will use kernel=%s, initrd=%s, dtb=%s." %