mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
Add lib to help IPC between components, including SOS lifecycle service, acrn manager and devicemodule. Following helper functions are included: int mngr_open_un() - create a descripter for vm management IPC void mngr_close() - close descripter and release the resouces int mngr_add_handler() - add a handler for message specified by msg int mngr_send_msg() - send a message and wait for ack Reviewed-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Wang, Yu <yu1.wang@intel.com> Sigbed-off-by: Yan Like <like.yan@intel.com> Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
21 lines
515 B
Makefile
21 lines
515 B
Makefile
|
|
OUT_DIR ?= .
|
|
|
|
all: $(OUT_DIR)/libacrn-mngr.a $(OUT_DIR)/acrnctl
|
|
|
|
$(OUT_DIR)/libacrn-mngr.a: acrn_mngr.c acrn_mngr.h
|
|
$(CC) -c acrn_mngr.c -DMNGR_DEBUG -I../../devicemodel/include -Wall -g
|
|
ar -cr $@ acrn_mngr.o
|
|
|
|
$(OUT_DIR)/acrnctl: acrnctl.c
|
|
$(CC) -o $(OUT_DIR)/acrnctl acrnctl.c -I../../devicemodel/include -Wall -g
|
|
|
|
clean:
|
|
rm -f $(OUT_DIR)/acrnctl
|
|
rm -f acrn_mngr.o
|
|
rm -f $(OUT_DIR)/libacrn-mngr.a
|
|
|
|
install: $(OUT_DIR)/acrnctl
|
|
install -d $(DESTDIR)/usr/bin
|
|
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/acrnctl
|