diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image-prelink.bbclass | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/meta/classes/image-prelink.bbclass b/meta/classes/image-prelink.bbclass index 6fcd699016..f3bb68b9e1 100644 --- a/meta/classes/image-prelink.bbclass +++ b/meta/classes/image-prelink.bbclass | |||
@@ -36,7 +36,17 @@ prelink_image () { | |||
36 | dynamic_loader=$(linuxloader) | 36 | dynamic_loader=$(linuxloader) |
37 | 37 | ||
38 | # prelink! | 38 | # prelink! |
39 | ${STAGING_SBINDIR_NATIVE}/prelink --root ${IMAGE_ROOTFS} -amR -N -c ${sysconfdir}/prelink.conf --dynamic-linker $dynamic_loader | 39 | if [ "$BUILD_REPRODUCIBLE_BINARIES" = "1" ]; then |
40 | bbnote " prelink: BUILD_REPRODUCIBLE_BINARIES..." | ||
41 | if [ "$REPRODUCIBLE_TIMESTAMP_ROOTFS" = "" ]; then | ||
42 | export PRELINK_TIMESTAMP=`git log -1 --pretty=%ct ` | ||
43 | else | ||
44 | export PRELINK_TIMESTAMP=$REPRODUCIBLE_TIMESTAMP_ROOTFS | ||
45 | fi | ||
46 | ${STAGING_SBINDIR_NATIVE}/prelink --root ${IMAGE_ROOTFS} -am -N -c ${sysconfdir}/prelink.conf --dynamic-linker $dynamic_loader | ||
47 | else | ||
48 | ${STAGING_SBINDIR_NATIVE}/prelink --root ${IMAGE_ROOTFS} -amR -N -c ${sysconfdir}/prelink.conf --dynamic-linker $dynamic_loader | ||
49 | fi | ||
40 | 50 | ||
41 | # Remove the prelink.conf if we had to add it. | 51 | # Remove the prelink.conf if we had to add it. |
42 | if [ "$dummy_prelink_conf" = "true" ]; then | 52 | if [ "$dummy_prelink_conf" = "true" ]; then |