Skip to content

Commit 8e45c66

Browse files
vgjayakulijinxia
authored andcommitted
misc: integrate cbc_attach service
cbc_attach is one SOS service that enable IOC CBC line discipline feature. It started by systemd by default, and exit if failed to set the line discipline that means the platform does not support IOC. Signed-off-by: Vineetha G Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com> Signed-off-by: Yuan Liu <yuan1.liu@intel.com> Signed-off-by: Yu Wang <yu1.wang@intel.com> Reviewed-by: Vineetha G Jaya Kumaran <vineetha.g.jaya.kumaran@intel.com> Reviewed-by: Key Seong Lim <key.seong.lim@intel.com> Reviewed-by: Alex Du <alek.du@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent d04b141 commit 8e45c66

File tree

4 files changed

+453
-3
lines changed

4 files changed

+453
-3
lines changed

misc/Makefile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
T := $(CURDIR)
22

3-
.PHONY: all cbc_lifecycle
4-
all: cbc_lifecycle
3+
.PHONY: all cbc_lifecycle cbc_attach
4+
all: cbc_lifecycle cbc_attach
55

66
cbc_lifecycle:
77
make -C $(T)/cbc_lifecycle OUT_DIR=$(OUT_DIR)
8+
cbc_attach:
9+
make -C $(T)/cbc_attach OUT_DIR=$(OUT_DIR)
810

911
.PHONY: clean
1012
clean:
1113
make -C $(T)/cbc_lifecycle clean
14+
make -C $(T)/cbc_attach clean
1215
rm -rf $(OUT_DIR)
1316

1417
.PHONY: install
15-
install: cbc_lifecycle-install
18+
install: cbc_lifecycle-install cbc_attach-install
1619

1720
cbc_lifecycle-install:
1821
make -C $(T)/cbc_lifecycle OUT_DIR=$(OUT_DIR) install
22+
23+
cbc_attach-install:
24+
make -C $(T)/cbc_attach OUT_DIR=$(OUT_DIR) install

misc/cbc_attach/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
OUT_DIR ?= .
2+
3+
all:
4+
gcc -o $(OUT_DIR)/cbc_attach cbc_attach.c -lsystemd
5+
6+
clean:
7+
rm -rf $(OUT_DIR)/cbc_attach
8+
9+
install: $(OUT_DIR)/cbc_attach
10+
install -d $(DESTDIR)/usr/bin
11+
install -t $(DESTDIR)/usr/bin $(OUT_DIR)/cbc_attach
12+
install -p -D -m 0644 cbc_attach.service $(DESTDIR)/usr/lib/systemd/system/

0 commit comments

Comments
 (0)