From patchwork Wed Feb 3 16:49:21 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 76750 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o13GnboY003648 for ; Wed, 3 Feb 2010 16:49:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932562Ab0BCQth (ORCPT ); Wed, 3 Feb 2010 11:49:37 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:41028 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932569Ab0BCQtg (ORCPT ); Wed, 3 Feb 2010 11:49:36 -0500 X-Authority-Analysis: v=1.0 c=1 a=OWzVTy7wDO4A:10 a=7U3hwN5JcxgA:10 a=VwQbUJbxAAAA:8 a=meVymXHHAAAA:8 a=vOx2YAukEyAz7Fq_kG0A:9 a=WShcrsR0n-9WYKtAh7xWqd1rJGQA:4 a=jeBq3FmKZ4MA:10 X-Cloudmark-Score: 0 X-Originating-IP: 74.67.89.75 Received: from [74.67.89.75] ([74.67.89.75:53898] helo=[192.168.23.10]) by hrndva-oedge03.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id B4/07-27603-E19A96B4; Wed, 03 Feb 2010 16:49:35 +0000 Subject: [PATCH][linux-next] kconfig: simplify LSMOD= handling From: Steven Rostedt Reply-To: rostedt@goodmis.org To: Michal Marek Cc: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Andrew Morton , Anibal Monsalve Salazar In-Reply-To: <20100203162014.GA10956@sepie.suse.cz> References: <20100203154605.461025238@goodmis.org> <20100203154906.499020585@goodmis.org> <20100203160708.GA9035@sepie.suse.cz> <1265213553.24386.0.camel@gandalf.stny.rr.com> <20100203162014.GA10956@sepie.suse.cz> Organization: Kihon Technologies Inc. Date: Wed, 03 Feb 2010 11:49:21 -0500 Message-ID: <1265215761.24386.5.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 03 Feb 2010 16:49:37 +0000 (UTC) diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 85b9065..186c466 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -32,11 +32,10 @@ silentoldconfig: $(obj)/conf # if no path is given, then use src directory to find file ifdef LSMOD -LSMOD_F = $(shell if [ `basename $(LSMOD)` == $(LSMOD) ]; then \ - echo $(objtree)/$(LSMOD); \ - else \ - echo $(LSMOD); \ - fi) +LSMOD_F := $(LSMOD) +ifeq ($(findstring /,$(LSMOD)),) + LSMOD_F := $(objtree)/$(LSMOD) +endif endif localmodconfig: $(obj)/streamline_config.pl $(obj)/conf