2015-10-11 21:48:13 +03:00
|
|
|
diff --git a/Makefile b/Makefile
|
2019-04-09 17:26:40 +03:00
|
|
|
index 3b3593b78e12..d0d85ca8b942 100644
|
2015-10-11 21:48:13 +03:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2019-04-09 17:26:40 +03:00
|
|
|
@@ -1080,8 +1080,7 @@ include/config/kernel.release: $(srctree)/Makefile FORCE
|
2013-11-16 00:27:01 +04:00
|
|
|
# Carefully list dependencies so we do not try to build scripts twice
|
|
|
|
# in parallel
|
|
|
|
PHONY += scripts
|
2019-04-09 17:26:40 +03:00
|
|
|
-scripts: scripts_basic scripts_dtc
|
2013-11-16 00:27:01 +04:00
|
|
|
- $(Q)$(MAKE) $(build)=$(@)
|
|
|
|
+scripts:
|
|
|
|
|
2018-07-05 21:40:11 +03:00
|
|
|
# Things we need to do before we recursively start building the kernel
|
|
|
|
# or the modules are listed in "prepare".
|
2019-04-09 17:26:40 +03:00
|
|
|
@@ -1119,7 +1118,7 @@ prepare0: archprepare
|
2013-11-16 00:27:01 +04:00
|
|
|
$(Q)$(MAKE) $(build)=.
|
|
|
|
|
|
|
|
# All the preparing..
|
2016-06-13 15:31:59 +03:00
|
|
|
-prepare: prepare0 prepare-objtool
|
2013-11-16 00:27:01 +04:00
|
|
|
+prepare:
|
|
|
|
|
2018-02-10 19:33:13 +03:00
|
|
|
# Support for using generic headers in asm-generic
|
2019-04-09 17:26:40 +03:00
|
|
|
asm-generic := -f $(srctree)/scripts/Makefile.asm-generic obj
|
|
|
|
@@ -1359,13 +1358,8 @@ endif # CONFIG_MODULES
|
2018-07-05 21:40:11 +03:00
|
|
|
CLEAN_DIRS += $(MODVERDIR) include/ksym
|
2013-11-16 00:27:01 +04:00
|
|
|
|
|
|
|
# Directories & files removed with 'make mrproper'
|
|
|
|
-MRPROPER_DIRS += include/config usr/include include/generated \
|
2015-04-28 16:36:29 +03:00
|
|
|
- arch/*/include/generated .tmp_objdiff
|
2018-02-10 19:33:13 +03:00
|
|
|
-MRPROPER_FILES += .config .config.old .version \
|
2013-11-16 00:27:01 +04:00
|
|
|
- Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \
|
2015-12-27 16:57:51 +03:00
|
|
|
- signing_key.pem signing_key.priv signing_key.x509 \
|
|
|
|
- x509.genkey extra_certificates signing_key.x509.keyid \
|
2015-04-28 16:36:29 +03:00
|
|
|
- signing_key.x509.signer vmlinux-gdb.py
|
2013-11-16 00:27:01 +04:00
|
|
|
+MRPROPER_DIRS += ""
|
|
|
|
+MRPROPER_FILES += ""
|
|
|
|
|
|
|
|
# clean - Delete most, but leave enough to build external modules
|
|
|
|
#
|
2019-04-09 17:26:40 +03:00
|
|
|
@@ -1387,13 +1381,10 @@ clean: archclean vmlinuxclean
|
2013-11-16 00:27:01 +04:00
|
|
|
#
|
|
|
|
mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS))
|
|
|
|
mrproper: rm-files := $(wildcard $(MRPROPER_FILES))
|
2017-09-11 18:31:26 +03:00
|
|
|
-mrproper-dirs := $(addprefix _mrproper_,scripts)
|
|
|
|
|
2019-04-09 17:26:40 +03:00
|
|
|
-PHONY += $(mrproper-dirs) mrproper
|
2017-09-11 18:31:26 +03:00
|
|
|
-$(mrproper-dirs):
|
|
|
|
- $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
|
2019-04-09 17:26:40 +03:00
|
|
|
+PHONY += mrproper
|
2017-09-11 18:31:26 +03:00
|
|
|
|
2019-04-09 17:26:40 +03:00
|
|
|
-mrproper: clean $(mrproper-dirs)
|
|
|
|
+mrproper: clean
|
2017-09-11 18:31:26 +03:00
|
|
|
$(call cmd,rmdirs)
|
|
|
|
$(call cmd,rmfiles)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
|
2019-04-09 17:26:40 +03:00
|
|
|
index 181973509a05..65800fa2d7ef 100644
|
2015-10-11 21:48:13 +03:00
|
|
|
--- a/scripts/kconfig/Makefile
|
|
|
|
+++ b/scripts/kconfig/Makefile
|
2018-12-02 17:21:09 +03:00
|
|
|
@@ -20,19 +20,14 @@ endif
|
2013-11-16 00:27:01 +04:00
|
|
|
unexport CONFIG_
|
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
xconfig: $(obj)/qconf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
gconfig: $(obj)/gconf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
menuconfig: $(obj)/mconf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
config: $(obj)/conf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) --oldaskconfig $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
nconfig: $(obj)/nconf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2018-12-02 17:21:09 +03:00
|
|
|
build_menuconfig: $(obj)/mconf
|
|
|
|
|
|
|
|
@@ -48,11 +43,9 @@ localyesconfig localmodconfig: $(obj)/conf
|
|
|
|
cmp -s .tmp.config .config || \
|
|
|
|
(mv -f .config .config.old.1; \
|
|
|
|
mv -f .tmp.config .config; \
|
|
|
|
- $< $(silent) --oldconfig $(Kconfig); \
|
|
|
|
mv -f .config.old.1 .config.old) \
|
|
|
|
else \
|
|
|
|
mv -f .tmp.config .config; \
|
|
|
|
- $< $(silent) --oldconfig $(Kconfig); \
|
|
|
|
fi
|
|
|
|
$(Q)rm -f .tmp.config
|
|
|
|
|
2019-02-20 10:53:33 +03:00
|
|
|
@@ -66,28 +59,14 @@ simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
|
2015-07-01 16:47:47 +03:00
|
|
|
PHONY += $(simple-targets)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
$(simple-targets): $(obj)/conf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) --$@ $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2019-02-20 10:53:33 +03:00
|
|
|
PHONY += savedefconfig defconfig
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
savedefconfig: $(obj)/conf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) --$@=defconfig $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
defconfig: $(obj)/conf
|
2013-11-16 00:27:01 +04:00
|
|
|
-ifeq ($(KBUILD_DEFCONFIG),)
|
2015-07-01 16:47:47 +03:00
|
|
|
- $< $(silent) --defconfig $(Kconfig)
|
2016-04-15 13:31:35 +03:00
|
|
|
-else
|
|
|
|
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
|
2015-07-01 16:47:47 +03:00
|
|
|
- @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
|
|
|
- $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
2016-02-02 18:07:44 +03:00
|
|
|
-else
|
|
|
|
- @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
|
|
|
|
- $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
|
2016-04-15 13:31:35 +03:00
|
|
|
-endif
|
2013-11-16 00:27:01 +04:00
|
|
|
-endif
|
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
%_defconfig: $(obj)/conf
|
2015-07-01 16:47:47 +03:00
|
|
|
- $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-07-01 16:47:47 +03:00
|
|
|
configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
|
2015-04-28 16:36:29 +03:00
|
|
|
|