netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] test/vsock: add install target
@ 2024-07-09 13:50 Peng Fan (OSS)
  2024-07-10  7:34 ` Stefano Garzarella
  0 siblings, 1 reply; 11+ messages in thread
From: Peng Fan (OSS) @ 2024-07-09 13:50 UTC (permalink / raw)
  To: sgarzare; +Cc: virtualization, netdev, linux-kernel, Peng Fan

From: Peng Fan <peng.fan@nxp.com>

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

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 tools/testing/vsock/Makefile | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tools/testing/vsock/Makefile b/tools/testing/vsock/Makefile
index a7f56a09ca9f..5c8442fa9460 100644
--- a/tools/testing/vsock/Makefile
+++ b/tools/testing/vsock/Makefile
@@ -8,8 +8,20 @@ vsock_perf: vsock_perf.o msg_zerocopy_common.o
 vsock_uring_test: LDLIBS = -luring
 vsock_uring_test: control.o util.o vsock_uring_test.o timeout.o msg_zerocopy_common.o
 
+VSOCK_INSTALL_PATH ?= $(abspath .)
+# Avoid changing the rest of the logic here and lib.mk.
+INSTALL_PATH := $(VSOCK_INSTALL_PATH)
+
 CFLAGS += -g -O2 -Werror -Wall -I. -I../../include -I../../../usr/include -Wno-pointer-sign -fno-strict-overflow -fno-strict-aliasing -fno-common -MMD -U_FORTIFY_SOURCE -D_GNU_SOURCE
 .PHONY: all test clean
 clean:
 	${RM} *.o *.d vsock_test vsock_diag_test vsock_perf vsock_uring_test
 -include *.d
+
+install: all
+	@# Ask all targets to install their files
+	mkdir -p $(INSTALL_PATH)/vsock
+	install -m 744 vsock_test $(INSTALL_PATH)/vsock/
+	install -m 744 vsock_perf $(INSTALL_PATH)/vsock/
+	install -m 744 vsock_diag_test $(INSTALL_PATH)/vsock/
+	install -m 744 vsock_uring_test $(INSTALL_PATH)/vsock/
-- 
2.37.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-07-12  8:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 13:50 [PATCH] test/vsock: add install target Peng Fan (OSS)
2024-07-10  7:34 ` Stefano Garzarella
2024-07-10  8:11   ` Peng Fan
2024-07-10  9:11     ` Stefano Garzarella
2024-07-10 11:34       ` Peng Fan
2024-07-10 11:58         ` Stefano Garzarella
2024-07-11  2:00           ` Jakub Kicinski
2024-07-11  7:07             ` Stefano Garzarella
2024-07-11 13:38               ` Stefan Hajnoczi
2024-07-11 14:14                 ` Jakub Kicinski
2024-07-12  8:53                   ` Stefano Garzarella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).