diff mbox series

[isar-cip-core,v3,1/2] kas/opt/reproducible.yml: Add kas file for reproducible builds target

Message ID 20230222114408.32155-2-venkata.pyla@toshiba-tsip.com (mailing list archive)
State Accepted
Headers show
Series ci for reproducible build check | expand

Commit Message

Venkata Pyla Feb. 22, 2023, 11:44 a.m. UTC
From: venkata pyla <venkata.pyla@toshiba-tsip.com>

This kas file set the 'SOURCE_DATE_EPOCH' variable to last commit
timestamp required for building image reproducible.

Signed-off-by: venkata pyla <venkata.pyla@toshiba-tsip.com>
---
 kas/opt/reproducible.yml | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 kas/opt/reproducible.yml
diff mbox series

Patch

diff --git a/kas/opt/reproducible.yml b/kas/opt/reproducible.yml
new file mode 100644
index 0000000..0de59ed
--- /dev/null
+++ b/kas/opt/reproducible.yml
@@ -0,0 +1,17 @@ 
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Toshiba Corporation, 2023
+#
+# Authors:
+#  Venkata Pyla <venkata.pyla@toshiba-tsip.com>
+#
+# SPDX-License-Identifier: MIT
+#
+header:
+  version: 12
+
+local_conf_header:
+  reproducible-builds: |
+          SOURCE_DATE_EPOCH := "${@bb.process.run("git -C ${LAYERDIR_cip-core} log -1 --pretty=%ct | tr -d '\n'")[0]}"
+