kconfig: Simplify LSMOD= handling
[safe/jmp/linux-2.6] / scripts / kconfig / Makefile
index 85b9065..186c466 100644 (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