mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 18:42:55 +00:00

Besides the upstream update, I have disabled building of nrj-laptop kernels here. Now that the main kernels used in ROSA are based on the sources from Ubuntu, the stable-based kernels like this one are mostly intended for debugging. No need to build nrj-laptop flavour each time. Let us make things a bit easier for other ABF users at least. Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
123 lines
3.8 KiB
Diff
123 lines
3.8 KiB
Diff
diff --git a/Makefile b/Makefile
|
|
index 2366991c29b9..51b4ac281eec 100644
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1090,8 +1090,7 @@ include/config/kernel.release: $(srctree)/Makefile FORCE
|
|
# Carefully list dependencies so we do not try to build scripts twice
|
|
# in parallel
|
|
PHONY += scripts
|
|
-scripts: scripts_basic asm-generic gcc-plugins $(autoksyms_h)
|
|
- $(Q)$(MAKE) $(build)=$(@)
|
|
+scripts:
|
|
|
|
# Things we need to do before we recursively start building the kernel
|
|
# or the modules are listed in "prepare".
|
|
@@ -1129,7 +1128,7 @@ prepare0: archprepare gcc-plugins
|
|
$(Q)$(MAKE) $(build)=.
|
|
|
|
# All the preparing..
|
|
-prepare: prepare0 prepare-objtool
|
|
+prepare:
|
|
|
|
# Support for using generic headers in asm-generic
|
|
PHONY += asm-generic uapi-asm-generic
|
|
@@ -1326,13 +1325,8 @@ endif # CONFIG_MODULES
|
|
CLEAN_DIRS += $(MODVERDIR) include/ksym
|
|
|
|
# Directories & files removed with 'make mrproper'
|
|
-MRPROPER_DIRS += include/config usr/include include/generated \
|
|
- arch/*/include/generated .tmp_objdiff
|
|
-MRPROPER_FILES += .config .config.old .version \
|
|
- Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \
|
|
- signing_key.pem signing_key.priv signing_key.x509 \
|
|
- x509.genkey extra_certificates signing_key.x509.keyid \
|
|
- signing_key.x509.signer vmlinux-gdb.py
|
|
+MRPROPER_DIRS += ""
|
|
+MRPROPER_FILES += ""
|
|
|
|
# clean - Delete most, but leave enough to build external modules
|
|
#
|
|
@@ -1354,13 +1348,10 @@ clean: archclean vmlinuxclean
|
|
#
|
|
mrproper: rm-dirs := $(wildcard $(MRPROPER_DIRS))
|
|
mrproper: rm-files := $(wildcard $(MRPROPER_FILES))
|
|
-mrproper-dirs := $(addprefix _mrproper_,scripts)
|
|
|
|
-PHONY += $(mrproper-dirs) mrproper archmrproper
|
|
-$(mrproper-dirs):
|
|
- $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
|
|
+PHONY += mrproper archmrproper
|
|
|
|
-mrproper: clean archmrproper $(mrproper-dirs)
|
|
+mrproper: clean archmrproper
|
|
$(call cmd,rmdirs)
|
|
$(call cmd,rmfiles)
|
|
|
|
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
|
|
index 67ed9f6ccdf8..877b5716a928 100644
|
|
--- a/scripts/kconfig/Makefile
|
|
+++ b/scripts/kconfig/Makefile
|
|
@@ -20,19 +20,14 @@ endif
|
|
unexport CONFIG_
|
|
|
|
xconfig: $(obj)/qconf
|
|
- $< $(silent) $(Kconfig)
|
|
|
|
gconfig: $(obj)/gconf
|
|
- $< $(silent) $(Kconfig)
|
|
|
|
menuconfig: $(obj)/mconf
|
|
- $< $(silent) $(Kconfig)
|
|
|
|
config: $(obj)/conf
|
|
- $< $(silent) --oldaskconfig $(Kconfig)
|
|
|
|
nconfig: $(obj)/nconf
|
|
- $< $(silent) $(Kconfig)
|
|
|
|
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
|
|
|
|
@@ -66,7 +59,6 @@ simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
|
|
PHONY += $(simple-targets)
|
|
|
|
$(simple-targets): $(obj)/conf
|
|
- $< $(silent) --$@ $(Kconfig)
|
|
|
|
PHONY += oldnoconfig silentoldconfig savedefconfig defconfig
|
|
|
|
@@ -85,23 +77,10 @@ silentoldconfig: syncconfig
|
|
@echo " \"silentoldconfig\" will be removed after Linux 4.19"
|
|
|
|
savedefconfig: $(obj)/conf
|
|
- $< $(silent) --$@=defconfig $(Kconfig)
|
|
|
|
defconfig: $(obj)/conf
|
|
-ifeq ($(KBUILD_DEFCONFIG),)
|
|
- $< $(silent) --defconfig $(Kconfig)
|
|
-else
|
|
-ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
|
|
- @$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
|
|
- $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
|
|
-else
|
|
- @$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
|
|
- $(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
|
|
-endif
|
|
-endif
|
|
|
|
%_defconfig: $(obj)/conf
|
|
- $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
|
|
|
configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
|
|
|