From patchwork Sat Dec 16 00:13:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ferruh Yigit X-Patchwork-Id: 32335 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 [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 46F16397D; Sat, 16 Dec 2017 01:13:59 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 5FA8B271 for ; Sat, 16 Dec 2017 01:13:57 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Dec 2017 16:13:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,407,1508828400"; d="scan'208";a="13946587" Received: from silpixa00372839.ir.intel.com (HELO silpixa00372839.ger.corp.intel.com) ([10.237.222.154]) by fmsmga001.fm.intel.com with ESMTP; 15 Dec 2017 16:13:54 -0800 From: Ferruh Yigit To: Thomas Monjalon , John McNamara Cc: dev@dpdk.org, Ferruh Yigit Date: Sat, 16 Dec 2017 00:13:50 +0000 Message-Id: <20171216001350.90436-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.14.3 Subject: [dpdk-dev] [PATCH] mk: add debug target X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add "debug" target to build library with debug symbols and optimization disabled. This is shortcut for exiting method to compile with EXTRA_CFLAGS="-O0 -g3" Signed-off-by: Ferruh Yigit --- doc/build-sdk-quick.txt | 1 + mk/rte.sdkroot.mk | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/build-sdk-quick.txt b/doc/build-sdk-quick.txt index ff297806a..619430e1b 100644 --- a/doc/build-sdk-quick.txt +++ b/doc/build-sdk-quick.txt @@ -7,6 +7,7 @@ Build commands defconfig auto-select target template based on arch, OS, etc. all same as build (default rule) build build in a configured directory + debug build library with debug symbols clean remove files but keep configuration install T= configure, build and install a target in DESTDIR install install optionally staged in DESTDIR diff --git a/mk/rte.sdkroot.mk b/mk/rte.sdkroot.mk index e2e3effa8..c55680420 100644 --- a/mk/rte.sdkroot.mk +++ b/mk/rte.sdkroot.mk @@ -123,6 +123,10 @@ gcov gcovclean: examples examples_clean: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkexamples.mk $@ +.PHONY: debug +debug: + $(Q)$(MAKE) EXTRA_CFLAGS="-O0 -g3" + # all other build targets %: $(Q)$(MAKE) -f $(RTE_SDK)/mk/rte.sdkconfig.mk checkconfig