Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753561AbbKBLHR (ORCPT ); Mon, 2 Nov 2015 06:07:17 -0500 Received: from smtprelay.synopsys.com ([198.182.47.9]:49397 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752328AbbKBLHO (ORCPT ); Mon, 2 Nov 2015 06:07:14 -0500 Subject: Re: [PATCH v1 20/20] ARC: Add eznps platform to Kconfig and Makefile To: Noam Camus , References: <1446297327-16298-1-git-send-email-noamc@ezchip.com> <1446297327-16298-21-git-send-email-noamc@ezchip.com> CC: , , , Newsgroups: gmane.linux.kernel,gmane.linux.kernel.arc From: Vineet Gupta Message-ID: <563743CB.2090001@synopsys.com> Date: Mon, 2 Nov 2015 16:36:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1446297327-16298-21-git-send-email-noamc@ezchip.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.182] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1775 Lines: 54 On Saturday 31 October 2015 06:45 PM, Noam Camus wrote: > From: Noam Camus > > This commit should be left last since only now eznps platform > is in state which one can actually use. > Signed-off-by: Noam Camus > --- > arch/arc/Kconfig | 1 + > arch/arc/Makefile | 9 +++++++++ > 2 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig > index 689ccb3..8153b79 100644 > --- a/arch/arc/Kconfig > +++ b/arch/arc/Kconfig > @@ -91,6 +91,7 @@ source "arch/arc/plat-sim/Kconfig" > source "arch/arc/plat-tb10x/Kconfig" > source "arch/arc/plat-axs10x/Kconfig" > #New platform adds here > +source "arch/arc/plat-eznps/Kconfig" > > endmenu > > diff --git a/arch/arc/Makefile b/arch/arc/Makefile > index 8a27a48..9e5928f 100644 > --- a/arch/arc/Makefile > +++ b/arch/arc/Makefile > @@ -99,6 +99,15 @@ core-y += arch/arc/boot/dts/ > core-$(CONFIG_ARC_PLAT_SIM) += arch/arc/plat-sim/ > core-$(CONFIG_ARC_PLAT_TB10X) += arch/arc/plat-tb10x/ > core-$(CONFIG_ARC_PLAT_AXS10X) += arch/arc/plat-axs10x/ > +core-$(CONFIG_ARC_PLAT_EZNPS) += arch/arc/plat-eznps/ > + > +ifdef CONFIG_ARC_PLAT_EZNPS > +ifeq ($(KBUILD_SRC),) > +KBUILD_CPPFLAGS += -Iarch/arc/plat-eznps/include > +else > +KBUILD_CPPFLAGS += -I$(srctree)/arch/arc/plat-eznps/include > +endif > +endif Are you sure you need special handling for out-of-tree build. The $srctree) version shd work just fine for both ! > > drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/