Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

test/vsock: add install target

Add install target for vsock to make Yocto easy to install the images.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://patch.msgid.link/20240710122728.45044-1-peng.fan@oss.nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Peng Fan and committed by
Jakub Kicinski
42ffe242 8e5f53a6

+13
+13
tools/testing/vsock/Makefile
··· 13 13 clean: 14 14 ${RM} *.o *.d vsock_test vsock_diag_test vsock_perf vsock_uring_test 15 15 -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