From patchwork Thu Feb 25 19:18:00 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 82115 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 o1PJL4nw003787 for ; Thu, 25 Feb 2010 19:21:04 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933123Ab0BYTUZ (ORCPT ); Thu, 25 Feb 2010 14:20:25 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:38252 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932913Ab0BYTT4 (ORCPT ); Thu, 25 Feb 2010 14:19:56 -0500 X-Authority-Analysis: v=1.0 c=1 a=I1al1mtqJIQA:10 a=meVymXHHAAAA:8 a=RdxqqKasSCLdHB7m_gsA:9 a=dz5gBDMBAkf811xp5LWyKCjYVZIA: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:54180] helo=gandalf.stny.rr.com) by hrndva-oedge04.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 36/C7-12085-B5DC68B4; Thu, 25 Feb 2010 19:19:55 +0000 Received: from rostedt by gandalf.stny.rr.com with local (Exim 4.71) (envelope-from ) id 1NkjFb-0004oV-8c; Thu, 25 Feb 2010 14:19:55 -0500 Message-Id: <20100225191955.067104166@goodmis.org> User-Agent: quilt/0.48-1 Date: Thu, 25 Feb 2010 14:18:00 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Andrew Morton , Michal Marek , linux-kbuild@vger.kernel.org Subject: [PATCH 5/5] kconfig: Simplify LSMOD= handling References: <20100225191755.483925025@goodmis.org> Content-Disposition: inline; filename=0005-kconfig-Simplify-LSMOD-handling.patch 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]); Thu, 25 Feb 2010 19:21:05 +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