diff options
author | Kristian Amlie <kristian.amlie@northern.tech> | 2022-09-08 14:16:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-09 16:19:39 +0100 |
commit | 3670f3685e63345df0501f26acad2044e3544d7b (patch) | |
tree | 77f2715d25780e3a13a3a5196fa64ba145da5593 /meta/recipes-support/libgcrypt | |
parent | a86f9ec0d783cec327ea18d523eb5a12b2d71955 (diff) | |
download | poky-3670f3685e63345df0501f26acad2044e3544d7b.tar.gz |
externalsrc: Don't wipe out src dir when EXPORT_FUNCTIONS is used.
When 73fa855f6af5ef9c3 was introduced, the "cleandirs" variable flag
started applying to functions exported using EXPORT_FUNCTIONS.
The externalsrc class is supposed to remove cleandirs in order to
prevent wiping out an external src folder (home directory?), but
doesn't take the previous point into account. The result is that
cleandirs is still in effect.
To fix this, apply the cleandirs manipulation to all variables, not
just predefined ones. This is expensive, but since it executes inside
an `if externalsrc` clause, and EXTERNALSRC is usually only set for
specific single recipes, it won't affect most recipes.
Richard Purdie <richard.purdie@linuxfoundation.org> is the original
author of this patch. I just submitted it under my name for blame
purposes, and also we have been testing it a lot in my company.
This is the original discussion:
https://lists.openembedded.org/g/openembedded-core/topic/91374926
(From OE-Core rev: 74ad497a55007960a4869905878e3ccbd11e4369)
Signed-off-by: Kristian Amlie <kristian.amlie@northern.tech>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libgcrypt')
0 files changed, 0 insertions, 0 deletions