Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
Subject: [PATCH] disable mrproper prepare scripts configs in devel rpms
|
|
|
|
|
|
|
|
This is for disabling *config, mrproper, prepare, scripts on -devel rpms
|
|
|
|
Needed, because otherwise the -devel won't build correctly.
|
2019-12-11 21:21:05 +03:00
|
|
|
|
2022-03-17 10:23:10 +03:00
|
|
|
Update for 5.15.28
|
2019-12-11 21:21:05 +03:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
diff --git a/Makefile b/Makefile
|
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2022-03-17 10:23:10 +03:00
|
|
|
@@ -1199,8 +1199,7 @@
|
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".
|
2022-03-17 10:23:10 +03:00
|
|
|
@@ -1219,7 +1218,7 @@
|
2013-11-16 00:27:01 +04:00
|
|
|
$(Q)$(MAKE) $(build)=.
|
|
|
|
|
|
|
|
# All the preparing..
|
2022-03-17 10:23:10 +03:00
|
|
|
-prepare: prepare0
|
2013-11-16 00:27:01 +04:00
|
|
|
+prepare:
|
|
|
|
|
2022-03-17 10:23:10 +03:00
|
|
|
PHONY += remove-stale-files
|
|
|
|
remove-stale-files:
|
|
|
|
@@ -1520,15 +1519,7 @@
|
|
|
|
compile_commands.json .thinlto-cache
|
2013-11-16 00:27:01 +04:00
|
|
|
|
|
|
|
# Directories & files removed with 'make mrproper'
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
-MRPROPER_FILES += include/config include/generated \
|
2019-12-11 21:21:05 +03:00
|
|
|
- arch/$(SRCARCH)/include/generated .tmp_objdiff \
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
- debian snap tar-install \
|
|
|
|
- .config .config.old .version \
|
2019-09-24 11:56:44 +03:00
|
|
|
- Module.symvers \
|
2022-03-17 10:23:10 +03:00
|
|
|
- certs/signing_key.pem certs/signing_key.x509 \
|
|
|
|
- certs/x509.genkey \
|
|
|
|
- vmlinux-gdb.py \
|
2019-12-11 21:21:05 +03:00
|
|
|
- *.spec
|
2013-11-16 00:27:01 +04:00
|
|
|
+MRPROPER_FILES += ""
|
|
|
|
|
2022-03-17 10:23:10 +03:00
|
|
|
# clean - Delete most, but leave enough to build external modules
|
|
|
|
#
|
|
|
|
@@ -1545,13 +1536,10 @@
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
# mrproper - Delete all generated files, including .config
|
2013-11-16 00:27:01 +04:00
|
|
|
#
|
|
|
|
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,rmfiles)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
# distclean
|
2015-10-11 21:48:13 +03:00
|
|
|
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
|
|
|
|
--- a/scripts/kconfig/Makefile
|
|
|
|
+++ b/scripts/kconfig/Makefile
|
2022-03-17 10:23:10 +03:00
|
|
|
@@ -54,11 +54,9 @@
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
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); \
|
2018-12-02 17:21:09 +03:00
|
|
|
fi
|
|
|
|
$(Q)rm -f .tmp.config
|
|
|
|
|
2022-03-17 10:23:10 +03:00
|
|
|
@@ -74,24 +72,14 @@
|
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
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
- $(Q)$< $(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
|
Update from 5.4 to 5.10.1
- rediffed most of patches, renamed files to easify further rediffs by git format-patch
- thanks to abf.io/kernels_stable for some patches for kernel 5.9
- using unofficial patch for AUFS for kernel 5.10, there may be issues with stability, try to avoid using AUFS (I would have dropped it, but MagOS wants it very much)
- pulled updates of AltHa from http://git.altlinux.org/gears/k/kernel-image-un-def.git?p=kernel-image-un-def.git;a=history;f=security/altha;hb=HEAD
- dropped patch adding sysctl to disable disk-based swap because it has not found any usage
- bpf is now in the list of LSM modules (ability to write LSM modules as BPF programs), enable it, it is potentially useful and does not seem to be harmful
- keeping kernel libc headers in older kernels for now
- dropped building external virtualbox guest modules because they are now included into the mainline kernel
- offed building VirtualBox host modules, I do not know how to keep these binary modules in sync with userspace part of VirtualBox, users can continue using dkms
- offed building kernel-shredder because it is not buildable on kernel 5.10
- updated rtl8821ce and added a dependency from its "blacklist" subpackage here (see https://github.com/tomaspinho/rtl8821ce/commit/14b536f0)
It is not clear if kernel 5.10 will receive an LTS support longer than 5.4 or not. Support until Dec, 2022 is declared right now at https://www.kernel.org/category/releases.html for 5.10 and until Dec, 2025 - for 5.4.
TODO: update kernel configs
TODO: solve problems with version of virtualbox host modules not matching version of the virtualbox package after virtualbox is updated but kernel is not rebuilt
2020-12-20 18:49:24 +03:00
|
|
|
- $(Q)$< $(silent) --$@=defconfig $(Kconfig)
|
2013-11-16 00:27:01 +04:00
|
|
|
|
2015-10-11 21:48:13 +03:00
|
|
|
defconfig: $(obj)/conf
|
2019-09-24 11:56:44 +03:00
|
|
|
-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)
|
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
|
|
|
|