From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 32097D609CD for ; Wed, 27 Nov 2024 10:22:26 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E36EC10EA72; Wed, 27 Nov 2024 10:22:25 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="mEFwZnJC"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 65EF810EA72 for ; Wed, 27 Nov 2024 10:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732702946; x=1764238946; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IQajtRxdnmkJtKwx6Y7uY2IvpUS9Kpr8DL1ai8tHF14=; b=mEFwZnJCTd8NAV5pI//3s5I/Terw5gFJAu/DVom4Zrt9PyD7Xwk9SFNm mg5keuoqXaNDa+DZR96IsHXJ3810/da3cVwhTPU7kpksalBfGnMhvIrSb lMrrS0inOk8rGV/mcJ7rlrATE+XZpPbRGnXnB3487vA5gN0QWElgIQMQV OeTdok5+R7UTfWLC8IEIh8n3B4vt1/r4TiUC4EZdbqtqbF3b4Sp6Kg6oO J8zUBjesSxwjoPP77Rt/urcagllif/HqC3vvgkhKWNtjeVR2XpEpOdjXQ 7EhM8j42j5mbWHoY1b1QH4XmyF8J5k73KEJJgkEq1/JhN4mFIdki47V12 A==; X-CSE-ConnectionGUID: bbxD+yZiT6ySGN5SBRYDpQ== X-CSE-MsgGUID: sDe8x+t0RbedNPUZjpDfig== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="43391187" X-IronPort-AV: E=Sophos;i="6.12,189,1728975600"; d="scan'208";a="43391187" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2024 02:22:26 -0800 X-CSE-ConnectionGUID: PYrpNU7LRpmZGX6WBWn8Bg== X-CSE-MsgGUID: ODzEYfIlS9K6oAvonzVo6w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,189,1728975600"; d="scan'208";a="96974309" Received: from amiszcza-desk-dev.igk.intel.com (HELO localhost) ([10.91.214.39]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2024 02:22:24 -0800 From: Adam Miszczak To: igt-dev@lists.freedesktop.org Cc: kamil.konieczny@linux.intel.com, marcin.bernatowicz@linux.intel.com, michal.wajdeczko@intel.com, pawel.sikora@intel.com Subject: [PATCH i-g-t v3 4/4] tools/vmtb: Install VMTB with IGT build system Date: Wed, 27 Nov 2024 11:22:02 +0100 Message-Id: <20241127102202.3903735-5-adam.miszczak@linux.intel.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20241127102202.3903735-1-adam.miszczak@linux.intel.com> References: <20241127102202.3903735-1-adam.miszczak@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Integrate VMTB into the IGT build system: introduce a new meson build option 'vmtb' to enable VMTB sources installation in a libexec directory by default: /usr/local/libexec/igt-gpu-tools/vmtb/ VMTB is not enabled in a default IGT meson configuration, to build and install it, use the following command: meson build -Dvmtb=enabled && ninja -C build install Signed-off-by: Adam Miszczak --- meson.build | 2 ++ meson_options.txt | 5 +++++ tools/meson.build | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/meson.build b/meson.build index 64f57f232..0f26f95c8 100644 --- a/meson.build +++ b/meson.build @@ -91,10 +91,12 @@ build_docs = get_option('docs') build_tests = not get_option('tests').disabled() build_xe = not get_option('xe_driver').disabled() build_xe_eudebug = get_option('xe_eudebug').enabled() +build_vmtb = get_option('vmtb').enabled() with_libdrm = get_option('libdrm_drivers') build_info = ['Build type: ' + get_option('buildtype')] build_info += 'Build Xe EU debugger test framework: @0@'.format(build_xe_eudebug) +build_info += 'Build VM Test Bench: @0@'.format(build_vmtb) inc = include_directories('include', 'include/drm-uapi', 'include/drm-uapi-experimental', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.') diff --git a/meson_options.txt b/meson_options.txt index c410f9b77..e23402b36 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -47,6 +47,11 @@ option('xe_eudebug', value : 'disabled', description : 'Build library and tests for Xe EU debugger') +option('vmtb', + type : 'feature', + value : 'disabled', + description : 'Build VM Test Bench') + option('libdrm_drivers', type : 'array', value : ['auto'], diff --git a/tools/meson.build b/tools/meson.build index 48c9a4b50..38b04851c 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -113,6 +113,10 @@ if libudev.found() install : true) endif +if build_vmtb + install_subdir('vmtb', install_dir: libexecdir) +endif + subdir('i915-perf') subdir('xe-perf') subdir('null_state_gen') -- 2.39.1