All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES
@ 2018-04-17  0:25 liu.ming50
  2018-04-17  0:34 ` Peter Kjellerstedt
  0 siblings, 1 reply; 3+ messages in thread
From: liu.ming50 @ 2018-04-17  0:25 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ming Liu

From: Ming Liu <liu.ming50@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@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..2b83193 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_CHECKSUMS ?= "0"
 
 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_CHECKSUMS'):
         ret = s_dir + '/*:True'
     return ret
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH V2] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES
  2018-04-17  0:25 [PATCH V2] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES liu.ming50
@ 2018-04-17  0:34 ` Peter Kjellerstedt
  2018-04-17  0:42   ` Ming Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Kjellerstedt @ 2018-04-17  0:34 UTC (permalink / raw)
  To: liu.ming50, openembedded-core

> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> liu.ming50@gmail.com
> Sent: den 17 april 2018 02:25
> To: openembedded-core@lists.openembedded.org
> Cc: Ming Liu <liu.ming50@gmail.com>
> Subject: [OE-core] [PATCH V2] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES

Please correct the subject as well.

> From: Ming Liu <liu.ming50@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@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..2b83193 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_CHECKSUMS ?= "0"
> 
>  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_CHECKSUMS'):
>          ret = s_dir + '/*:True'
>      return ret
> 
> --
> 2.7.4

//Peter



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH V2] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES
  2018-04-17  0:34 ` Peter Kjellerstedt
@ 2018-04-17  0:42   ` Ming Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Ming Liu @ 2018-04-17  0:42 UTC (permalink / raw)
  To: Peter Kjellerstedt; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1973 bytes --]

Oops, will send a V3.

2018-04-17 2:34 GMT+02:00 Peter Kjellerstedt <peter.kjellerstedt@axis.com>:

> > -----Original Message-----
> > From: openembedded-core-bounces@lists.openembedded.org
> > [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> > liu.ming50@gmail.com
> > Sent: den 17 april 2018 02:25
> > To: openembedded-core@lists.openembedded.org
> > Cc: Ming Liu <liu.ming50@gmail.com>
> > Subject: [OE-core] [PATCH V2] externalsrc.bbclass: introduce
> INHIBIT_SRCTREE_FILE_CHECKSUMES
>
> Please correct the subject as well.
>
> > From: Ming Liu <liu.ming50@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@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..2b83193 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_CHECKSUMS ?= "0"
> >
> >  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_CHECKSUMS'):
> >          ret = s_dir + '/*:True'
> >      return ret
> >
> > --
> > 2.7.4
>
> //Peter
>
>

[-- Attachment #2: Type: text/html, Size: 3199 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-04-17  0:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-17  0:25 [PATCH V2] externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES liu.ming50
2018-04-17  0:34 ` Peter Kjellerstedt
2018-04-17  0:42   ` Ming Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.