OP-TEE / optee_os

Trusted side of the TEE
Other
1.56k stars 1.05k forks source link

Remove build time paths from version.o, use CFLAGS from build environment #6974

Closed mikkorapeli-linaro closed 1 month ago

mikkorapeli-linaro commented 1 month ago

Default debug flag -g3 was already getting removed from version-o-cflags but on corstone1000 platform-cflags-debug-info is set to -gdwarf-2 and thus debug info was included in the generated version.o. This then included full absolute build time path which breaks "buildpaths" yocto QA check since the path is also in final tee.elf binary. Remove all debug flags from version-o-cflags as a fix/workaround.

Fixes yocto build reproducibility issues on corstone1000:

https://gitlab.com/jonmason00/meta-arm/-/jobs/7472950196

Cc: Jon Mason jon.mason@arm.com