diff options
| author | Jose Quaresma <quaresma.jose@gmail.com> | 2022-10-14 16:22:46 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-24 15:30:00 +0000 |
| commit | 4f42ee56ca74596553a6a03ae0ac7a898e289c34 (patch) | |
| tree | 0a0137c19fe3c435827ef1667fee68a7f34fe61d /meta | |
| parent | 896727f943e7b1fcdd0ef56fb1e66f1b34046316 (diff) | |
| download | poky-4f42ee56ca74596553a6a03ae0ac7a898e289c34.tar.gz | |
archiver: avoid using machine variable as it breaks multiconfig
STAGING_KERNEL_DIR uses the MACHINE name so it breaks the multiconfig
and in this cases it will run the shared recipes twice, one for each
machine.
STAGING_KERNEL_DIR it's been introduced in commit 5487dee2e1
(From OE-Core rev: 8e65e5d9204cbc04587b7e90ff4ed8cd7bffdb65)
Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6050d1f74c02495490d982ead2993b6b3c9cc04a)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes/archiver.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass index dca4271a69..4a5865d7b5 100644 --- a/meta/classes/archiver.bbclass +++ b/meta/classes/archiver.bbclass | |||
| @@ -461,7 +461,7 @@ def is_work_shared(d): | |||
| 461 | pn = d.getVar('PN') | 461 | pn = d.getVar('PN') |
| 462 | return pn.startswith('gcc-source') or \ | 462 | return pn.startswith('gcc-source') or \ |
| 463 | bb.data.inherits_class('kernel', d) or \ | 463 | bb.data.inherits_class('kernel', d) or \ |
| 464 | (bb.data.inherits_class('kernelsrc', d) and d.getVar('S') == d.getVar('STAGING_KERNEL_DIR')) | 464 | (bb.data.inherits_class('kernelsrc', d) and d.expand("${TMPDIR}/work-shared") in d.getVar('S')) |
| 465 | 465 | ||
| 466 | # Run do_unpack and do_patch | 466 | # Run do_unpack and do_patch |
| 467 | python do_unpack_and_patch() { | 467 | python do_unpack_and_patch() { |
