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>
This commit is contained in:
Michal Marek 2010-02-03 17:20:14 +01:00 committed by Steven Rostedt
parent 615f0833aa
commit 3cebbb81c7
1 changed files with 4 additions and 5 deletions

View File

@ -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