]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package: Switch debug source handling to use prefix map
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jul 2022 16:32:32 +0000 (17:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2022 18:55:32 +0000 (19:55 +0100)
commitcbd6144a9769d21371ae0fe04db2adc05f6eed02
treee46171ea76e15c4478c11b802787a2fc34a3c533
parent4b3caa1541d69826c14e010ce3ac1a1ca34f3c62
package: Switch debug source handling to use prefix map

Reproducible builds are no longer a configuration option but are required.
We also rely on the prefix mapping capability of the compilers now.

As such, rewrite the source locating code to use the prefix maps instead
of taking a guess about WORKDIR which isn't correct for kernels, gcc,
externalsrc and probably more.

Instead, iterate the maps to locate any matching source code, keeping
in mind that multiple maps may map to one target location.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/package.bbclass