[OE-core] [PATCH] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES
Ming Liu
liu.ming50 at gmail.com
Tue Apr 17 00:22:15 UTC 2018
My mistake, that is a typo, will send the V2 soon.
//Ming Liu
2018-04-16 23:22 GMT+02:00 Andre McCurdy <armccurdy at gmail.com>:
> On Mon, Apr 16, 2018 at 12:26 PM, <liu.ming50 at gmail.com> wrote:
> > From: Ming Liu <liu.ming50 at gmail.com>
> >
> > It defaults to be '0', but it allows the developers to choose not add
> > file-checksums to do_compile for the entire source tree, by setting to
> > '1'.
> >
> > We need this because we have a huge project with 100G bytes source
> > files, and we do not want them to be added to file-checksums variable
> > flag.
> >
> > Signed-off-by: Ming Liu <liu.ming50 at gmail.com>
> > ---
> > meta/classes/externalsrc.bbclass | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/meta/classes/externalsrc.bbclass
> b/meta/classes/externalsrc.bbclass
> > index c9f5cf7..16c6862 100644
> > --- a/meta/classes/externalsrc.bbclass
> > +++ b/meta/classes/externalsrc.bbclass
> > @@ -26,6 +26,7 @@
> >
> > SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
> > EXTERNALSRC_SYMLINKS ?= "oe-workdir:${WORKDIR} oe-logs:${T}"
> > +INHIBIT_SRCTREE_FILE_CHECKSUMES ?= "0"
>
> Plural of CHECKSUM is CHECKSUMS (ie no 'E').
>
> > python () {
> > externalsrc = d.getVar('EXTERNALSRC')
> > @@ -212,7 +213,7 @@ def srctree_hash_files(d, srcdir=None):
> > with open(oe_hash_file, 'w') as fobj:
> > fobj.write(sha1)
> > ret = oe_hash_file + ':True'
> > - else:
> > + elif not d.getVar('INHIBIT_SRCTREE_FILE_CHECKSUMES'):
> > ret = s_dir + '/*:True'
> > return ret
> >
> > --
> > 2.7.4
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180417/519db8d1/attachment-0002.html>
More information about the Openembedded-core
mailing list