From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755367Ab3JMVWa (ORCPT ); Sun, 13 Oct 2013 17:22:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52025 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755256Ab3JMVW3 (ORCPT ); Sun, 13 Oct 2013 17:22:29 -0400 From: Jiri Olsa To: linux-kernel@vger.kernel.org Cc: Jiri Olsa , Corey Ashford , David Ahern , Ingo Molnar , Namhyung Kim , Paul Mackerras , Peter Zijlstra , Arnaldo Carvalho de Melo Subject: [PATCH] perf make: Move DEBUG initialization into Makefile.perf Date: Sun, 13 Oct 2013 23:22:09 +0200 Message-Id: <1381699329-6418-1-git-send-email-jolsa@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding new top level Makefile invalidated the DEBUG variable check for "command line" origin. Moving this check into Makefile.perf. Signed-off-by: Jiri Olsa Cc: Corey Ashford Cc: David Ahern Cc: Ingo Molnar Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Arnaldo Carvalho de Melo --- tools/perf/Makefile | 6 +++++- tools/perf/config/Makefile | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 5aa3d04..db21dad 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -37,12 +37,16 @@ ifneq ($(O),) FULL_O := $(shell readlink -f $(O)) endif +ifeq ("$(origin DEBUG)", "command line") + D = $(DEBUG) +endif + define print_msg @printf ' BUILD: Doing '\''make \033[33m-j'$(JOBS)'\033[m'\'' parallel build\n' endef define make - @$(MAKE) -f Makefile.perf --no-print-directory -j$(JOBS) O=$(FULL_O) $@ + @$(MAKE) -f Makefile.perf --no-print-directory -j$(JOBS) O=$(FULL_O) PERF_DEBUG=$(D) $@ endef # diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 9680424..912026a 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -66,9 +66,6 @@ ifneq ($(WERROR),0) CFLAGS += -Werror endif -ifeq ("$(origin DEBUG)", "command line") - PERF_DEBUG = $(DEBUG) -endif ifndef PERF_DEBUG CFLAGS += -O6 endif -- 1.7.11.7