diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 999e8a7d5bf7..186c46604d06 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -30,8 +30,17 @@ 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 | ||
34 | ifdef LSMOD | ||
35 | LSMOD_F := $(LSMOD) | ||
36 | ifeq ($(findstring /,$(LSMOD)),) | ||
37 | LSMOD_F := $(objtree)/$(LSMOD) | ||
38 | endif | ||
39 | endif | ||
40 | |||
33 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | 41 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf |
34 | $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config | 42 | $(Q)mkdir -p include/generated |
43 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config | ||
35 | $(Q)if [ -f .config ]; then \ | 44 | $(Q)if [ -f .config ]; then \ |
36 | cmp -s .tmp.config .config || \ | 45 | cmp -s .tmp.config .config || \ |
37 | (mv -f .config .config.old.1; \ | 46 | (mv -f .config .config.old.1; \ |
@@ -45,7 +54,8 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | |||
45 | $(Q)rm -f .tmp.config | 54 | $(Q)rm -f .tmp.config |
46 | 55 | ||
47 | localyesconfig: $(obj)/streamline_config.pl $(obj)/conf | 56 | localyesconfig: $(obj)/streamline_config.pl $(obj)/conf |
48 | $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config | 57 | $(Q)mkdir -p include/generated |
58 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config | ||
49 | $(Q)sed -i s/=m/=y/ .tmp.config | 59 | $(Q)sed -i s/=m/=y/ .tmp.config |
50 | $(Q)if [ -f .config ]; then \ | 60 | $(Q)if [ -f .config ]; then \ |
51 | cmp -s .tmp.config .config || \ | 61 | cmp -s .tmp.config .config || \ |