Skip to contentSkip to conversation

externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES

PATCH Superseded [email protected] 2 participants 3 messages Apr 16, 2018 – Apr 17, 2018

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES

From: Ming Liu <[email protected]>

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.

---
 meta/classes/externalsrc.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/externalsrc.bbclass +2 -1
index c9f5cf7..16c6862 100644
@@ -26,6 +26,7 @@
 
 SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
 EXTERNALSRC_SYMLINKS ?= "oe-workdir:${WORKDIR} oe-logs:${T}"
+INHIBIT_SRCTREE_FILE_CHECKSUMES ?= "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_CHECKSUMES'):
         ret = s_dir + '/*:True'
     return ret
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 20 lines · On Mon, Apr 16, 2018 at 12:26 PM, <[email protected]> wrote:

From: Ming Liu <[email protected]>

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.

---
 meta/classes/externalsrc.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/externalsrc.bbclass +0 -0
index c9f5cf7..16c6862 100644

meta/classes/externalsrc.bbclass line 29

Quoted 4 lines
meta/classes/externalsrc.bbclass +1 -0
@@ -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').

Quoted 19 lines
meta/classes/externalsrc.bbclass +1 -2
 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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

author
#2 lore raw

My mistake, that is a typo, will send the V2 soon.

//Ming Liu

2018-04-16 23:22 GMT+02:00 Andre McCurdy <[email protected]>:

Quoted 49 lines · On Mon, Apr 16, 2018 at 12:26 PM, <[email protected]> wrote:
Quoted 10 lines

From: Ming Liu <[email protected]>

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.

Review

Quoted 6 lines
---
 meta/classes/externalsrc.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
(quoted diff) +0 -0

b/meta/classes/externalsrc.bbclass

meta/classes/externalsrc.bbclass line 29

Quoted 8 lines

index c9f5cf7..16c6862 100644

meta/classes/externalsrc.bbclass +1 -0
@@ -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').

Quoted 19 lines
meta/classes/externalsrc.bbclass +1 -2
 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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core