diff options
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 70 |
1 files changed, 30 insertions, 40 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index f8d1ee3a372e..549e50e49cbf 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -21,53 +21,47 @@ menuconfig: $(obj)/mconf | |||
21 | $< $(Kconfig) | 21 | $< $(Kconfig) |
22 | 22 | ||
23 | config: $(obj)/conf | 23 | config: $(obj)/conf |
24 | $< $(Kconfig) | 24 | $< --oldaskconfig $(Kconfig) |
25 | 25 | ||
26 | nconfig: $(obj)/nconf | 26 | nconfig: $(obj)/nconf |
27 | $< $(Kconfig) | 27 | $< $(Kconfig) |
28 | 28 | ||
29 | oldconfig: $(obj)/conf | 29 | oldconfig: $(obj)/conf |
30 | $< -o $(Kconfig) | 30 | $< --$@ $(Kconfig) |
31 | 31 | ||
32 | silentoldconfig: $(obj)/conf | 32 | silentoldconfig: $(obj)/conf |
33 | $(Q)mkdir -p include/generated | 33 | $(Q)mkdir -p include/generated |
34 | $< -s $(Kconfig) | 34 | $< --$@ $(Kconfig) |
35 | 35 | ||
36 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf | 36 | localmodconfig: $(obj)/streamline_config.pl $(obj)/conf |
37 | $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config | 37 | $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config |
38 | $(Q)if [ -f .config ]; then \ | 38 | $(Q)if [ -f .config ]; then \ |
39 | cmp -s .tmp.config .config || \ | 39 | cmp -s .tmp.config .config || \ |
40 | (mv -f .config .config.old.1; \ | 40 | (mv -f .config .config.old.1; \ |
41 | mv -f .tmp.config .config; \ | 41 | mv -f .tmp.config .config; \ |
42 | $(obj)/conf -s $(Kconfig); \ | 42 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
43 | mv -f .config.old.1 .config.old) \ | 43 | mv -f .config.old.1 .config.old) \ |
44 | else \ | 44 | else \ |
45 | mv -f .tmp.config .config; \ | 45 | mv -f .tmp.config .config; \ |
46 | $(obj)/conf -s $(Kconfig); \ | 46 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
47 | fi | 47 | fi |
48 | $(Q)rm -f .tmp.config | 48 | $(Q)rm -f .tmp.config |
49 | 49 | ||
50 | localyesconfig: $(obj)/streamline_config.pl $(obj)/conf | 50 | localyesconfig: $(obj)/streamline_config.pl $(obj)/conf |
51 | $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config | 51 | $(Q)perl $< $(srctree) $(Kconfig) > .tmp.config |
52 | $(Q)sed -i s/=m/=y/ .tmp.config | 52 | $(Q)sed -i s/=m/=y/ .tmp.config |
53 | $(Q)if [ -f .config ]; then \ | 53 | $(Q)if [ -f .config ]; then \ |
54 | cmp -s .tmp.config .config || \ | 54 | cmp -s .tmp.config .config || \ |
55 | (mv -f .config .config.old.1; \ | 55 | (mv -f .config .config.old.1; \ |
56 | mv -f .tmp.config .config; \ | 56 | mv -f .tmp.config .config; \ |
57 | $(obj)/conf -s $(Kconfig); \ | 57 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
58 | mv -f .config.old.1 .config.old) \ | 58 | mv -f .config.old.1 .config.old) \ |
59 | else \ | 59 | else \ |
60 | mv -f .tmp.config .config; \ | 60 | mv -f .tmp.config .config; \ |
61 | $(obj)/conf -s $(Kconfig); \ | 61 | $(obj)/conf --silentoldconfig $(Kconfig); \ |
62 | fi | 62 | fi |
63 | $(Q)rm -f .tmp.config | 63 | $(Q)rm -f .tmp.config |
64 | 64 | ||
65 | nonint_oldconfig: $(obj)/conf | ||
66 | $< -b $(Kconfig) | ||
67 | |||
68 | loose_nonint_oldconfig: $(obj)/conf | ||
69 | $< -B $(Kconfig) | ||
70 | |||
71 | # Create new linux.pot file | 65 | # Create new linux.pot file |
72 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files | 66 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files |
73 | # The symlink is used to repair a deficiency in arch/um | 67 | # The symlink is used to repair a deficiency in arch/um |
@@ -91,30 +85,26 @@ update-po-config: $(obj)/kxgettext $(obj)/gconf.glade.h | |||
91 | $(Q)rm -f arch/um/Kconfig.arch | 85 | $(Q)rm -f arch/um/Kconfig.arch |
92 | $(Q)rm -f $(obj)/config.pot | 86 | $(Q)rm -f $(obj)/config.pot |
93 | 87 | ||
94 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig | 88 | PHONY += allnoconfig allyesconfig allmodconfig randconfig |
95 | |||
96 | randconfig: $(obj)/conf | ||
97 | $< -r $(Kconfig) | ||
98 | 89 | ||
99 | allyesconfig: $(obj)/conf | 90 | allnoconfig allyesconfig allmodconfig randconfig: $(obj)/conf |
100 | $< -y $(Kconfig) | 91 | $< --$@ $(Kconfig) |
101 | 92 | ||
102 | allnoconfig: $(obj)/conf | 93 | PHONY += nonint_oldconfig loose_nonint_oldconfig defconfig |
103 | $< -n $(Kconfig) | ||
104 | 94 | ||
105 | allmodconfig: $(obj)/conf | 95 | nonint_oldconfig loose_nonint_oldconfig: $(obj)/conf |
106 | $< -m $(Kconfig) | 96 | $< --$@ $(Kconfig) |
107 | 97 | ||
108 | defconfig: $(obj)/conf | 98 | defconfig: $(obj)/conf |
109 | ifeq ($(KBUILD_DEFCONFIG),) | 99 | ifeq ($(KBUILD_DEFCONFIG),) |
110 | $< -d $(Kconfig) | 100 | $< --defconfig $(Kconfig) |
111 | else | 101 | else |
112 | @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" | 102 | @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" |
113 | $(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) | 103 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) |
114 | endif | 104 | endif |
115 | 105 | ||
116 | %_defconfig: $(obj)/conf | 106 | %_defconfig: $(obj)/conf |
117 | $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig) | 107 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) |
118 | 108 | ||
119 | # Help text used by make help | 109 | # Help text used by make help |
120 | help: | 110 | help: |