On Tue, Jul 10, 2012 at 11:53 PM, Andrei Gherzan wrote: > On Tue, Jul 10, 2012 at 7:02 PM, Richard Purdie < > richard.purdie@linuxfoundation.org> wrote: > >> On Tue, 2012-07-10 at 17:59 +0300, Andrei Gherzan wrote: >> > Signed-off-by: Andrei Gherzan >> > --- >> > meta/recipes-core/busybox/busybox.inc | 10 +++++++--- >> > 1 file changed, 7 insertions(+), 3 deletions(-) >> > >> > diff --git a/meta/recipes-core/busybox/busybox.inc >> b/meta/recipes-core/busybox/busybox.inc >> > index 82137a3..17ff442 100644 >> > --- a/meta/recipes-core/busybox/busybox.inc >> > +++ b/meta/recipes-core/busybox/busybox.inc >> > @@ -180,9 +180,13 @@ do_install () { >> > if grep "CONFIG_UDHCPD=y" ${WORKDIR}/defconfig; then >> > install -m 0755 ${WORKDIR}/busybox-udhcpd >> ${D}${sysconfdir}/init.d/ >> > fi >> > - if grep "CONFIG_HWCLOCK=y" ${WORKDIR}/defconfig; then >> > - install -m 0755 ${WORKDIR}/hwclock.sh >> ${D}${sysconfdir}/init.d/ >> > - fi >> > + case "${MACHINE_FEATURES}" in >> > + *rtc*) >> > + if grep "CONFIG_HWCLOCK=y" ${WORKDIR}/defconfig; then >> > + install -m 0755 ${WORKDIR}/hwclock.sh >> ${D}${sysconfdir}/init.d/ >> > + fi >> > + ;; >> > + esac >> > if grep "CONFIG_UDHCPC=y" ${WORKDIR}/defconfig; then >> > install -d ${D}${sysconfdir}/udhcpc.d >> > install -d ${D}${datadir}/udhcpc >> >> This makes busybox machine specific? Is that really what you want to do? >> >> I want to have hwclock init script only on machines with RTC. > > 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. @g