<div class="gmail_quote">On Tue, Jul 10, 2012 at 11:53 PM, Andrei Gherzan <span dir="ltr"><<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>></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"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></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>
> Signed-off-by: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro" target="_blank">andrei@gherzan.ro</a>><br>
> ---<br>
> meta/recipes-core/busybox/busybox.inc | 10 +++++++---<br>
> 1 file changed, 7 insertions(+), 3 deletions(-)<br>
><br>
> diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc<br>
> index 82137a3..17ff442 100644<br>
> --- a/meta/recipes-core/busybox/busybox.inc<br>
> +++ b/meta/recipes-core/busybox/busybox.inc<br>
> @@ -180,9 +180,13 @@ do_install () {<br>
> if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then<br>
> install -m 0755 ${WORKDIR}/busybox-udhcpd ${D}${sysconfdir}/init.d/<br>
> fi<br>
> - if grep "CONFIG_HWCLOCK=y" ${WORKDIR}/defconfig; then<br>
> - install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/<br>
> - fi<br>
> + case "${MACHINE_FEATURES}" in<br>
> + *rtc*)<br>
> + if grep "CONFIG_HWCLOCK=y" ${WORKDIR}/defconfig; then<br>
> + install -m 0755 ${WORKDIR}/hwclock.sh ${D}${sysconfdir}/init.d/<br>
> + fi<br>
> + ;;<br>
> + esac<br>
> if grep "CONFIG_UDHCPC=y" ${WORKDIR}/defconfig; then<br>
> install -d ${D}${sysconfdir}/udhcpc.d<br>
> 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't sound good for me.</div>
<div><br></div><div>@g</div>