mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
image: Set COREBASE as the git directory for timestamp
When REPRODUCIBLE_TIMESTAMP_ROOTFS is unset and we want to parse one from git, use COREBASE as the base for the git command so we have a known repository which we're using. Without this the build may fail if the current directory is not part of a git repository. (From OE-Core rev: 1c2197f96d69547e10b74dc722d9a569d9a2b2b6) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9fa6e7d487
commit
3c46673100
@@ -651,7 +651,7 @@ POPULATE_SDK_PRE_TARGET_COMMAND += "${@bb.utils.contains('DISTRO_FEATURES', 'usr
|
|||||||
reproducible_final_image_task () {
|
reproducible_final_image_task () {
|
||||||
if [ "${BUILD_REPRODUCIBLE_BINARIES}" = "1" ]; then
|
if [ "${BUILD_REPRODUCIBLE_BINARIES}" = "1" ]; then
|
||||||
if [ "$REPRODUCIBLE_TIMESTAMP_ROOTFS" = "" ]; then
|
if [ "$REPRODUCIBLE_TIMESTAMP_ROOTFS" = "" ]; then
|
||||||
REPRODUCIBLE_TIMESTAMP_ROOTFS=`git log -1 --pretty=%ct`
|
REPRODUCIBLE_TIMESTAMP_ROOTFS=`git -C "${COREBASE}" log -1 --pretty=%ct`
|
||||||
fi
|
fi
|
||||||
# Set mtime of all files to a reproducible value
|
# Set mtime of all files to a reproducible value
|
||||||
bbnote "reproducible_final_image_task: mtime set to $REPRODUCIBLE_TIMESTAMP_ROOTFS"
|
bbnote "reproducible_final_image_task: mtime set to $REPRODUCIBLE_TIMESTAMP_ROOTFS"
|
||||||
|
|||||||
Reference in New Issue
Block a user