<div class="gmail_quote">On Tue, Jul 10, 2012 at 11:53 PM, Andrei Gherzan <span dir="ltr">&lt;<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div><div class="h5">On Tue, Jul 10, 2012 at 7:02 PM, Richard Purdie <span dir="ltr">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Tue, 2012-07-10 at 17:59 +0300, Andrei Gherzan wrote:<br>
&gt; Signed-off-by: Andrei Gherzan &lt;<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>&gt;<br>
&gt; ---<br>
&gt;  meta/recipes-core/busybox/busybox.inc |   10 +++++++---<br>
&gt;  1 file changed, 7 insertions(+), 3 deletions(-)<br>
&gt;<br>
&gt; diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc<br>
&gt; index 82137a3..17ff442 100644<br>
&gt; --- a/meta/recipes-core/busybox/busybox.inc<br>
&gt; +++ b/meta/recipes-core/busybox/busybox.inc<br>
&gt; @@ -180,9 +180,13 @@ do_install () {<br>
&gt;       if grep &quot;CONFIG_UDHCPD=y&quot; ${WORKDIR}/defconfig; then<br>
&gt;               install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/<br>
&gt;       fi<br>
&gt; -     if grep &quot;CONFIG_HWCLOCK=y&quot; ${WORKDIR}/defconfig; then<br>
&gt; -             install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/<br>
&gt; -     fi<br>
&gt; +     case &quot;${MACHINE_FEATURES}&quot; in<br>
&gt; +     *rtc*)<br>
&gt; +             if grep &quot;CONFIG_HWCLOCK=y&quot; ${WORKDIR}/defconfig; then<br>
&gt; +                     install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/<br>
&gt; +             fi<br>
&gt; +             ;;<br>
&gt; +     esac<br>
&gt;       if grep &quot;CONFIG_UDHCPC=y&quot; ${WORKDIR}/defconfig; then<br>
&gt;               install -d ${D}${sysconfdir}/udhcpc.d<br>
&gt;               install -d ${D}${datadir}/udhcpc<br>
<br>
</div></div>This makes busybox machine specific? Is that really what you want to do?<br><br></blockquote></div></div><div>I want to have hwclock init script only on machines with RTC.</div><span class="HOEnZb"><font color="#888888"><div>

<br></div></font></span></div></blockquote><div></div></div><div><br></div><div>And to move a little further, busybox should be configured with CONFIG_HWCLOCK=y only if it makes sense for that MACHINE. In my opinion this is machine specific. So avoiding an init script but still having useless utils doesn&#39;t sound good for me.</div>

<div><br></div><div>@g</div>