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 A538E42D1C; Thu, 22 Jun 2023 17:05:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB20A42D0C; Thu, 22 Jun 2023 17:05:40 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id BCBD442BAC for ; Thu, 22 Jun 2023 17:05:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687446340; x=1718982340; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1eOXqpMqmnRpvwkhe+ly76tgJbM4cz4hDmafETnOa6g=; b=baTPsdQ7syUQ88VxTl3FxZNqrf1mC+NBzJCzCRGnbjUs+BSadCaZJ8uR NsyaUO8gfJm4yLl7GVMPeX3ob5yRVnDpSrfFuI9ZPsVOhkq6KSY3F4fRX SPAJ5XlNK1oLTZHcyGbgSzp6BWW9lxv6HMTvSbBdVjKMn6EosRjjvGV23 EJM8oyh/bCUJJn4xw/7qcy6uFQkRiH5v+mXngIxOKmcFi+zG5szK2KHM4 AnFZpobHbEv/0nSryGxp6bLb5GS4P1t2D+p3G8rwue0VQZcDccyp27Fof ykZyx8DLPeAHfX46ORfil0+nu9u/iTxOiaTfeD9bCD4XIQsyGo7sij0kd w==; X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="340114286" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="340114286" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2023 08:05:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10749"; a="665100717" X-IronPort-AV: E=Sophos;i="6.01,149,1684825200"; d="scan'208";a="665100717" Received: from silpixa00401385.ir.intel.com ([10.237.214.166]) by orsmga003.jf.intel.com with ESMTP; 22 Jun 2023 08:05:37 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , =?UTF-8?q?Morten=20Br=C3=B8rup?= Subject: [PATCH v2 3/7] build: make bpf library optional Date: Thu, 22 Jun 2023 16:05:18 +0100 Message-Id: <20230622150522.3228294-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230622150522.3228294-1-bruce.richardson@intel.com> References: <20230622134840.3225975-1-bruce.richardson@intel.com> <20230622150522.3228294-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 This library is not essential for most DPDK uses, so mark it as optional in the build config. Signed-off-by: Bruce Richardson Acked-by: Morten Brørup --- 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', -- 2.39.2