<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">On 03/06/2014 06:04 PM, Burton, Ross
wrote:<br>
</div>
<blockquote
cite="mid:CAJTo0LZ_OjXVhoNv6wk085=5vY=i64_8T6s=Tef5h7qgFC5Sfw@mail.gmail.com"
type="cite">
<pre wrap="">On 6 March 2014 08:06, Chong Lu <a class="moz-txt-link-rfc2396E" href="mailto:Chong.Lu@windriver.com"><Chong.Lu@windriver.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">+PACKAGES += "dbus-ptest"
+ALLOW_EMPTY_${PN}-ptest = "1"
+RDEPENDS_${PN}-ptest = "${@base_contains('IMAGE_FEATURES', 'ptest-pkgs', 'dbus-test-ptest', 'dbus-test', d)}"
</pre>
</blockquote>
</blockquote>
Hi Ross,<br>
<br>
Do you have any suggestion about this issue?<br>
If we don't check IMAGE_FEATURES, I have no way to resolve this
problem that only build but not install ptest. I'm very confused.
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<br>
Best Regards<br>
Chong<br>
<br>
<blockquote
cite="mid:CAJTo0LZ_OjXVhoNv6wk085=5vY=i64_8T6s=Tef5h7qgFC5Sfw@mail.gmail.com"
type="cite">
<pre wrap="">
Nice idea, but wouldn't a more correct solution be to have dbus-ptest
added to PACKAGES conditionally (instead of always generating
dbus-ptest and conditionally adding the dependency)?
Ross</pre>
</blockquote>
<blockquote
cite="mid:CAJTo0LZ_OjXVhoNv6wk085=5vY=i64_8T6s=Tef5h7qgFC5Sfw@mail.gmail.com"
type="cite">
<pre wrap="">Clearly I wasn't thinking clearly last week. You can't check
IMAGE_FEATURES in a non-image recipe so this isn't a good solution.
Ross
</pre>
</blockquote>
<br>
</body>
</html>