mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
package.bbclass: Fix kernel source handling when not using externalsrc
Previous commit c725bdb29b broke kernel source handling, this was due
to the code expecting the sources to be in a different directory, this did
not happen when using externalsrc since sources were found in the expected
directories.
Pass work-shared to the check to allow sources to be found in the proper
directory, allowing these to be packaged in the next step.
To test this we grabbed a commit where we knew the buildpaths
QA test should flag a file inside the kernel sources, with the previous
commit the QA warning wasnt flagged since no sources where there, with
this fix the buildpaths QA warning gets flagged properly.
(From OE-Core rev: 2714a8ef8c7b3c66d50f27f4f52fe2fe4db39b00)
Signed-off-by: Alejandro Enedino Hernandez Samaniego <alhe@linux.microsoft.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1a3aaa47b1
commit
9a528bd5bd
@@ -566,7 +566,7 @@ def copydebugsources(debugsrcdir, sources, d):
|
||||
|
||||
# If S isnt based on WORKDIR we can infer our sources are located elsewhere,
|
||||
# e.g. using externalsrc; use S as base for our dirs
|
||||
if workdir in sdir:
|
||||
if workdir in sdir or 'work-shared' in sdir:
|
||||
basedir = workbasedir
|
||||
parentdir = workparentdir
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user