diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-08-10 12:18:09 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-08-11 07:54:09 +0200 |
commit | 0a766a88d75205622f0d648434aa41b383339253 (patch) | |
tree | ec9a4869e07bd63f2f84591a791d5f6f08a389f5 /wscript | |
parent | arm: Fix cache support for ARM926EJ-S (diff) | |
download | rtems-0a766a88d75205622f0d648434aa41b383339253.tar.bz2 |
build: Make tar archives reproducible
This helps to make the build reproducible.
Diffstat (limited to '')
-rwxr-xr-x | wscript | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -188,6 +188,15 @@ def process_start_files(self): self.link_task.dep_nodes.extend(self.bld.start_files) +def make_tar_info_reproducible(info): + info.uid = 0 + info.gid = 0 + info.mtime = 0 + info.uname = "root" + info.gname = "root" + return info + + class Item(object): def __init__(self, uid, data): @@ -479,7 +488,7 @@ class Item(object): dst = src for r in remove: dst = src.replace(srcpath + r, "").replace(bldpath + r, "") - tar.add(src, dst) + tar.add(src, dst, filter=make_tar_info_reproducible) tar.close() return 0 |