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.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/patches/bitbake_checksumwarningsuppress.patch b/patches/bitbake_checksumwarningsuppress.patch
new file mode 100644
index 0000000..b3b361c
--- /dev/null
+++ b/patches/bitbake_checksumwarningsuppress.patch
@@ -0,0 +1,21 @@
+#
+# Suppress repetitive warnings. Thes will sometimes print five or six
+# times for each file. If we aren't checking the checksums, why bother?
+#
+diff -Naru orig/bitbake/lib/bb/fetch2/__init__.py new/bitbake/lib/bb/fetch2/__init__.py
+--- orig/bitbake/lib/bb/fetch2/__init__.py 2017-10-24 12:15:19.280615256 -0500
++++ new/bitbake/lib/bb/fetch2/__init__.py 2017-10-25 11:51:53.166099032 -0500
+@@ -1122,11 +1122,12 @@
+
+ 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', True), os.path.basename(f)))