diff options
author | Michal Marek <mmarek@suse.cz> | 2010-02-03 11:20:14 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-02-03 11:45:25 -0500 |
commit | 3cebbb81c7e75321e25cc586d07a25a3d98278fc (patch) | |
tree | b2cb83e5fd4cb1aea374ca606f8b512a457b2138 /scripts | |
parent | 615f0833aa4c4aa944ceb78895bbffa8bd1884df (diff) |
kconfig: Simplify LSMOD= handling
Signed-off-by: Michal Marek <mmarek@suse.cz>
LKML-Reference: <20100203162014.GA10956@sepie.suse.cz>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 85b906547845..186c46604d06 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -32,11 +32,10 @@ silentoldconfig: $(obj)/conf | |||
32 | 32 | ||
33 | # if no path is given, then use src directory to find file | 33 | # if no path is given, then use src directory to find file |
34 | ifdef LSMOD | 34 | ifdef LSMOD |
35 | LSMOD_F = $(shell if [ `basename $(LSMOD)` == $(LSMOD) ]; then \ | 35 | LSMOD_F := $(LSMOD) |
36 | echo $(objtree)/$(LSMOD); \ | 36 | ifeq ($(findstring /,$(LSMOD)),) |
37 | else \ | 37 | LSMOD_F := $(objtree)/$(LSMOD) |
38 | echo $(LSMOD); \ | 38 | endif |
39 | fi) | ||
40 | endif | 39 | endif |
41 | 40 | ||
42 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | 41 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf |