<div class="gmail_quote">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 class="HOEnZb"><div class="h5">On Tue, 2012-07-10 at 17:59 +0300, Andrei Gherzan wrote:<br>
> Signed-off-by: Andrei Gherzan <<a href="mailto:andrei@gherzan.ro">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>I want to have hwclock init script only on machines with RTC.</div><div><br></div><div>@g </div></div>