summaryrefslogtreecommitdiffstats
path: root/core/modules/busybox/module.build
diff options
context:
space:
mode:
authorSimon Rettberg2017-11-27 14:22:01 +0100
committerSimon Rettberg2017-11-27 14:22:01 +0100
commit6c23a59c3f14e032c4b9c85c1586ed61a3b67265 (patch)
treed6ebeb743e871b119f4b13d3f32d8c7ecf3a3f2a /core/modules/busybox/module.build
parentsdfgijdasfigdasofig (diff)
downloadmltk-6c23a59c3f14e032c4b9c85c1586ed61a3b67265.tar.gz
mltk-6c23a59c3f14e032c4b9c85c1586ed61a3b67265.tar.xz
mltk-6c23a59c3f14e032c4b9c85c1586ed61a3b67265.zip
[budybox] rtcwake patch: Default to rtc0
1) This is what rtcwake from util-linux does 2) While /dev/rtc is usually a symlink to /dev/rtc0, /sys/class/rtc/%s/device/power/wakeup doesn't exist for rtc (no symlink under /sys/class/rtc), so bb rtcwake will bail out early claiming the selected rtc does not support wakeup alarms, while really it just didn't find a file to check for support.
Diffstat (limited to 'core/modules/busybox/module.build')
-rw-r--r--core/modules/busybox/module.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modules/busybox/module.build b/core/modules/busybox/module.build
index 2721dd04..3124de81 100644
--- a/core/modules/busybox/module.build
+++ b/core/modules/busybox/module.build
@@ -15,6 +15,9 @@ fetch_source() {
if ! grep -q 'suspend.*"no"' "util-linux/rtcwake.c"; then
git apply "${MODULE_DIR}/rtcwake-mode-no.patch" || perror "Could not apply busybox patch for rtcwake 'no'-mode"
fi
+ if ! grep -q 'rtc0' "util-linux/rtcwake.c"; then
+ git apply "${MODULE_DIR}/rtcwake-default-rtc0.patch" || perror "Could not apply busybox patch for rtcwake default to rtc0"
+ fi
cd .. || perror "cd .. failed"
}