powerd: Add handler for GCD 'base.reboot' command.
When powerd is built for boards that uses Buffet (with 'buffet'
USE flag), we import Buffet's D-Bus object proxies and listen for
new commands arriving. Powerd responds to 'base.reboot' command by
rebooting the device.
Also, made sure Buffet's test daemon does not "process" any commands
that do not belong to it (and removed 'base.reboot' from its handler).
BUG=brillo:806
TEST=built image, deployed on device and observed how sending base.reboot
restarts the device.
CQ-DEPEND=CL:265570,CL:265533,CL:265571
Change-Id: I70008dc98d41125bb2a0654c5e3bfe03d5915171
Reviewed-on: https://chromium-review.googlesource.com/265558
Reviewed-by: Alex Vakulenko <avakulenko@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
2 files changed
tree: 4de127db473c31b0ea404f3e7ff624bef61b0082
- buffet/