]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf: Pass -D option to ranlib for determisim
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Nov 2021 16:08:16 +0000 (16:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Nov 2021 09:55:05 +0000 (09:55 +0000)
Add the -D option to BUILD_RANLIB so that deterministic archives
are built for native/cross output. This improves the changes of hash
equivalence matches and hence build artefact reuse.

We don't need this in the target case since we compile binutils-cross
with an option making this the default.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/bitbake.conf

index 71c1e52ad63967921a8650991a31029ad1a53480..fba99e8f0cd980c385f27689c2f6cdd8a450f0ea 100644 (file)
@@ -542,7 +542,7 @@ export BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}"
 export BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}"
 export BUILD_AR = "${BUILD_PREFIX}ar"
 export BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}"
-export BUILD_RANLIB = "${BUILD_PREFIX}ranlib"
+export BUILD_RANLIB = "${BUILD_PREFIX}ranlib -D"
 export BUILD_STRIP = "${BUILD_PREFIX}strip"
 BUILD_OBJCOPY = "${BUILD_PREFIX}objcopy"
 BUILD_OBJDUMP = "${BUILD_PREFIX}objdump"