From patchwork Mon Jul 25 17:36:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 15015 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 2258556A8; Mon, 25 Jul 2016 19:36:10 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8C4455692 for ; Mon, 25 Jul 2016 19:36:08 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP; 25 Jul 2016 10:36:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,420,1464678000"; d="scan'208";a="853122758" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga003.jf.intel.com with ESMTP; 25 Jul 2016 10:36:06 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id u6PHa5Lc021605; Mon, 25 Jul 2016 18:36:05 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u6PHa5ib029848; Mon, 25 Jul 2016 18:36:05 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u6PHa5Mr029844; Mon, 25 Jul 2016 18:36:05 +0100 X-Authentication-Warning: sivswdev02.ir.intel.com: fyigit set sender to ferruh.yigit@intel.com using -f From: Ferruh Yigit To: dev@dpdk.org Cc: Thomas Monjalon Date: Mon, 25 Jul 2016 18:36:03 +0100 Message-Id: <1469468163-29814-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [RFC] mk: add config items to disable tools and tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" It is not possible to prevent compiling some tests and tools. These enabled when a library or specific exec env enabled. This compilation can be overkill for someone who is compiling DPDK just as library. Adding two new config options, to completely enable/disable tools and test. Both enable default, compatible with existing behavior. This commit also shows app folder is used both for unit tests, test tools and other tools for DPDK, it is possible to discuss separating tests into a test folder. Signed-off-by: Ferruh Yigit --- Targeted for DPDK16.11 --- app/Makefile | 5 +++++ config/common_base | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/app/Makefile b/app/Makefile index 30ec292..76b1c2e 100644 --- a/app/Makefile +++ b/app/Makefile @@ -31,12 +31,17 @@ include $(RTE_SDK)/mk/rte.vars.mk +ifeq ($(CONFIG_RTE_ENABLE_TESTS),y) DIRS-$(CONFIG_RTE_APP_TEST) += test DIRS-$(CONFIG_RTE_LIBRTE_ACL) += test-acl DIRS-$(CONFIG_RTE_LIBRTE_PIPELINE) += test-pipeline DIRS-$(CONFIG_RTE_TEST_PMD) += test-pmd DIRS-$(CONFIG_RTE_LIBRTE_CMDLINE) += cmdline_test +endif + +ifeq ($(CONFIG_RTE_ENABLE_TOOLS),y) DIRS-$(CONFIG_RTE_EXEC_ENV_LINUXAPP) += proc_info DIRS-$(CONFIG_RTE_LIBRTE_PDUMP) += pdump +endif include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/config/common_base b/config/common_base index 7830535..50fdf98 100644 --- a/config/common_base +++ b/config/common_base @@ -573,6 +573,11 @@ CONFIG_RTE_LIBRTE_XEN_DOM0=n CONFIG_RTE_INSECURE_FUNCTION_WARNING=n # +# Enable/Disable all test applications +# +CONFIG_RTE_ENABLE_TESTS=y + +# # Compile the test application # CONFIG_RTE_APP_TEST=y @@ -583,4 +588,9 @@ CONFIG_RTE_APP_TEST_RESOURCE_TAR=n # CONFIG_RTE_TEST_PMD=y CONFIG_RTE_TEST_PMD_RECORD_CORE_CYCLES=n + +# +# Enable/Disable all test applications +# +CONFIG_RTE_ENABLE_TOOLS=y CONFIG_RTE_TEST_PMD_RECORD_BURST_STATS=n