Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7058470pxb; Wed, 17 Feb 2021 23:32:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4BT3fpxTxzZ+KCuzgonUSGAE/mLITvV/Xrne9HrbmH1rK1enzr4ZX5oeoPCXO3PggtxwC X-Received: by 2002:a50:fb03:: with SMTP id d3mr2713685edq.262.1613633542583; Wed, 17 Feb 2021 23:32:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613633542; cv=pass; d=google.com; s=arc-20160816; b=HDe+tDmjYEou43ipbclWH9jyXHoWrHuWFi8WBlhTEuOO85X2A3jZkPIf8Rfmu0jd+D hVl1K3IAc/18KcXu7xwYqvs+tPzjpRQbwBSxs/XLLXfDzL71xOGxyQEL4LjJk2CtZOyO 1DQWMiT3dk4zB4/3QbNTdiZGElaPdE19anqyxHXjn91LWPHW8NGVVOxRf1EgATPolLkT m6tgN8OpLWVRRQ59cUIbUms0PweemKT0VPToZ0N1EhohRDiND2E4uBY+TwaifD4pD4Z7 o/DHGn59DlFtqkATNY7qW7LLqp0k4S+EVn2ij5u2w2TdRsMizGgFgCKidWXe6xg4r6pI wZUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:envelope-to:dkim-signature; bh=852iIOeYc+suflFvMfwfezwgcVLPweBaf8X6D3raM58=; b=Yh5atMEHFuHPQEfnST5BPyz/mtb2QDZhtuoO1U5x/oe8dU03n6SGaAg45FE3GM/0Zr hQGHc+iWdWHPc33Zw+pSzx6wjSxUeXSs2Ah19QRyoRGzmXoUYovM7VVsqoVWJwzqGOJ1 X1U9Aj+ysSbQLCbH2EWNKD+F/wKUeYnqrw+N9YzCB9m4BQI12Ohu7vkq/O8SIBkmKyy2 BBzGRc8fh5SAJYOoLk9q9+97h22+a/7rhm4ywEFSa6VAP3uRwZEuI6VpZbt/x+t+UH9m ChC5KkMByTQjlqKrxBE1MOygFO5tqQHDKz3dRsWxk+DCA13hKJUYS9HzepEjEGG8HX8j xkFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=Wxjhdv09; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d5si2949193eja.499.2021.02.17.23.31.57; Wed, 17 Feb 2021 23:32:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=Wxjhdv09; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231185AbhBRHaF (ORCPT + 99 others); Thu, 18 Feb 2021 02:30:05 -0500 Received: from mail-bn8nam11on2050.outbound.protection.outlook.com ([40.107.236.50]:50017 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230487AbhBRGst (ORCPT ); Thu, 18 Feb 2021 01:48:49 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R5WYmDEG5dQ+Ie92WFrtN51O7++eue/bxCxfc/WHrdklJtgbvNlc6bduf+oSux+p1ehU84K2zjZoVYag+iT0FLn+wCySSJfcwKKZ4d06EFtFNqueNPsibPdXa/4MQabRswvjkQBvnlUrNH4b7v8EBRva1676x9dTDu2J8Rr+rXqY7Y4PfjMk5CIySIKMGasfEnNgmWZ/SwYPx5t9YEOTF9A3dAslsgIsrgvp6KUBefiYQ30ll+0Hhjh6jaJ8M82HCGBJpU5NEuz6eBDIpIYndD/sAlYzXGK9C/6HeAPj2HDbBeZDmWi+GrsrUScOfVtJCAPVcGH3ZwweNtPDndG6iA== 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-SenderADCheck; bh=852iIOeYc+suflFvMfwfezwgcVLPweBaf8X6D3raM58=; b=Lfv0jmCwMTPfVvtLqfUnapw3TOYE5GXxrH5sSlKVz+3YWLQcC8MmVBdgdX31ZzHDIulEi8yQe64pfOV+29r3p0Pb2+RmsKBtMSTFOik+IFj1h3qz0hmMnAvQOWwDhxWMpEenOEnTZQu0Qg5H1BLTQxm+Vl9zHhziecsVoyv0s/+SARhIfq5Bn3iIQnUMay/psOHZ+QH80QHIrFNCGeJv1eiCqEwNxU9tS47vAFyDeUHl0AH8bxJTI5k1qDnVEf3tIS0pd0WIWmrFJiIcb2R2AqgVYuAGRxeMLBmMQJ68+lp17gVyFmgR9L3jnuQQTQsP9CKPqT7joCLgq1fEYdXUjQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=852iIOeYc+suflFvMfwfezwgcVLPweBaf8X6D3raM58=; b=Wxjhdv09VWkMdZnzQt3Kf5e96HnwAQ8C8i4PmxKISYU+g0piBGHvl7sZn1xfr44LecJ49m69RAVRO6+SY1ze6zA1KJJ1SZzjGi4W3tmOetUuJIL02jbjeiMKa4QHw+9icCJLJ/pD1lIuIjUZHdWCRet+yyUer9S9lamjwcnOYBc= Received: from DM5PR07CA0040.namprd07.prod.outlook.com (2603:10b6:3:16::26) by BL0PR02MB4403.namprd02.prod.outlook.com (2603:10b6:208:47::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.36; Thu, 18 Feb 2021 06:46:37 +0000 Received: from CY1NAM02FT039.eop-nam02.prod.protection.outlook.com (2603:10b6:3:16:cafe::3d) by DM5PR07CA0040.outlook.office365.com (2603:10b6:3:16::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 06:46:37 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by CY1NAM02FT039.mail.protection.outlook.com (10.152.75.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3868.27 via Frontend Transport; Thu, 18 Feb 2021 06:46:37 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Wed, 17 Feb 2021 22:46:28 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 17 Feb 2021 22:46:28 -0800 Envelope-to: maxz@xilinx.com, max.zhen@xilinx.com, michal.simek@xilinx.com, sonal.santan@xilinx.com, lizhih@xilinx.com, stefanos@xilinx.com, mdf@kernel.org, robh@kernel.org, trix@redhat.com, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Received: from [172.19.72.212] (port=40196 helo=xsj-xw9400.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lCd52-0002KT-8L; Wed, 17 Feb 2021 22:46:28 -0800 Received: by xsj-xw9400.xilinx.com (Postfix, from userid 21952) id C8DA7600130; Wed, 17 Feb 2021 22:41:06 -0800 (PST) From: Lizhi Hou To: CC: Lizhi Hou , , , , , , , , , , Max Zhen Subject: [PATCH V3 XRT Alveo 18/18] fpga: xrt: Kconfig and Makefile updates for XRT drivers Date: Wed, 17 Feb 2021 22:40:19 -0800 Message-ID: <20210218064019.29189-19-lizhih@xilinx.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210218064019.29189-1-lizhih@xilinx.com> References: <20210218064019.29189-1-lizhih@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: eb9a4015-3144-4aab-1e2d-08d8d3d8f0a8 X-MS-TrafficTypeDiagnostic: BL0PR02MB4403: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:331; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BKwAb9qpzXRfxMENN31qigHw2MBaw1LOmOAKU8a1uYbkKAa7FGWWQSaDICHXJOKen1ayvQP4B6xiJRjxe7zT0ibm/w46iedPR2mKqpyAgLD5b9wy1RGfYXO0p9DBa6rKFSo14+TAHdYs0KxQxR/WNHIrZsTu5/QOeOX8ncb2V9XlkqqSpSvy4eTczwRpDdpbO1aDO2FBkVlAqdq8ce8PeVCZ1WadhI2fAth8ruCNLLhBGltYq8083MJ08FpGe3nqGBbKmpIWSNZhmWFo9LeL9VawSa5OiHbcrJx/Q6rOyxvG5GHl0dTpirjOcV3VDR+uERFKiX+fpxyqr9J10GW6a2vTY7qzINOVAuuP4QwzKivNF8YkXvEH6absDPbzIxM8EMOhynoPYsE+Y+lEbLiwoEpA8PRqGwJNJoCXy/mdBqPKP1WDGYLyIBSNbgEn937y6m+SlgJKE9Q3Iul5rILR0XwUohqAwQGq9tXSAg4+5ljG0HeAMyiiKc1cTbe3rWU2idzapsOQoV3mYnNAR19NAhS/WJHsPtDQdy2996gLoMHMD4LL7ROvPPl2Yl/ENTvtIfubvpHe7Hk3xfEMeSyLbjKdcULjbeGTn5nAzANrl5cNcDBXyN4u4vYHK7CH2basgoYWJ5FPgCIqwPHGqVDEHSO+8cfhjQzIXrNQSgQOM2YkdxiHnSTGfHEF6EL4/wpU/2gYU/xFZSMMnuhYkX9NxyWVMsyLTkfn8B08kNfI4/Y= X-Forefront-Antispam-Report: CIP:149.199.62.198;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapexch02.xlnx.xilinx.com;PTR:unknown-62-198.xilinx.com;CAT:NONE;SFS:(4636009)(136003)(376002)(396003)(39860400002)(346002)(36840700001)(46966006)(8936002)(7636003)(70206006)(36756003)(8676002)(70586007)(6916009)(4326008)(478600001)(107886003)(42186006)(2616005)(6666004)(82740400003)(54906003)(6266002)(1076003)(316002)(356005)(36906005)(36860700001)(15650500001)(336012)(966005)(47076005)(2906002)(26005)(186003)(83380400001)(44832011)(426003)(82310400003)(5660300002);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2021 06:46:37.6251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: eb9a4015-3144-4aab-1e2d-08d8d3d8f0a8 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.62.198];Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: CY1NAM02FT039.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR02MB4403 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update fpga Kconfig/Makefile and add Kconfig/Makefile for new drivers. Signed-off-by: Sonal Santan Signed-off-by: Max Zhen Signed-off-by: Lizhi Hou --- MAINTAINERS | 11 +++++++++++ drivers/Makefile | 1 + drivers/fpga/Kconfig | 2 ++ drivers/fpga/Makefile | 4 ++++ drivers/fpga/xrt/Kconfig | 8 ++++++++ drivers/fpga/xrt/lib/Kconfig | 16 ++++++++++++++++ drivers/fpga/xrt/lib/Makefile | 30 ++++++++++++++++++++++++++++++ drivers/fpga/xrt/metadata/Kconfig | 12 ++++++++++++ drivers/fpga/xrt/metadata/Makefile | 16 ++++++++++++++++ drivers/fpga/xrt/mgmt/Kconfig | 15 +++++++++++++++ drivers/fpga/xrt/mgmt/Makefile | 19 +++++++++++++++++++ 11 files changed, 134 insertions(+) create mode 100644 drivers/fpga/xrt/Kconfig create mode 100644 drivers/fpga/xrt/lib/Kconfig create mode 100644 drivers/fpga/xrt/lib/Makefile create mode 100644 drivers/fpga/xrt/metadata/Kconfig create mode 100644 drivers/fpga/xrt/metadata/Makefile create mode 100644 drivers/fpga/xrt/mgmt/Kconfig create mode 100644 drivers/fpga/xrt/mgmt/Makefile diff --git a/MAINTAINERS b/MAINTAINERS index d3e847f7f3dc..e6e147c2454c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6973,6 +6973,17 @@ F: Documentation/fpga/ F: drivers/fpga/ F: include/linux/fpga/ +FPGA XRT DRIVERS +M: Lizhi Hou +R: Max Zhen +R: Sonal Santan +L: linux-fpga@vger.kernel.org +S: Maintained +W: https://github.com/Xilinx/XRT +F: Documentation/fpga/xrt.rst +F: drivers/fpga/xrt/ +F: include/uapi/linux/xrt/ + FPU EMULATOR M: Bill Metzenthen S: Maintained diff --git a/drivers/Makefile b/drivers/Makefile index fd11b9ac4cc3..e03912af8e48 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -178,6 +178,7 @@ obj-$(CONFIG_STM) += hwtracing/stm/ obj-$(CONFIG_ANDROID) += android/ obj-$(CONFIG_NVMEM) += nvmem/ obj-$(CONFIG_FPGA) += fpga/ +obj-y += fpga/xrt/metadata/ obj-$(CONFIG_FSI) += fsi/ obj-$(CONFIG_TEE) += tee/ obj-$(CONFIG_MULTIPLEXER) += mux/ diff --git a/drivers/fpga/Kconfig b/drivers/fpga/Kconfig index 5645226ca3ce..aeca635b1f25 100644 --- a/drivers/fpga/Kconfig +++ b/drivers/fpga/Kconfig @@ -216,4 +216,6 @@ config FPGA_MGR_ZYNQMP_FPGA to configure the programmable logic(PL) through PS on ZynqMP SoC. +source "drivers/fpga/xrt/Kconfig" + endif # FPGA diff --git a/drivers/fpga/Makefile b/drivers/fpga/Makefile index d8e21dfc6778..2b4453ff7c52 100644 --- a/drivers/fpga/Makefile +++ b/drivers/fpga/Makefile @@ -46,3 +46,7 @@ dfl-afu-objs += dfl-afu-error.o # Drivers for FPGAs which implement DFL obj-$(CONFIG_FPGA_DFL_PCI) += dfl-pci.o + +# XRT drivers for Alveo +obj-$(CONFIG_FPGA_XRT_LIB) += xrt/lib/ +obj-$(CONFIG_FPGA_XRT_XMGMT) += xrt/mgmt/ diff --git a/drivers/fpga/xrt/Kconfig b/drivers/fpga/xrt/Kconfig new file mode 100644 index 000000000000..0e2c59589ddd --- /dev/null +++ b/drivers/fpga/xrt/Kconfig @@ -0,0 +1,8 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Xilinx Alveo FPGA device configuration +# + +source "drivers/fpga/xrt/metadata/Kconfig" +source "drivers/fpga/xrt/lib/Kconfig" +source "drivers/fpga/xrt/mgmt/Kconfig" diff --git a/drivers/fpga/xrt/lib/Kconfig b/drivers/fpga/xrt/lib/Kconfig new file mode 100644 index 000000000000..eed5cb73f5e2 --- /dev/null +++ b/drivers/fpga/xrt/lib/Kconfig @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# XRT Alveo FPGA device configuration +# + +config FPGA_XRT_LIB + tristate "XRT Alveo Driver Library" + depends on HWMON && PCI && HAS_IOMEM + select FPGA_XRT_METADATA + help + Select this option to enable Xilinx XRT Alveo driver library. This + library is core infrastructure of XRT Alveo FPGA drivers which + provides functions for working with device nodes, iteration and + lookup of platform devices, common interfaces for platform devices, + plumbing of function call and ioctls between platform devices and + parent partitions. diff --git a/drivers/fpga/xrt/lib/Makefile b/drivers/fpga/xrt/lib/Makefile new file mode 100644 index 000000000000..5641231b2a36 --- /dev/null +++ b/drivers/fpga/xrt/lib/Makefile @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (C) 2020-2021 Xilinx, Inc. All rights reserved. +# +# Authors: Sonal.Santan@xilinx.com +# + +FULL_XRT_PATH=$(srctree)/$(src)/.. +FULL_DTC_PATH=$(srctree)/scripts/dtc/libfdt + +obj-$(CONFIG_FPGA_XRT_LIB) += xrt-lib.o + +xrt-lib-objs := \ + main.o \ + xroot.o \ + xclbin.o \ + subdev.o \ + cdev.o \ + group.o \ + xleaf/vsec.o \ + xleaf/axigate.o \ + xleaf/devctl.o \ + xleaf/icap.o \ + xleaf/clock.o \ + xleaf/clkfreq.o \ + xleaf/ucs.o \ + xleaf/calib.o \ + +ccflags-y := -I$(FULL_XRT_PATH)/include \ + -I$(FULL_DTC_PATH) diff --git a/drivers/fpga/xrt/metadata/Kconfig b/drivers/fpga/xrt/metadata/Kconfig new file mode 100644 index 000000000000..5012c9c6584d --- /dev/null +++ b/drivers/fpga/xrt/metadata/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# XRT Alveo FPGA device configuration +# + +config FPGA_XRT_METADATA + bool "XRT Alveo Driver Metadata Parser" + select LIBFDT + help + This option provides helper functions to parse Xilinx Alveo FPGA + firmware metadata. The metadata is in device tree format and XRT + driver uses it to discover HW subsystems behind PCIe BAR. diff --git a/drivers/fpga/xrt/metadata/Makefile b/drivers/fpga/xrt/metadata/Makefile new file mode 100644 index 000000000000..14f65ef1595c --- /dev/null +++ b/drivers/fpga/xrt/metadata/Makefile @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (C) 2020-2021 Xilinx, Inc. All rights reserved. +# +# Authors: Sonal.Santan@xilinx.com +# + +FULL_XRT_PATH=$(srctree)/$(src)/.. +FULL_DTC_PATH=$(srctree)/scripts/dtc/libfdt + +obj-$(CONFIG_FPGA_XRT_METADATA) += xrt-md.o + +xrt-md-objs := metadata.o + +ccflags-y := -I$(FULL_XRT_PATH)/include \ + -I$(FULL_DTC_PATH) diff --git a/drivers/fpga/xrt/mgmt/Kconfig b/drivers/fpga/xrt/mgmt/Kconfig new file mode 100644 index 000000000000..2b2a2c34685c --- /dev/null +++ b/drivers/fpga/xrt/mgmt/Kconfig @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Xilinx XRT FPGA device configuration +# + +config FPGA_XRT_XMGMT + tristate "Xilinx Alveo Management Driver" + depends on HWMON && PCI && FPGA_XRT_LIB + select FPGA_XRT_METADATA + select FPGA_BRIDGE + select FPGA_REGION + help + Select this option to enable XRT PCIe driver for Xilinx Alveo FPGA. + This driver provides interfaces for userspace application to access + Alveo FPGA device. diff --git a/drivers/fpga/xrt/mgmt/Makefile b/drivers/fpga/xrt/mgmt/Makefile new file mode 100644 index 000000000000..8051708c361c --- /dev/null +++ b/drivers/fpga/xrt/mgmt/Makefile @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Copyright (C) 2020-2021 Xilinx, Inc. All rights reserved. +# +# Authors: Sonal.Santan@xilinx.com +# + +FULL_XRT_PATH=$(srctree)/$(src)/.. +FULL_DTC_PATH=$(srctree)/scripts/dtc/libfdt + +obj-$(CONFIG_FPGA_XRT_XMGMT) += xmgmt.o + +xmgmt-objs := root.o \ + main.o \ + fmgr-drv.o \ + main-region.o + +ccflags-y := -I$(FULL_XRT_PATH)/include \ + -I$(FULL_DTC_PATH) -- 2.18.4