summaryrefslogtreecommitdiff
path: root/patches/bitbake_checksumwarningsuppress.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/bitbake_checksumwarningsuppress.patch')
-rw-r--r--patches/bitbake_checksumwarningsuppress.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/bitbake_checksumwarningsuppress.patch b/patches/bitbake_checksumwarningsuppress.patch
new file mode 100644
index 0000000..438a6f2
--- /dev/null
+++ b/patches/bitbake_checksumwarningsuppress.patch
@@ -0,0 +1,18 @@
+diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
+index dc99914c..f622fc7b 100644
+--- a/bitbake/lib/bb/fetch2/__init__.py
++++ b/bitbake/lib/bb/fetch2/__init__.py
+@@ -1188,11 +1188,12 @@ def get_checksum_file_list(d):
+
+ if ud and isinstance(ud.method, local.Local):
+ paths = ud.method.localpaths(ud, d)
++ strict = d.getVar("BB_STRICT_CHECKSUM", True) or "0"
+ for f in paths:
+ pth = ud.decodedurl
+ if '*' in pth:
+ f = os.path.join(os.path.abspath(f), pth)
+- if f.startswith(dl_dir):
++ if f.startswith(dl_dir) and (strict == "1"):
+ # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else
+ if os.path.exists(f):
+ bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN'), os.path.basename(f)))