From patchwork Thu Jun 22 13:48:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 128923 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C3C4942D1C; Thu, 22 Jun 2023 16:20:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21BDA40ED7; Thu, 22 Jun 2023 16:20:16 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 54D8E406A2 for ; Thu, 22 Jun 2023 16:20:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687443614; x=1718979614; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hMyfDutIXiqLPaRHCw1qlMxg0i9pp2onZwLIsoxHAU8=; b=Z6Q7paP4qoiYBVe/AC70zxprP99bKpmEJnaUXyqu8dtQ+FDzZH9SRbY4 D+zo7sXyY6//MMSLNEAMrcSdiZo81XdtJzobRemDZyw0u0+DLvomXQeLA EY/ueai2Tu12P4XxL8mf1LRU2gxGvobNX9OhD5tJzcek49AC/t8fUbMsr bV717LIIUkEf5Yq/D+obt0Zor/XTRwoB5qlIlzDNrl79xDFvvQaeUIESN J32+KwBfDMW/eZI8laDk0my1Q6oDAX7Ev9pqlUE3MSgp6pgzJikdEu5k+ BmZUx/XBfkNJSQsPty/RlwVxLhYkbVOTi7nw1bMH+pTs3wF8TVqd0zq+r g==; X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="363932095" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="363932095" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 06:48:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="692272468" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="692272468" Received: from silpixa00401385.ir.intel.com ([10.237.214.166]) by orsmga006.jf.intel.com with ESMTP; 22 Jun 2023 06:48:45 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 0/7] expand list of optional libraries Date: Thu, 22 Jun 2023 14:48:33 +0100 Message-Id: <20230622134840.3225975-1-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 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 DPDK still has many libraries which cannot be disabled as part of a build. With the ongoing work to make it easier to only build a subset of the libraries in DPDK, we can also work to expand the list of libraries which can be enabled/disabled as desired. This patch addresses a number of the "low-hanging fruit" libraries, where only the unit test builds need minor changes to support making the library optional. The rest of the build system is already well set up for selective disabling of libraries. For better support of enabling components, especially those more integrated into DPDK unit tests, rework of the test meson.build file is likely needed. For example, it could probably be better rewritten to use a dictionary of files and the dependencies of each file, and the unit test commands each provides. However, such rework is a significant effort, and outside the scope of this patchset. Bruce Richardson (7): build: make most device classes optional build: make membership library optional build: make bpf library optional build: make efd library optional build: make distributor library optional build: make fragmentation libary optional build: make reorder library optional app/test/meson.build | 81 +++++++++++++++++++++++++++----------------- lib/meson.build | 13 +++++++ 2 files changed, 63 insertions(+), 31 deletions(-) --- 2.39.2