From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6BF2CA0564; Thu, 11 Mar 2021 20:27:22 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF6914014D; Thu, 11 Mar 2021 20:27:21 +0100 (CET) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 4154340141 for ; Thu, 11 Mar 2021 20:27:21 +0100 (CET) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 44D42208D36D; Thu, 11 Mar 2021 11:27:20 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 44D42208D36D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1615490840; bh=mt50NJ57ElNwzruAHCI6yIIf4lTknVQoD/wlYm+3zC8=; h=From:To:Cc:Subject:Date:From; b=WLN9OgejINQM3kvm0An6inayjIqmQZkwj5euOPFeVHuSJi5y2mfDDvzPbv4cxcYHF 6W3Q1WXcHh1A9hW45RmPs7KqIO67Yvh0KBZAxil1XQ6N4Hxt73Vg4qYeiM7ZwNab4/ fQRrgy5auZXej1lsCnb4F0R+ottMP6Zs7V4RoB94= From: Tyler Retzlaff To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, andrew.rybchenko@oktetlabs.ru, bruce.richardson@intel.com Date: Thu, 11 Mar 2021 11:27:13 -0800 Message-Id: <1615490833-23052-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH] ethdev: introduce enable_driver_sdk to install driver headers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Introduce a meson option enable_driver_sdk when true installs internal driver headers for ethdev. this allows drivers that do not depend on stable api/abi to be built external to the dpdk source tree. Signed-off-by: Tyler Retzlaff --- it's still unclear to me if we should be renaming the headers: ethdev_driver.h -> rte_ethdev_driver.h ethdev_pci.h -> rte_ethdev_pci.h ethdev_vdev.h -> rte_ethdev_vdev.h lib/librte_ethdev/meson.build | 5 +++++ meson_options.txt | 2 ++ 2 files changed, 7 insertions(+) diff --git a/lib/librte_ethdev/meson.build b/lib/librte_ethdev/meson.build index c37b2e377..7ecdec6f0 100644 --- a/lib/librte_ethdev/meson.build +++ b/lib/librte_ethdev/meson.build @@ -20,6 +20,11 @@ headers = files('rte_ethdev.h', 'rte_mtr_driver.h', 'rte_tm.h', 'rte_tm_driver.h') +if get_option('enable_driver_sdk') +headers += files('ethdev_driver.h', + 'ethdev_pci.h', + 'ethdev_vdev.h') +endif indirect_headers += files( 'rte_ethdev_core.h', 'rte_eth_ctrl.h') diff --git a/meson_options.txt b/meson_options.txt index 6eff62e47..857874a19 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -8,6 +8,8 @@ option('drivers_install_subdir', type: 'string', value: 'dpdk/pmds-', description: 'Subdirectory of libdir where to install PMDs. Defaults to using a versioned subdirectory.') option('enable_docs', type: 'boolean', value: false, description: 'build documentation') +option('enable_driver_sdk', type: 'boolean', value: false, + description: 'install internal driver plugin headers') option('enable_kmods', type: 'boolean', value: false, description: 'build kernel modules') option('examples', type: 'string', value: '', -- 2.30.0.vfs.0.2