diff options
author | John Klug <john.klug@multitech.com> | 2018-07-31 17:48:08 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-07-31 17:48:08 -0500 |
commit | b5dd8c128624cb77576d692b68e24691d4d9a96d (patch) | |
tree | 4a0cc0a718fa98582fd70719a83b826c2d990cf5 /patches/bitbake_checksumwarningsuppress.patch | |
parent | e08c220730d5da161a746d811268eb1550beb856 (diff) | |
download | mlinux-b5dd8c128624cb77576d692b68e24691d4d9a96d.tar.gz mlinux-b5dd8c128624cb77576d692b68e24691d4d9a96d.tar.bz2 mlinux-b5dd8c128624cb77576d692b68e24691d4d9a96d.zip |
mLinux 4
Diffstat (limited to 'patches/bitbake_checksumwarningsuppress.patch')
-rw-r--r-- | patches/bitbake_checksumwarningsuppress.patch | 21 |
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))) |