From: srinuvasan <
srinuv...@siemens.com>
Apply additional options to the tar command used to generate
reproducible source tarball: (1) use numeric and null [GU]IDs,
-clamp-mtime for file modification times to never be later than
SOURCE_DATE_EPOCH (preserving mtimes for files not modified by
the recipe) and --sort=name for consistent ordering within the
archive.
Signed-off-by: Cedric Hombourger <
cedric.h...@siemens.com>
Signed-off-by: srinuvasan <
srinuv...@siemens.com>
---
meta/recipes-bsp/libubootenv/
libubootenv_0.3.5-0.1.bb | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/recipes-bsp/libubootenv/
libubootenv_0.3.5-0.1.bb b/meta/recipes-bsp/libubootenv/
libubootenv_0.3.5-0.1.bb
index 4d64ff8e..74409431 100644
--- a/meta/recipes-bsp/libubootenv/
libubootenv_0.3.5-0.1.bb
+++ b/meta/recipes-bsp/libubootenv/
libubootenv_0.3.5-0.1.bb
@@ -25,5 +25,9 @@ CHANGELOG_V ?= "${PV}+isar-${SRCREV}"
do_prepare_build() {
deb_add_changelog
cd ${WORKDIR}
- tar cJf ${BPN}_${PV}+isar.orig.tar.xz --exclude=.git --exclude=debian ${P}
+ tar cJf ${BPN}_${PV}+isar.orig.tar.xz \
+ --exclude=.git --exclude=debian \
+ --mtime=@${SOURCE_DATE_EPOCH} --clamp-mtime \
+ --owner=0 --group=0 --numeric-owner \
+ --sort=name ${P}
}
--
2.39.5