Skip to content

Commit c6d8e7f

Browse files
alekdulijinxia
authored andcommitted
ioc: add cbc_lifecycle service
The cbc_lifecycle service will listen on /dev/cbc-lifecycle tty port to receive "wakeup reason" information from ioc controller as well as send heartbeat to ioc to set different power cycle method. The RTC funtionality is not implemented by current ioc firmware yet, hence the service leaves it as an empty handler now. Signed-off-by: Alek Du <alek.du@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
1 parent 247c5ee commit c6d8e7f

File tree

2 files changed

+501
-0
lines changed

2 files changed

+501
-0
lines changed

misc/cbc_lifecycle/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
OUT_DIR ?= .
3+
4+
$(OUT_DIR)/cbc_lifecycle: cbc_lifecycle.c ../../tools/acrn-manager/acrn_mngr.h
5+
gcc -o $@ cbc_lifecycle.c -pthread -L$(OUT_DIR)/../../build/tools -lacrn-mngr
6+
7+
clean:
8+
rm $(OUT_DIR)/cbc_lifecycle
9+
10+
install: $(OUT_DIR)/cbc_lifecycle
11+
install -d $(DESTDIR)/usr/bin
12+
install -t $(DESTDIR)/usr/bin $^

0 commit comments

Comments
 (0)