Patchwork [6/7] task-core-boot: Add busybox-hwclock if MACHINE_FEATURES contains rtc

login
register
mail settings
Submitter Andrei Gherzan
Date Aug. 16, 2012, 9:32 p.m.
Message ID <2048a792acdd8f9cb95c8f90279a5b89a1267f61.1345152235.git.andrei@gherzan.ro>
Download mbox | patch
Permalink /patch/34735/
State Accepted
Commit 199259b8d87ee86038de355dd6caeb489d6473f0
Headers show

Comments

Andrei Gherzan - Aug. 16, 2012, 9:32 p.m.
For machines with no hardware clock it makes no sense to have this
init stript. Moreover, we avoid a boot error in this way.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
---
 meta/recipes-core/tasks/task-core-boot.bb |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-core/tasks/task-core-boot.bb b/meta/recipes-core/tasks/task-core-boot.bb
index 6487436..2947509 100644
--- a/meta/recipes-core/tasks/task-core-boot.bb
+++ b/meta/recipes-core/tasks/task-core-boot.bb
@@ -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 \