diff options
-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 |