Misc: lifemngr-daemon-on-UOS for windows

For cross-VM S5 notify via vUART, life_mngr service is running on UOS.
It is listening on COM2 to get SOS's commands.
The protocol is: SOS send "shutdown", UOS feedback "acked".

When SOS triggle shutdown, SOS can 1) check VM's status until UOS
stopped, 2) retry shutdown UOS normally with timeout.
So, no matter life_mngr server is running, SOS's shutdown procedure will
properly finish.

Tracked-On: #3564
Signed-off-by: Yuan Liu <yuan1.liu@intel.com>
This commit is contained in:
Yuan Liu
2019-09-29 14:25:20 +08:00
committed by wenlingz
parent 82a0d39e84
commit 73b8c91e06
4 changed files with 327 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ all:
$(CC) -g life_mngr.c -o $(OUT_DIR)/life_mngr -lpthread $(LIFEMNGR_CFLAGS) $(LIFEMNGR_LDFLAGS)
cp life_mngr.service $(OUT_DIR)/life_mngr.service
-x86_64-w64-mingw32-gcc -g life_mngr_win.c -o $(OUT_DIR)/life_mngr_win.exe -Wall -O2 $(LDFLAGS)
cp COPYING.MinGW-w64-runtime.txt $(OUT_DIR)/COPYING.MinGW-w64-runtime.txt
clean:
rm -f $(OUT_DIR)/life_mngr
ifneq ($(OUT_DIR),.)