* [PATCH] meta/lib/oe/utils.py: Corrected the return value of both_contain()
@ 2015-04-03 14:34 Jun Zhu
2015-04-03 18:42 ` Otavio Salvador
0 siblings, 1 reply; 2+ messages in thread
From: Jun Zhu @ 2015-04-03 14:34 UTC (permalink / raw)
To: openembedded-core; +Cc: Jun Zhu, raa013
oe.utils.both_contain() should return the result as "checkvalue" or "",
but the latest implement returns as "set(['checkvalue'])" or "";
It causes that bitbake.conf generates the wrong result of COMBINED_FEATURES,
which contains the common components in both DISTRO_FEATURE and MACHINE_FEATURES.
For example, build in Dizzy branch, COMBINED_FEATURES is "alsa usbhost ...",
but recently, COMBINED_FEATURES is like "set(['alsa']) set(['usbhost']) ...".
Signed-off-by: Jun Zhu <R01007@freescale.com>
---
meta/lib/oe/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py
index bedade2..b8224de 100644
--- a/meta/lib/oe/utils.py
+++ b/meta/lib/oe/utils.py
@@ -51,7 +51,7 @@ def both_contain(variable1, variable2, checkvalue, d):
else:
checkvalue = set(checkvalue)
if checkvalue.issubset(val1) and checkvalue.issubset(val2):
- return checkvalue
+ return " ".join(checkvalue)
else:
return ""
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] meta/lib/oe/utils.py: Corrected the return value of both_contain()
2015-04-03 14:34 [PATCH] meta/lib/oe/utils.py: Corrected the return value of both_contain() Jun Zhu
@ 2015-04-03 18:42 ` Otavio Salvador
0 siblings, 0 replies; 2+ messages in thread
From: Otavio Salvador @ 2015-04-03 18:42 UTC (permalink / raw)
To: Jun Zhu; +Cc: Lauren Post, Patches and discussions about the oe-core layer
On Fri, Apr 3, 2015 at 11:34 AM, Jun Zhu <R01007@freescale.com> wrote:
> oe.utils.both_contain() should return the result as "checkvalue" or "",
> but the latest implement returns as "set(['checkvalue'])" or "";
>
> It causes that bitbake.conf generates the wrong result of COMBINED_FEATURES,
> which contains the common components in both DISTRO_FEATURE and MACHINE_FEATURES.
>
> For example, build in Dizzy branch, COMBINED_FEATURES is "alsa usbhost ...",
> but recently, COMBINED_FEATURES is like "set(['alsa']) set(['usbhost']) ...".
>
> Signed-off-by: Jun Zhu <R01007@freescale.com>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-04-03 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-03 14:34 [PATCH] meta/lib/oe/utils.py: Corrected the return value of both_contain() Jun Zhu
2015-04-03 18:42 ` Otavio Salvador
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox