diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
| -rw-r--r-- | scripts/kconfig/Makefile | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 82d2eb285b70..ba573fe7c74d 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
| @@ -33,17 +33,9 @@ silentoldconfig: $(obj)/conf | |||
| 33 | $(Q)mkdir -p include/generated | 33 | $(Q)mkdir -p include/generated |
| 34 | $< --$@ $(Kconfig) | 34 | $< --$@ $(Kconfig) |
| 35 | 35 | ||
| 36 | # if no path is given, then use src directory to find file | 36 | localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf |
| 37 | ifdef LSMOD | ||
| 38 | LSMOD_F := $(LSMOD) | ||
| 39 | ifeq ($(findstring /,$(LSMOD)),) | ||
| 40 | LSMOD_F := $(objtree)/$(LSMOD) | ||
| 41 | endif | ||
| 42 | endif | ||
| 43 | |||
| 44 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | ||
| 45 | $(Q)mkdir -p include/generated | 37 | $(Q)mkdir -p include/generated |
| 46 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config | 38 | $(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config |
| 47 | $(Q)if [ -f .config ]; then \ | 39 | $(Q)if [ -f .config ]; then \ |
| 48 | cmp -s .tmp.config .config || \ | 40 | cmp -s .tmp.config .config || \ |
| 49 | (mv -f .config .config.old.1; \ | 41 | (mv -f .config .config.old.1; \ |
| @@ -56,22 +48,6 @@ localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | |||
| 56 | fi | 48 | fi |
| 57 | $(Q)rm -f .tmp.config | 49 | $(Q)rm -f .tmp.config |
| 58 | 50 | ||
| 59 | localyesconfig: $(obj)/streamline_config.pl $(obj)/conf | ||
| 60 | $(Q)mkdir -p include/generated | ||
| 61 | $(Q)perl $< $(srctree) $(Kconfig) $(LSMOD_F) > .tmp.config | ||
| 62 | $(Q)sed -i s/=m/=y/ .tmp.config | ||
| 63 | $(Q)if [ -f .config ]; then \ | ||
| 64 | cmp -s .tmp.config .config || \ | ||
| 65 | (mv -f .config .config.old.1; \ | ||
| 66 | mv -f .tmp.config .config; \ | ||
| 67 | $(obj)/conf --silentoldconfig $(Kconfig); \ | ||
| 68 | mv -f .config.old.1 .config.old) \ | ||
| 69 | else \ | ||
| 70 | mv -f .tmp.config .config; \ | ||
| 71 | $(obj)/conf --silentoldconfig $(Kconfig); \ | ||
| 72 | fi | ||
| 73 | $(Q)rm -f .tmp.config | ||
| 74 | |||
| 75 | # Create new linux.pot file | 51 | # Create new linux.pot file |
| 76 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files | 52 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files |
| 77 | # The symlink is used to repair a deficiency in arch/um | 53 | # The symlink is used to repair a deficiency in arch/um |
