kumquat-buildroot/toolchain
Atharva Lele 71d6901454 toolchain/toolchain-wrapper: handle __{BASE_,}FILE__ macro for reproducibility
Many tools use __FILE__ or __BASE_FILE__ for debugging and both
capture the build path. This results in non-reproducible images when
building in different directories.

If the config uses GCC 8 or above, we use -ffile-prefix-map=old=new
and let gcc take care of the path remapping in __FILE__. Since GCC
versions before v8 did not have this feature, we use an empty string
in that case, and disable the builtin-macro-redefined warning which
would otherwise trigger and cause build issues with -Werror.

Signed-off-by: Atharva Lele <itsatharva@gmail.com>
[Thomas:
 - as suggested by Arnout, use the empty string for the __FILE__ and
   __BASE_FILE__ value
 - as suggested by Romain, also handle __BASE_FILE__ in addition to
   __FILE__
 - pass -Wno-builtin-macro-redefined to avoid build errors when
   -Werror is passed]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-01-06 23:24:52 +01:00
..
toolchain
toolchain-buildroot toolchain/toolchain-buildroot: allow ARC big endian glibc builds 2019-12-06 22:16:23 +01:00
toolchain-external toolchain/toolchain-external: update Arm AArch64 toolchain 9.2-2019.12 2020-01-04 16:30:26 +01:00
Config.in {linux, linux-headers}: add version 5.4 2019-12-02 11:47:43 +01:00
helpers.mk
toolchain-wrapper.c
toolchain-wrapper.mk toolchain/toolchain-wrapper: handle __{BASE_,}FILE__ macro for reproducibility 2020-01-06 23:24:52 +01:00
toolchain.mk