Skip to content

Commit 42ffe24

Browse files
MrVankuba-moo
authored andcommitted
test/vsock: add install target
Add install target for vsock to make Yocto easy to install the images. Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Stefano Garzarella <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8e5f53a commit 42ffe24

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tools/testing/vsock/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,16 @@ CFLAGS += -g -O2 -Werror -Wall -I. -I../../include -I../../../usr/include -Wno-p
1313
clean:
1414
${RM} *.o *.d vsock_test vsock_diag_test vsock_perf vsock_uring_test
1515
-include *.d
16+
17+
VSOCK_INSTALL_PATH ?=
18+
19+
install: all
20+
ifdef VSOCK_INSTALL_PATH
21+
mkdir -p $(VSOCK_INSTALL_PATH)
22+
install -m 744 vsock_test $(VSOCK_INSTALL_PATH)
23+
install -m 744 vsock_perf $(VSOCK_INSTALL_PATH)
24+
install -m 744 vsock_diag_test $(VSOCK_INSTALL_PATH)
25+
install -m 744 vsock_uring_test $(VSOCK_INSTALL_PATH)
26+
else
27+
$(error Error: set VSOCK_INSTALL_PATH to use install)
28+
endif

0 commit comments

Comments
 (0)