From patchwork Fri Jan 9 10:22:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yingjoe Chen X-Patchwork-Id: 427008 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 679B314016A for ; Fri, 9 Jan 2015 21:22:46 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756730AbbAIKWp (ORCPT ); Fri, 9 Jan 2015 05:22:45 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:53945 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1756397AbbAIKWo (ORCPT ); Fri, 9 Jan 2015 05:22:44 -0500 X-Listener-Flag: 11101 Received: from mtkhts07.mediatek.inc [(172.21.101.69)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 325329001; Fri, 09 Jan 2015 18:22:41 +0800 Received: from MTKHTSDR01.mediatek.inc (172.21.101.156) by MTKHTS07.mediatek.inc (172.21.101.69) with Microsoft SMTP Server (TLS) id 14.3.181.6; Fri, 9 Jan 2015 18:22:39 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkhtsdr01.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Fri, 9 Jan 2015 18:22:37 +0800 Subject: Re: [PATCH] pinctrl: pass -DDEBUG in subdirs From: Yingjoe Chen To: Linus Walleij CC: , , In-Reply-To: <1420796506-10402-1-git-send-email-linus.walleij@linaro.org> References: <1420796506-10402-1-git-send-email-linus.walleij@linaro.org> Date: Fri, 9 Jan 2015 18:22:36 +0800 Message-ID: <1420798956.23114.18.camel@mtksdaap41> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 X-MTK: N Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Fri, 2015-01-09 at 10:41 +0100, Linus Walleij wrote: > When drivers are compiled in subdirectories the -DDEBUG flag need > to be passed in the individual Makefiles. Hi, It will be easy to forget adding this when adding new subdirectories. Can we do this instead? --- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile index af365c5..36f1d620 100644 --- a/drivers/pinctrl/Makefile +++ b/drivers/pinctrl/Makefile @@ -1,6 +1,6 @@ # generic pinmux support -ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG +subdir-ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG Joe.C