[OE-core] [PATCH v2 5/6] busybox.inc: improve reproducibility
Andre McCurdy
armccurdy at gmail.com
Tue May 2 00:31:35 UTC 2017
On Mon, May 1, 2017 at 1:59 PM, Juro Bystricky <juro.bystricky at intel.com> wrote:
> For reproducible builds do not generate build timestamp as part of
> the version string.
Maybe just do that by default?
> Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
> ---
> meta/recipes-core/busybox/busybox.inc | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
> index 375632d..3e991f9 100644
> --- a/meta/recipes-core/busybox/busybox.inc
> +++ b/meta/recipes-core/busybox/busybox.inc
> @@ -138,6 +138,9 @@ do_configure () {
>
> do_compile() {
> unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
> + if [ "$BUILD_REPRODUCIBLE_BINARIES" = "1" ]; then
> + export KCONFIG_NOTIMESTAMP=1
> + fi
> if [ "${BUSYBOX_SPLIT_SUID}" = "1" -a x`grep "CONFIG_FEATURE_INDIVIDUAL=y" .config` = x ]; then
> # split the .config into two parts, and make two busybox binaries
> if [ -e .config.orig ]; then
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list