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:
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