externalsrc.bbclass: introduce INHIBIT_SRCTREE_FILE_CHECKSUMES
PATCH v2 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
@@ -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
Signature · 1 line
2.7.4
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: den 17 april 2018 02:25
To: [email protected]
Cc: Ming Liu <[email protected]>
Subject: [OE-core] [PATCH V2] externalsrc.bbclass: introduceINHIBIT_SRCTREE_FILE_CHECKSUMES
Please correct the subject as well.
Quoted 38 lines
From: Ming Liu <[email protected]>
It defaults to be '0', but it allows the developers to choose not add file-checksums to
do_compilefor 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 <[email protected]>--- meta/classes/externalsrc.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/classes/externalsrc.bbclass +2
-2@@ -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 --
Quoted 1 line
2.7.4
//Peter
Oops, will send a V3.
2018-04-17 2:34 GMT+02:00 Peter Kjellerstedt <[email protected]>:
Quoted 55 lines
Quoted 8 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of [email protected]
Sent: den 17 april 2018 02:25
To: [email protected]
Cc: Ming Liu <[email protected]>
Subject: [OE-core] [PATCH V2] externalsrc.bbclass: introduce
INHIBIT_SRCTREE_FILE_CHECKSUMESPlease correct the subject as well.
Quoted 38 lines
From: Ming Liu <[email protected]>
It defaults to be '0', but it allows the developers to choose not add file-checksums to
do_compilefor 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 <[email protected]>--- meta/classes/externalsrc.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)meta/classes/externalsrc.bbclass +2
-2@@ -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 --Quoted 1 line
2.7.4
//Peter