task-core-boot: Add busybox-hwclock if MACHINE_FEATURES contains rtc
authorAndrei Gherzan <andrei@gherzan.ro>
Thu, 16 Aug 2012 21:13:47 +0000 (00:13 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Aug 2012 17:04:25 +0000 (18:04 +0100)
For machines with no hardware clock it makes no sense to have this
init stript. Moreover, we avoid a boot error in this way.

(From OE-Core rev: 199259b8d87ee86038de355dd6caeb489d6473f0)

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/tasks/task-core-boot.bb

index 6487436..2947509 100644 (file)
@@ -34,6 +34,7 @@ RDEPENDS_task-core-boot = "\
     base-files \
     base-passwd \
     busybox \
+    ${@base_contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \
     ${VIRTUAL-RUNTIME_initscripts} \
     ${@base_contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
     modutils-initscripts \