diff options
author | Alejandro Hernandez Samaniego <alhe@linux.microsoft.com> | 2022-06-30 20:09:39 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-04 15:15:14 +0100 |
commit | c725bdb29b2669e53ea0f9d30f9683f094c9b326 (patch) | |
tree | e2f57578083714f32b885322dc18271e3ce42e0e /meta/classes/distro_features_check.bbclass | |
parent | a55994047b2ebab302d9eeb47b8d9e2c7df12437 (diff) | |
download | poky-c725bdb29b2669e53ea0f9d30f9683f094c9b326.tar.gz |
package.bbclass: Fix base directory for debugsource files when using externalsrc
While executing do_package, bitbake checks for a list of
debug source files and uses a pattern to match the ones
to be included in copydebugsources.
Previously when externalsrc was in use either directly or by
using devtool, the source location changed and this pattern
no longer matched, hence debug source files failed to be
included in the corresponding package.
Check when the source directory isnt the default (based on
WORKDIR), and change the pattern used to match debug source
files if that is the case, allowing us to perform do_package
properly.
Workaround debugsource.list containing paths from the host by
moving debug source files away from the host directory
structure to avoid host contamination (this seems to happen
when packages use $TMPDIR/work-shared and externalsrc is
in use).
Test matrix included using:
- devtool to use externalsrc automatically
- externalsrc with a non-devtool based source directory
- No externalsrc at all
Tested the following packages to be working:
- glibc ($TMPDIR/work-shared based)
- libxcrypt ($TMPDIR/work based)
[YOCTO 8015]
(From OE-Core rev: a887bd96fd0a15398e8077ea79df5070971866e4)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distro_features_check.bbclass')
0 files changed, 0 insertions, 0 deletions