From 7971cb0aa3e517a53f0ce6d3ee9bc3179041ccb8 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 25 May 2022 17:12:18 -0500 Subject: mLinux 6 --- patches/bitbake_checksumwarningsuppress.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 patches/bitbake_checksumwarningsuppress.patch (limited to 'patches/bitbake_checksumwarningsuppress.patch') 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))) -- cgit v1.2.3