aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 006c96f5fcb5..85b906547845 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -30,9 +30,18 @@ silentoldconfig: $(obj)/conf
30 $(Q)mkdir -p include/generated 30 $(Q)mkdir -p include/generated
31 $< -s $(Kconfig) 31 $< -s $(Kconfig)
32 32
33# if no path is given, then use src directory to find file
34ifdef LSMOD
35LSMOD_F = $(shell if [ `basename $(LSMOD)` == $(LSMOD) ]; then \
36 echo $(objtree)/$(LSMOD); \
37 else \
38 echo $(LSMOD); \
39 fi)
40endif
41
33localmodconfig: $(obj)/streamline_config.pl $(obj)/conf 42localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
34 $(Q)mkdir -p include/generated 43 $(Q)mkdir -p include/generated
35 $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config 44 $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
36 $(Q)if [ -f .config ]; then \ 45 $(Q)if [ -f .config ]; then \
37 cmp -s .tmp.config .config || \ 46 cmp -s .tmp.config .config || \
38 (mv -f .config .config.old.1; \ 47 (mv -f .config .config.old.1; \
@@ -47,7 +56,7 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
47 56
48localyesconfig: $(obj)/streamline_config.pl $(obj)/conf 57localyesconfig: $(obj)/streamline_config.pl $(obj)/conf
49 $(Q)mkdir -p include/generated 58 $(Q)mkdir -p include/generated
50 $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config 59 $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config
51 $(Q)sed -i s/=m/=y/ .tmp.config 60 $(Q)sed -i s/=m/=y/ .tmp.config
52 $(Q)if [ -f .config ]; then \ 61 $(Q)if [ -f .config ]; then \
53 cmp -s .tmp.config .config || \ 62 cmp -s .tmp.config .config || \