Makefile (81d2bc2273052e49c46a791f45aeb09802d76b93) Makefile (911a91c39cabcb6adb2a78f4f9777abb4c032b75)
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 silentoldconfig update-po-config \
6PHONY += xconfig gconfig menuconfig config syncconfig update-po-config \
7 localmodconfig localyesconfig
8
9ifdef KBUILD_KCONFIG
10Kconfig := $(KBUILD_KCONFIG)
11else
12Kconfig := Kconfig
13endif
14

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

31config: $(obj)/conf
32 $< $(silent) --oldaskconfig $(Kconfig)
33
34nconfig: $(obj)/nconf
35 $< $(silent) $(Kconfig)
36
37# This has become an internal implementation detail and is now deprecated
38# for external use.
7 localmodconfig localyesconfig
8
9ifdef KBUILD_KCONFIG
10Kconfig := $(KBUILD_KCONFIG)
11else
12Kconfig := Kconfig
13endif
14

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

31config: $(obj)/conf
32 $< $(silent) --oldaskconfig $(Kconfig)
33
34nconfig: $(obj)/nconf
35 $< $(silent) $(Kconfig)
36
37# This has become an internal implementation detail and is now deprecated
38# for external use.
39silentoldconfig: $(obj)/conf
39syncconfig: $(obj)/conf
40 $(Q)mkdir -p include/config include/generated
41 $(Q)test -e include/generated/autoksyms.h || \
42 touch include/generated/autoksyms.h
43 $< $(silent) --$@ $(Kconfig)
44
45localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
46 $(Q)mkdir -p include/config include/generated
47 $(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config

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

83# These targets map 1:1 to the commandline options of 'conf'
84simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
85 alldefconfig randconfig listnewconfig olddefconfig
86PHONY += $(simple-targets)
87
88$(simple-targets): $(obj)/conf
89 $< $(silent) --$@ $(Kconfig)
90
40 $(Q)mkdir -p include/config include/generated
41 $(Q)test -e include/generated/autoksyms.h || \
42 touch include/generated/autoksyms.h
43 $< $(silent) --$@ $(Kconfig)
44
45localyesconfig localmodconfig: $(obj)/streamline_config.pl $(obj)/conf
46 $(Q)mkdir -p include/config include/generated
47 $(Q)perl $< --$@ $(srctree) $(Kconfig) > .tmp.config

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

83# These targets map 1:1 to the commandline options of 'conf'
84simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
85 alldefconfig randconfig listnewconfig olddefconfig
86PHONY += $(simple-targets)
87
88$(simple-targets): $(obj)/conf
89 $< $(silent) --$@ $(Kconfig)
90
91PHONY += oldnoconfig savedefconfig defconfig
91PHONY += oldnoconfig silentoldconfig savedefconfig defconfig
92
93# oldnoconfig is an alias of olddefconfig, because people already are dependent
94# on its behavior (sets new symbols to their default value but not 'n') with the
95# counter-intuitive name.
96oldnoconfig: olddefconfig
97 @echo " WARNING: \"oldnoconfig\" target will be removed after Linux 4.19"
98 @echo " Please use \"olddefconfig\" instead, which is an alias."
99
92
93# oldnoconfig is an alias of olddefconfig, because people already are dependent
94# on its behavior (sets new symbols to their default value but not 'n') with the
95# counter-intuitive name.
96oldnoconfig: olddefconfig
97 @echo " WARNING: \"oldnoconfig\" target will be removed after Linux 4.19"
98 @echo " Please use \"olddefconfig\" instead, which is an alias."
99
100# We do not expect manual invokcation of "silentoldcofig" (or "syncconfig").
101silentoldconfig: syncconfig
102 @echo " WARNING: \"silentoldconfig\" has been renamed to \"syncconfig\""
103 @echo " and is now an internal implementation detail."
104 @echo " What you want is probably \"oldconfig\"."
105 @echo " \"silentoldconfig\" will be removed after Linux 4.19"
106
100savedefconfig: $(obj)/conf
101 $< $(silent) --$@=defconfig $(Kconfig)
102
103defconfig: $(obj)/conf
104ifeq ($(KBUILD_DEFCONFIG),)
105 $< $(silent) --defconfig $(Kconfig)
106else
107ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)

--- 192 unchanged lines hidden ---
107savedefconfig: $(obj)/conf
108 $< $(silent) --$@=defconfig $(Kconfig)
109
110defconfig: $(obj)/conf
111ifeq ($(KBUILD_DEFCONFIG),)
112 $< $(silent) --defconfig $(Kconfig)
113else
114ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)

--- 192 unchanged lines hidden ---