]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
sstatesig: Allow exclusion of the root directory for do_package
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Feb 2024 00:12:25 +0000 (00:12 +0000)
committerSteve Sakoman <steve@sakoman.com>
Wed, 21 Feb 2024 13:45:28 +0000 (03:45 -1000)
The package task references WORKDIR at it's top level and we can't
easily make the timestamp for that determnistic due to writes to files
there and in other subdirs. We could try and force it to a specific value
but it is easier to just remove it from the package task, we don't need
it there or care about it in this case.

Signed-off-by: Jate Sujjavanich <jatedev@gmail.com>
(cherry picked from commit 9cceeb906527f90d8dd3aad75aa3a8805e2a1df5)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/sstatesig.py

index aeceb100d7c1396522e1ffc5d6bc0229d210c28f..65bb4efe25c7fe70323e91f69da1e6a8f71de878 100644 (file)
@@ -480,8 +480,10 @@ def OEOuthashBasic(path, sigfile, task, d):
     if "package_write_" in task or task == "package_qa":
         include_owners = False
     include_timestamps = False
+    include_root = True
     if task == "package":
         include_timestamps = d.getVar('BUILD_REPRODUCIBLE_BINARIES') == '1'
+        include_root = False
     extra_content = d.getVar('HASHEQUIV_HASH_VERSION')
 
     try:
@@ -592,7 +594,8 @@ def OEOuthashBasic(path, sigfile, task, d):
                 update_hash("\n")
 
             # Process this directory and all its child files
-            process(root)
+            if include_root or root != ".":
+                process(root)
             for f in files:
                 if f == 'fixmepath':
                     continue