Makefile (adc18acf42a1e738c4c58090e0efe7977e812779) Makefile (79123b1389cc775d8e60cb026256f79f0daef173)
1# SPDX-License-Identifier: GPL-2.0
2# ===========================================================================
3# Kernel configuration targets
4# These targets are used from top-level makefile
5
1# SPDX-License-Identifier: GPL-2.0
2# ===========================================================================
3# Kernel configuration targets
4# These targets are used from top-level makefile
5
6PHONY += xconfig gconfig menuconfig config syncconfig \
7 localmodconfig localyesconfig
6PHONY += xconfig gconfig menuconfig config localmodconfig localyesconfig
8
9ifdef KBUILD_KCONFIG
10Kconfig := $(KBUILD_KCONFIG)
11else
12Kconfig := Kconfig
13endif
14
15ifeq ($(quiet),silent_)

--- 13 unchanged lines hidden (view full) ---

29 $< $(silent) $(Kconfig)
30
31config: $(obj)/conf
32 $< $(silent) --oldaskconfig $(Kconfig)
33
34nconfig: $(obj)/nconf
35 $< $(silent) $(Kconfig)
36
7
8ifdef KBUILD_KCONFIG
9Kconfig := $(KBUILD_KCONFIG)
10else
11Kconfig := Kconfig
12endif
13
14ifeq ($(quiet),silent_)

--- 13 unchanged lines hidden (view full) ---

28 $< $(silent) $(Kconfig)
29
30config: $(obj)/conf
31 $< $(silent) --oldaskconfig $(Kconfig)
32
33nconfig: $(obj)/nconf
34 $< $(silent) $(Kconfig)
35
37# This has become an internal implementation detail and is now deprecated
38# for external use.
39syncconfig: $(obj)/conf
40 $(Q)mkdir -p include/config include/generated
41 $< $(silent) --$@ $(Kconfig)
42
43localyesconfig localmodconfig: $(obj)/conf
44 $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
45 $(Q)if [ -f .config ]; then \
46 cmp -s .tmp.config .config || \
47 (mv -f .config .config.old.1; \
48 mv -f .tmp.config .config; \
49 $< $(silent) --oldconfig $(Kconfig); \
50 mv -f .config.old.1 .config.old) \
51 else \
52 mv -f .tmp.config .config; \
53 $< $(silent) --oldconfig $(Kconfig); \
54 fi
55 $(Q)rm -f .tmp.config
56
57# These targets map 1:1 to the commandline options of 'conf'
36localyesconfig localmodconfig: $(obj)/conf
37 $(Q)perl $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
38 $(Q)if [ -f .config ]; then \
39 cmp -s .tmp.config .config || \
40 (mv -f .config .config.old.1; \
41 mv -f .tmp.config .config; \
42 $< $(silent) --oldconfig $(Kconfig); \
43 mv -f .config.old.1 .config.old) \
44 else \
45 mv -f .tmp.config .config; \
46 $< $(silent) --oldconfig $(Kconfig); \
47 fi
48 $(Q)rm -f .tmp.config
49
50# These targets map 1:1 to the commandline options of 'conf'
51#
52# Note:
53# syncconfig has become an internal implementation detail and is now
54# deprecated for external use
58simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
55simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
59 alldefconfig randconfig listnewconfig olddefconfig
56 alldefconfig randconfig listnewconfig olddefconfig syncconfig
60PHONY += $(simple-targets)
61
62$(simple-targets): $(obj)/conf
63 $< $(silent) --$@ $(Kconfig)
64
65PHONY += oldnoconfig silentoldconfig savedefconfig defconfig
66
67# oldnoconfig is an alias of olddefconfig, because people already are dependent

--- 157 unchanged lines hidden ---
57PHONY += $(simple-targets)
58
59$(simple-targets): $(obj)/conf
60 $< $(silent) --$@ $(Kconfig)
61
62PHONY += oldnoconfig silentoldconfig savedefconfig defconfig
63
64# oldnoconfig is an alias of olddefconfig, because people already are dependent

--- 157 unchanged lines hidden ---