diff options
Diffstat (limited to 'meta/classes/devicetree.bbclass')
-rw-r--r-- | meta/classes/devicetree.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/devicetree.bbclass b/meta/classes/devicetree.bbclass index e1f377911d..5c03e4b0fd 100644 --- a/meta/classes/devicetree.bbclass +++ b/meta/classes/devicetree.bbclass | |||
@@ -122,9 +122,12 @@ python devicetree_do_compile() { | |||
122 | includes = expand_includes("DT_INCLUDE", d) | 122 | includes = expand_includes("DT_INCLUDE", d) |
123 | listpath = d.getVar("DT_FILES_PATH") | 123 | listpath = d.getVar("DT_FILES_PATH") |
124 | for dts in os.listdir(listpath): | 124 | for dts in os.listdir(listpath): |
125 | if not dts.endswith(".dts"): | ||
126 | continue # skip non-.dts files | ||
127 | dtspath = os.path.join(listpath, dts) | 125 | dtspath = os.path.join(listpath, dts) |
126 | try: | ||
127 | if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)): | ||
128 | continue # skip non-.dts files and non-overlay files | ||
129 | except: | ||
130 | continue # skip if can't determine if overlay | ||
128 | devicetree_compile(dtspath, includes, d) | 131 | devicetree_compile(dtspath, includes, d) |
129 | } | 132 | } |
130 | 133 | ||