From patchwork Thu Jun 22 13:48:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 128926 X-Patchwork-Delegate: thomas@monjalon.net 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 5C67C42D1C; Thu, 22 Jun 2023 16:20:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4F53742D13; Thu, 22 Jun 2023 16:20:20 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id CB026410FC for ; Thu, 22 Jun 2023 16:20:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687443617; x=1718979617; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=y/Bj0/aQ7DSpVIceyZl1g4E+cy51SDURNZw05RLp+hA=; b=jsJYFWRO5FvWlKMGmbBxZj+kxZIlGnTCWcsPgt2KzCcCzXAo7a8aU99E +JNCTp4ViyzLZ54lJySzy4zNij5pkymUcWuSkAY98FBU1SbcrYdD0NWXD roiW+7HkTuyWgBAuuGNMmPjF3cJlQIrR99fnSTTKpzcTkJZeXzCKZHJ8O h8hVEdldoLFESDOnZ4Y+mNeCpBqYlao8Lqr+7Zpq9yTlNSkIyIrskwcd3 rqjyZDB8UjPyHZCIyP9oAX27MKaX98PsmhQnKb5wcbdTJWl544hm8507x bfCJIfDd4z6DUO2/lkudpP/7rjUEhlO5Swy0bv50EQBaniIuxC5xfgA4Z g==; X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="363932127" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="363932127" 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:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="692272549" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="692272549" Received: from silpixa00401385.ir.intel.com ([10.237.214.166]) by orsmga006.jf.intel.com with ESMTP; 22 Jun 2023 06:48:56 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Subject: [PATCH 3/7] build: make bpf library optional Date: Thu, 22 Jun 2023 14:48:36 +0100 Message-Id: <20230622134840.3225975-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230622134840.3225975-1-bruce.richardson@intel.com> References: <20230622134840.3225975-1-bruce.richardson@intel.com> 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 Signed-off-by: Bruce Richardson --- app/test/meson.build | 10 +++++++--- lib/meson.build | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/test/meson.build b/app/test/meson.build index bed6acfdaf..d8ad8b1d97 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -15,7 +15,6 @@ test_sources = files( 'test_barrier.c', 'test_bitops.c', 'test_bitmap.c', - 'test_bpf.c', 'test_byteorder.c', 'test_cksum.c', 'test_cksum_perf.c', @@ -152,8 +151,6 @@ fast_tests = [ ['acl_autotest', true, true], ['atomic_autotest', false, true], ['bitmap_autotest', true, true], - ['bpf_autotest', true, true], - ['bpf_convert_autotest', true, true], ['bitops_autotest', true, true], ['byteorder_autotest', true, true], ['cksum_autotest', true, true], @@ -343,6 +340,13 @@ if dpdk_conf.has('RTE_EVENT_SKELETON') test_deps += 'event_skeleton' endif +if dpdk_conf.has('RTE_LIB_BPF') + test_sources += 'test_bpf.c' + fast_tests += [ + ['bpf_autotest', true, true], + ['bpf_convert_autotest', true, true], + ] +endif if dpdk_conf.has('RTE_LIB_DMADEV') test_sources += ['test_dmadev.c', 'test_dmadev_api.c'] driver_test_names += 'dmadev_autotest' diff --git a/lib/meson.build b/lib/meson.build index e46b141657..105f167d45 100644 --- a/lib/meson.build +++ b/lib/meson.build @@ -70,6 +70,7 @@ libraries = [ optional_libs = [ 'bbdev', 'bitratestats', + 'bpf', 'cfgfile', 'compressdev', 'dmadev',