mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 10:32:54 +00:00
%{kversion}
This commit is contained in:
parent
2d925ed08a
commit
27590c6113
10 changed files with 50640 additions and 12086 deletions
22
audit-make-it-less-verbose.patch
Normal file
22
audit-make-it-less-verbose.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
It seems, if audit itself is not installed and therefore nothing listens
|
||||
to the messages from the kernel's audit subsystem, the latter spams the
|
||||
kernel log with such messages.
|
||||
|
||||
Let us make them debug-level and thus invisible by default.
|
||||
|
||||
http://bugs.rosalinux.ru/show_bug.cgi?id=6235
|
||||
http://bugs.rosalinux.ru/show_bug.cgi?id=6459
|
||||
|
||||
diff --git a/kernel/audit.c b/kernel/audit.c
|
||||
index ba4481d..1f19177 100644
|
||||
--- a/kernel/audit.c
|
||||
+++ b/kernel/audit.c
|
||||
@@ -490,7 +490,7 @@ static void kauditd_printk_skb(struct sk_buff *skb)
|
||||
char *data = nlmsg_data(nlh);
|
||||
|
||||
if (nlh->nlmsg_type != AUDIT_EOE && printk_ratelimit())
|
||||
- pr_notice("type=%d %s\n", nlh->nlmsg_type, data);
|
||||
+ pr_debug("type=%d %s\n", nlh->nlmsg_type, data);
|
||||
}
|
||||
|
||||
/**
|
112
disable-mrproper-prepare-scripts-configs-in-devel-rpms.patch
Normal file
112
disable-mrproper-prepare-scripts-configs-in-devel-rpms.patch
Normal file
|
@ -0,0 +1,112 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 9d810e13a83f..506fa2b659f1 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1221,8 +1221,7 @@ include/config/kernel.release: FORCE
|
||||
# Carefully list dependencies so we do not try to build scripts twice
|
||||
# in parallel
|
||||
PHONY += scripts
|
||||
-scripts: scripts_basic scripts_dtc
|
||||
- $(Q)$(MAKE) $(build)=$(@)
|
||||
+scripts:
|
||||
|
||||
# Things we need to do before we recursively start building the kernel
|
||||
# or the modules are listed in "prepare".
|
||||
@@ -1241,7 +1240,7 @@ prepare0: archprepare
|
||||
$(Q)$(MAKE) $(build)=.
|
||||
|
||||
# All the preparing..
|
||||
-prepare: prepare0 prepare-objtool prepare-resolve_btfids
|
||||
+prepare:
|
||||
|
||||
PHONY += remove-stale-files
|
||||
remove-stale-files:
|
||||
@@ -1515,15 +1514,7 @@ CLEAN_FILES += include/ksym vmlinux.symvers modules-only.symvers \
|
||||
compile_commands.json .thinlto-cache
|
||||
|
||||
# Directories & files removed with 'make mrproper'
|
||||
-MRPROPER_FILES += include/config include/generated \
|
||||
- arch/$(SRCARCH)/include/generated .tmp_objdiff \
|
||||
- debian snap tar-install \
|
||||
- .config .config.old .version \
|
||||
- Module.symvers \
|
||||
- certs/signing_key.pem certs/signing_key.x509 \
|
||||
- certs/x509.genkey \
|
||||
- vmlinux-gdb.py \
|
||||
- *.spec
|
||||
+MRPROPER_FILES += ""
|
||||
|
||||
# clean - Delete most, but leave enough to build external modules
|
||||
#
|
||||
@@ -1540,13 +1531,10 @@ clean: archclean vmlinuxclean resolve_btfids_clean
|
||||
# mrproper - Delete all generated files, including .config
|
||||
#
|
||||
mrproper: rm-files := $(wildcard $(MRPROPER_FILES))
|
||||
-mrproper-dirs := $(addprefix _mrproper_,scripts)
|
||||
|
||||
-PHONY += $(mrproper-dirs) mrproper
|
||||
-$(mrproper-dirs):
|
||||
- $(Q)$(MAKE) $(clean)=$(patsubst _mrproper_%,%,$@)
|
||||
+PHONY += mrproper
|
||||
|
||||
-mrproper: clean $(mrproper-dirs)
|
||||
+mrproper: clean
|
||||
$(call cmd,rmfiles)
|
||||
|
||||
# distclean
|
||||
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
|
||||
index 5a215880b268..9e10bffaac23 100644
|
||||
--- a/scripts/kconfig/Makefile
|
||||
+++ b/scripts/kconfig/Makefile
|
||||
@@ -39,7 +39,6 @@ xconfig-prog := qconf
|
||||
define config_rule
|
||||
PHONY += $(1)
|
||||
$(1): $(obj)/$($(1)-prog)
|
||||
- $(Q)$$< $(silent) $(Kconfig)
|
||||
|
||||
PHONY += build_$(1)
|
||||
build_$(1): $(obj)/$($(1)-prog)
|
||||
@@ -49,18 +48,6 @@ $(foreach c, config menuconfig nconfig gconfig xconfig, $(eval $(call config_rul
|
||||
|
||||
PHONY += localmodconfig localyesconfig
|
||||
localyesconfig localmodconfig: $(obj)/conf
|
||||
- $(Q)$(PERL) $(srctree)/$(src)/streamline_config.pl --$@ $(srctree) $(Kconfig) > .tmp.config
|
||||
- $(Q)if [ -f .config ]; then \
|
||||
- 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
|
||||
|
||||
# These targets map 1:1 to the commandline options of 'conf'
|
||||
#
|
||||
@@ -74,24 +61,14 @@ simple-targets := oldconfig allnoconfig allyesconfig allmodconfig \
|
||||
PHONY += $(simple-targets)
|
||||
|
||||
$(simple-targets): $(obj)/conf
|
||||
- $(Q)$< $(silent) --$@ $(Kconfig)
|
||||
|
||||
PHONY += savedefconfig defconfig
|
||||
|
||||
savedefconfig: $(obj)/conf
|
||||
- $(Q)$< $(silent) --$@=defconfig $(Kconfig)
|
||||
|
||||
defconfig: $(obj)/conf
|
||||
-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
|
||||
|
||||
%_defconfig: $(obj)/conf
|
||||
- $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)
|
||||
|
||||
configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@)
|
||||
|
39297
fs-aufs.patch
Normal file
39297
fs-aufs.patch
Normal file
File diff suppressed because it is too large
Load diff
19161
kernel-x86_64.config
19161
kernel-x86_64.config
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
# Too many false errors
|
||||
# too many false errors
|
||||
addFilter("E: zero-length")
|
||||
addFilter("E: incoherent-version-in-name")
|
||||
addFilter("E: unstripped-binary-or-object")
|
||||
|
@ -6,34 +6,3 @@ addFilter("W: devel-file-in-non-devel-package")
|
|||
addFilter("W: dangling-relative-symlink")
|
||||
addFilter("W: non-executable-script")
|
||||
addFilter("W: script-without-shebang")
|
||||
|
||||
# Perhaps OK?
|
||||
addFilter("W: doc-file-dependency")
|
||||
|
||||
# Longer descriptions are allowed in rpm4 platforms
|
||||
addFilter("E: description-line-too-long")
|
||||
|
||||
addFilter("E: useless-provides")
|
||||
addFilter("E: hardcoded-library-path")
|
||||
|
||||
# libexec is OK now
|
||||
addFilter("W: non-standard-dir-in-usr")
|
||||
|
||||
# rpmlint expects "kernel-%%{version}"
|
||||
# but we really have "kernel-%%{version}-generic"
|
||||
addFilter("E: invalid-spec-name")
|
||||
|
||||
# False positive: cpupower package is not a library
|
||||
addFilter("E: non-versioned-file-in-library-package")
|
||||
addFilter("E: executable-in-library-package")
|
||||
|
||||
# UML stuff is OK
|
||||
addFilter("W: symlink-should-be-relative")
|
||||
addFilter("W: executable-stack")
|
||||
|
||||
# Vmlinux is statically linked and has a peculiar internal structure
|
||||
addFilter("E: missing-PT_GNU_STACK-section")
|
||||
addFilter("W: statically-linked-binary")
|
||||
|
||||
# Kernel modules don't bother about joliet compatibility...
|
||||
addFilter("W: filename-too-long-for-joliet")
|
||||
|
|
1928
kernel.spec
1928
kernel.spec
File diff suppressed because it is too large
Load diff
2010
kernel.spec.old
Normal file
2010
kernel.spec.old
Normal file
File diff suppressed because it is too large
Load diff
33
objtool-sync-check.sh-set-the-exit-code-explicitly.patch
Normal file
33
objtool-sync-check.sh-set-the-exit-code-explicitly.patch
Normal file
|
@ -0,0 +1,33 @@
|
|||
From 6b70660e7d730b1ef79360ba7c23fc9f1d4b60e3 Mon Sep 17 00:00:00 2001
|
||||
From: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
||||
Date: Sat, 7 Mar 2020 19:23:40 +0300
|
||||
Subject: [PATCH] objtool/sync-check.sh: set the exit code explicitly
|
||||
|
||||
Commit 6ec14aa7a58a "objtool: Silence build output" removed 'cd -' from
|
||||
the end of sync-check.sh script. As a side-effect, the script now exits
|
||||
with the exit code of the last executed 'check' command. If any of the
|
||||
files it should check are missing (which is not an error per se), it will
|
||||
return 1 and objtool will fail to build.
|
||||
|
||||
Explicit 'exit 0' at the end should fix that.
|
||||
|
||||
Fixes: 6ec14aa7a58a "objtool: Silence build output"
|
||||
Signed-off-by: Evgenii Shatokhin <eshatokhin@virtuozzo.com>
|
||||
---
|
||||
tools/objtool/sync-check.sh | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/tools/objtool/sync-check.sh b/tools/objtool/sync-check.sh
|
||||
index 105a291ff8e7..720a87d795f5 100755
|
||||
--- a/tools/objtool/sync-check.sh
|
||||
+++ b/tools/objtool/sync-check.sh
|
||||
@@ -73,3 +73,5 @@ if [ "$SRCARCH" = "x86" ]; then
|
||||
check $i '-I "^.*\/\*.*__ignore_sync_check__.*\*\/.*$"'
|
||||
done
|
||||
fi
|
||||
+
|
||||
+exit 0
|
||||
|
||||
--
|
||||
2.24.0
|
||||
|
19
perf-silence-format-warnings-gcc8.patch
Normal file
19
perf-silence-format-warnings-gcc8.patch
Normal file
|
@ -0,0 +1,19 @@
|
|||
perf: Silence two kinds of format warnings from GCC 8
|
||||
|
||||
perf may be fixed properly in the newer kernel versions but for now, it is
|
||||
easier to just silence -Werror=format-overflow and -Werror=format-truncation.
|
||||
---
|
||||
|
||||
diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config
|
||||
index 3ec1969b6d3e..3d924b43db4f 100644
|
||||
--- a/tools/perf/Makefile.config
|
||||
+++ b/tools/perf/Makefile.config
|
||||
@@ -203,6 +203,7 @@ CFLAGS += -funwind-tables
|
||||
CORE_CFLAGS += -Wall
|
||||
CORE_CFLAGS += -Wextra
|
||||
CORE_CFLAGS += -std=gnu99
|
||||
+CORE_CFLAGS += -Wno-format-truncation -Wno-format-overflow
|
||||
|
||||
CXXFLAGS += -std=gnu++11 -fno-exceptions -fno-rtti
|
||||
CXXFLAGS += -Wall
|
||||
--
|
13
perf-xmlto-skip-validation.patch
Normal file
13
perf-xmlto-skip-validation.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/tools/perf/Documentation/Makefile b/tools/perf/Documentation/Makefile
|
||||
index 6e54979c2124..ccbc7a68769d 100644
|
||||
--- a/tools/perf/Documentation/Makefile
|
||||
+++ b/tools/perf/Documentation/Makefile
|
||||
@@ -51,7 +51,7 @@ ASCIIDOC=asciidoc
|
||||
ASCIIDOC_EXTRA += --unsafe -f asciidoc.conf
|
||||
ASCIIDOC_HTML = xhtml11
|
||||
MANPAGE_XSL = manpage-normal.xsl
|
||||
-XMLTO_EXTRA =
|
||||
+XMLTO_EXTRA = --skip-validation
|
||||
INSTALL?=install
|
||||
RM ?= rm -f
|
||||
DOC_REF = origin/man
|
Loading…
Add table
Reference in a new issue