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 24F8342D70; Tue, 27 Jun 2023 11:26:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AC114113F; Tue, 27 Jun 2023 11:26:35 +0200 (CEST) Received: from forward502b.mail.yandex.net (forward502b.mail.yandex.net [178.154.239.146]) by mails.dpdk.org (Postfix) with ESMTP id 579CA40F18 for ; Tue, 27 Jun 2023 11:26:34 +0200 (CEST) Received: from mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:128d:0:640:d574:0]) by forward502b.mail.yandex.net (Yandex) with ESMTP id A62885EA8F; Tue, 27 Jun 2023 12:26:33 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id VQHmSm6DcGk0-YU4sAjMx; Tue, 27 Jun 2023 12:26:33 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1687857993; bh=+cPgYcFU9ri9Tjj/R7qJ45XT+Y+CE3xSjAN/BBzn8cI=; h=From:In-Reply-To:Cc:Date:References:To:Subject:Message-ID; b=c7vdwzdKeD9VzSpFNpjf5kkjTJOhgyDSfqYmdmH+pEh6+KkBUVVuj/oaeOpZFS0v/ rOF/RZtRrGqoyWsZHfdEQdMW+YmYCSG2/UfrcDi2lXfLt1S47mCd/mQqfApubDwW+J tRrKO7FumKbwzdtFI+ljQW3upq7TQ3szK5LZ6SXY= Authentication-Results: mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <55f93691-e0a1-3f12-5155-eba03d6b1b3b@yandex.ru> Date: Tue, 27 Jun 2023 10:26:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4 5/9] build: make bpf library optional Content-Language: en-US To: Bruce Richardson , dev@dpdk.org Cc: =?UTF-8?Q?Morten_Br=c3=b8rup?= References: <20230622134840.3225975-1-bruce.richardson@intel.com> <20230623150708.2203918-1-bruce.richardson@intel.com> <20230623150708.2203918-6-bruce.richardson@intel.com> From: Konstantin Ananyev In-Reply-To: <20230623150708.2203918-6-bruce.richardson@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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 23/06/2023 16:07, Bruce Richardson пишет: > 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 0f9992c0b2..0ef0bf690f 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', > @@ -150,8 +149,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], > @@ -341,6 +338,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 de7069a078..47c18ca3b0 100644 > --- a/lib/meson.build > +++ b/lib/meson.build > @@ -70,6 +70,7 @@ libraries = [ > optional_libs = [ > 'bbdev', > 'bitratestats', > + 'bpf', > 'cfgfile', > 'compressdev', > 'dmadev', Acked-by: Konstantin Ananyev