From patchwork Tue Jul 9 13:50:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13728053 Received: from EUR02-DB5-obe.outbound.protection.outlook.com (mail-db5eur02on2083.outbound.protection.outlook.com [40.107.249.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1485D15749F; Tue, 9 Jul 2024 13:41:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.249.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720532522; cv=fail; b=M40jGmiEYDWCS0+P6w3l+TYwGbtyDSL9lTrenc7n+yjCzT22QFZ/ItB+8dK+TENthASby41MWklUIuWZnfsCNFSw5aS83gS0Cep1xQnvV6SPyW6qbuY5Ow6KETdjZhPIoRLpk4fjGekKDE88a33dUcyK/IWoEDkrk/wFBWDJxOI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720532522; c=relaxed/simple; bh=Q7FSgH1+U/q4gbRzOqfQ84S5/ylbjdsvbfP7q0J5fRg=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=K4RIMGwxBsTNAdR8sUdtpbto3nGjEsC/cKU4taJeR6+cMljB4pvWHrxReV858ygU8ed/wNe2oN9c4TfU7JeYMSvxKq/PA29Xk4ELHDXMouFu7y8KV0hs/ONC+bO1Tz6IgfVpwLPU0qKbHZbxsxWbwPlAqFiSBqOCsZGfXk6ZYns= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b=ADgmHoIZ; arc=fail smtp.client-ip=40.107.249.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="ADgmHoIZ" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UldQi4aWtRDqREJCLePuxcA4l5KuFkOdItrBqVe/yGP9PegDJPV77ooRs8RZ6vGVPpPePv6+JP3algWnK4O+NLcCEbSa1Om5R8ZhsagyKSLmV0gzNb+COqEcFBJNv/VPxX5N1qUp7bS34Odw8U3hLiK6vbOTNWFmQvJcvPBCdcGttA1OcuHZ7MwDsLPiR0quljL/59u5itX399TpnopCyRt3LdRZQqyUwM9YTVqitIOedi/3lKxzMz7oCzJsJvPZXaEdzuVP1UznBxm5JPNkOoPCJEIyzOXyXOjjm5zsLSyAoLuSO6UAO7gLFp9Dus7ujrURp/7Ss60B9i2MOYtoMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1gEhF1USxOzmB4xzAb4aj+nN/yRga7wz+2KD+KDTuYM=; b=Da2Jbzu9Oy+D/LQB3xDyrvpSnWzWH76BKtd6oqGTHFoCRK0VSsmG9M1KmnM7mPMRFI87MV2wYJgR5/EcM9SI6WcsvpkU3qeaH5r+4+jTzX1Mg7yldYcbTaUOWuwyty8pm+8vlXxFaacJg5ETE1chbYCNkFyGfQI2nbzeDFiXZVCxO4V5IFWt5F9Px8aPiZ1FV8fG/+OBsHh/wgz0pco+lTHBpjQ4S6Ja5mj12d6tVaVvDt3vp7KQbYrjXSws4C/WuMpUUxcGN+A0hYgRXZD2YW+WaH29EZd8PGlEQ12XkdobAKT0SNumOTB93a6ZULr8tDXU31wd1/2AbYjBZLhxUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1gEhF1USxOzmB4xzAb4aj+nN/yRga7wz+2KD+KDTuYM=; b=ADgmHoIZgcGWOG+QT+sZIZNP419bMbhI0037CPGXjrLDETtmL152VvtpsRAhJ0cz7R3SpAQzd2h8XpIv70mSnx5ANsWPXARQs/4qtHNK2nE7BlRCIEReHKTvczuLjTtWGPOpo7ntjL2E2hbdAzgRp53DQc99DOt8n+u1qJOCnV4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) by DB9PR04MB9938.eurprd04.prod.outlook.com (2603:10a6:10:4ee::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Tue, 9 Jul 2024 13:41:56 +0000 Received: from PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630]) by PAXPR04MB8459.eurprd04.prod.outlook.com ([fe80::165a:30a2:5835:9630%4]) with mapi id 15.20.7741.033; Tue, 9 Jul 2024 13:41:56 +0000 From: "Peng Fan (OSS)" To: sgarzare@redhat.com Cc: virtualization@lists.linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan Subject: [PATCH] test/vsock: add install target Date: Tue, 9 Jul 2024 21:50:51 +0800 Message-Id: <20240709135051.3152502-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SI2PR01CA0048.apcprd01.prod.exchangelabs.com (2603:1096:4:193::17) To PAXPR04MB8459.eurprd04.prod.outlook.com (2603:10a6:102:1da::15) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB8459:EE_|DB9PR04MB9938:EE_ X-MS-Office365-Filtering-Correlation-Id: e09918b3-5a95-4651-57c3-08dca01ce60a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024|52116014|38350700014; X-Microsoft-Antispam-Message-Info: QRd8T3uus+5lrfdM68dRflTRvTmAjvtCT9u5tcCZEfuYUsDXnNyxFnzqsTgOWxtB1IdjB+9KEblRQjiFEQsVWjxTWllmLMb1OAbD5slqSxKDFn1wC4Dkkt2ntaJkJs5UgEWVqAlIK1UptfMa3DRLAk6kEzcWYFyPnI1UTSQv32hb8jrfRuj37wabloDDHzRhV/0WttWINGxIo6s3JDXUNGlieM2Ef9fSs2Ct2emZQmZdmOwz9tNdXPK34v4/2wQd8wNUL3JH37pGBTYUthyH7IGPDfhlZMEPzBC2Xoaa+dMH4vC/b8Vsg0NirJIdzc3XgRXp6H99jn2JxaaTaEO02fosER9khZTJE9ejAbjCFMnYGQBCFgnuD23a8rcJVCXGiRfXXHxes+AnUD0LPbV1NoOnjtIxF0hyBieDfFO0IZ25tVLFFB2SiC/LfMwJ8WiauF8YGulN/wGqMllDqDoJyd+8ujcj7vtNJaZXXx5mOO4+WmiApf8nd/fK6ca7oXf6qk3TbDxlNsVGYi0nsdm6XCStjJ15uHWrRSZc72eAGiKPTZUdFKddlMR+9lPLFpbmlkZ5iPeYo7hQ+/Ql5X31we3hg1ZzvH3rSZzG+6+FbfuIsc9KBidNnpfeOAh+pHuIRA0CZTbqiMN50G49SrMUzrdyGVDyA3E8q7H9K43KEAipNS5KDQgigT9lIUCB2+QdZjAL7DnSR2zr2x6Iy/vLuUjlU372+7ipzSQ4ANZtFwmeiudlzQkc3QRyrPOU7iHtkZMlOHOHd1KLqQMHXNm9Vg9IqM81yvHynNTjr1+gk4DhXtFXYY3a+7UUYa5Y6HAkEPVR+kIeqKQK1wFeWqW1oSE7ZWcCfpPxCIrfwnwvb/H8EDJGE7MudMwPMusVCqAXyssbNmmUDt540+uNGqLsYhgemclgVttvAUYBbCmQfIQGHgStecy0nYpk5cmXi0pWwKRNyKky5+Wzjg4OGMryyDaHCcxiIZ73JHgUHD9KIRL8/W9czz7Ke0Q14Vckr4wvP/usUNiw63+bBJ5pPuhy7goGBQviwDTslBXloAHyN9zC/RSYHHPINcf4SQJsAxgKGa+ytAbHUA18AFL5fYXQFQZBhzVcQTq3+J+CRQfyvrcwM/GJ/zqKYoApK5hinHkj0KYNxjc61MrgvKfWn6cceSmqjvxIOOOra+Y4Q/p+SDl0dVWEnpIlg+LieoGiuFcXTpXQk+d04KeTKwiEGRJ1zMAbAm8cbmbxoSZ14THEjDpXoNlKB5TqfS/M9x4miNh9KrubsfEn6VFrtfRabBl1SRV3VyUoO3VQ4gjI/Stl9iaivwjTjBvfOFi68L6lYojwt/Tt1zIrtjhmne8qNabveki6PYqy6FW8SniIi2B0FW9gUzYiWMaVtld67Y/UJ8uedc6E7uix+Ba+oXU/xprZ4A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB8459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-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h9VJrVg/xnRwcOG5wai66v7g6Oz0jLZOLTMMRV5LFIVx3VMBwd1EQpxpeCPuvGoiofxjZYrEtV/EII/4LIVfWZhvIJbENmgOLeGglIOhkEvo/dABnZF6Fsc/sWa3C8NLWB0uI22q8YZaLQucNdX9PrlV5qgW3TorBGHkOp5XzO3QIk5TJ00ebDLcVvlrHjxFtlRJy8dNAlxL7NdykByCXRXgT0gvOt9H2FPvDSdP492Yn+LWzShmXY7eGj+dfzl9sPM45xa5bTkMwqo8YDW1AAtmo5etFLNl/t70ogK0aWC2cJs1t6Qoh/WOmjm30DJYRPdJua5tzvtK4iPnRXF4TtxC5oCGBh5cLf9qqfybjjCN0b8uN9qnisbUPNuWKv8t16jZA6P49RWYafv7o1yCD3NQY5ym/T/GQxe+AzAHxyaPjWfqK9DhKoH+upmTI8rXpC7jKCURFy1BurEp30jjgZSkQNc8uhwJ15fmlaP2zqJHk5Q+AuNltOg7/lUZDVf9wadGl X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e09918b3-5a95-4651-57c3-08dca01ce60a X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB8459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2024 13:41:56.3685 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: mOC12lyLG829weAco3JctSwKZjHiB8BGRuv/Ie4xhzohmo3GC/SbioGlLg5pFrshw0Yp9kyLWcpbeZA0QlO1uQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB9938 From: Peng Fan Add install target for vsock to make Yocto easy to install the images. Signed-off-by: Peng Fan --- 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/