From patchwork Fri Jun 23 15:07:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 128965 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 BD1CB42D31; Fri, 23 Jun 2023 17:07:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D74AE42C54; Fri, 23 Jun 2023 17:07:39 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 7BEF5427F5 for ; Fri, 23 Jun 2023 17:07:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687532856; x=1719068856; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FT8vXRH5gVNi1c6FT//BN4oOlG1xnx/ZWIfrK4UL3mY=; b=j0rh/3QML8jLn+p8D7yIVoAaU2a4bNmB4uTadWkrQGAbXY4L8E37WB5y vjYn6AEHvrUmUCAYzZLcJs7ysw76aAr4iuD7azRzbeOW++pV4oLhubPe5 o/gQCKWpWgOYF6P5KVQDYb/4zduTN1ZGpMgEIp8IKg0jzeA0TZ8PSQ9lr 1q0+3IZCzyYF85V6vRouifueGV1pYGi6NOLPBiBKY2mCSZqIL1/OK0Q0D RCHGcdvXmVlqXaJVVWpwOZtStL3zBX0Fv9qb2mEED9rhCeObvmuN89OR3 XdPBeuvN33dC3rCCHwWkZ8v38iRekpYtJ6Bqbmgjp4Tz8pzaC/GXueen1 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10750"; a="424467914" X-IronPort-AV: E=Sophos;i="6.01,152,1684825200"; d="scan'208";a="424467914" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2023 08:07:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10750"; a="692697237" X-IronPort-AV: E=Sophos;i="6.01,152,1684825200"; d="scan'208";a="692697237" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga006.jf.intel.com with ESMTP; 23 Jun 2023 08:07:22 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , Timothy McDaniel Subject: [PATCH v4 2/9] event/dlb2: skip configuration if no eventdev lib Date: Fri, 23 Jun 2023 16:07:01 +0100 Message-Id: <20230623150708.2203918-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230623150708.2203918-1-bruce.richardson@intel.com> References: <20230622134840.3225975-1-bruce.richardson@intel.com> <20230623150708.2203918-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 While the build system will skip building most libs and drivers when a dependency is missing for a component, for DLB2 driver, the "static_rte_eventdev" object is referenced inside the meson.build file itself, which will cause crashes if it doesn't exist i.e. if eventdev is disabled. Prevent this issue by skipping processing the file if no eventdev. [The build system will still report missing dependency, as the dependency is set by default for all eventdev drivers] Signed-off-by: Bruce Richardson --- drivers/event/dlb2/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/event/dlb2/meson.build b/drivers/event/dlb2/meson.build index 515d1795fe..8cede61593 100644 --- a/drivers/event/dlb2/meson.build +++ b/drivers/event/dlb2/meson.build @@ -7,7 +7,7 @@ if not is_linux or not dpdk_conf.has('RTE_ARCH_X86_64') subdir_done() endif -if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 +if dpdk_conf.get('RTE_IOVA_IN_MBUF') == 0 or not dpdk_conf.has('RTE_LIB_EVENTDEV') subdir_done() endif