Skip to content

Commit e4cf7c2

Browse files
committed
Merge tag 'kbuild-fixes-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild fixes from Masahiro Yamada: - Fix broken BuildID - Add srcrpm-pkg to the help message - Fix the option order for modpost built with musl libc - Fix the build dependency of rpm-pkg for openSUSE * tag 'kbuild-fixes-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: fixdep: remove unneeded <stdarg.h> inclusion kbuild: sort single-targets alphabetically again kbuild: rpm-pkg: add libelf-devel as alternative for BuildRequires kbuild: Fix running modpost with musl libc kbuild: add a missing line for help message .gitignore: ignore *.rpm arch: fix broken BuildID for arm64 and riscv kconfig: Add static text for search information in help menu
2 parents e39d9b9 + 6a5e25f commit e4cf7c2

File tree

8 files changed

+27
-14
lines changed

8 files changed

+27
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
*.o.*
4040
*.patch
4141
*.rmeta
42+
*.rpm
4243
*.rsi
4344
*.s
4445
*.so

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ no-compiler-targets := $(no-dot-config-targets) install dtbs_install \
297297
headers_install modules_install kernelrelease image_name
298298
no-sync-config-targets := $(no-dot-config-targets) %install kernelrelease \
299299
image_name
300-
single-targets := %.a %.i %.rsi %.ko %.lds %.ll %.lst %.mod %.o %.s %.symtypes %/
300+
single-targets := %.a %.i %.ko %.lds %.ll %.lst %.mod %.o %.rsi %.s %.symtypes %/
301301

302302
config-build :=
303303
mixed-build :=

include/asm-generic/vmlinux.lds.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,12 @@
891891
#define PRINTK_INDEX
892892
#endif
893893

894+
/*
895+
* Discard .note.GNU-stack, which is emitted as PROGBITS by the compiler.
896+
* Otherwise, the type of .notes section would become PROGBITS instead of NOTES.
897+
*/
894898
#define NOTES \
899+
/DISCARD/ : { *(.note.GNU-stack) } \
895900
.notes : AT(ADDR(.notes) - LOAD_OFFSET) { \
896901
BOUNDED_SECTION_BY(.note.*, _notes) \
897902
} NOTES_HEADERS \

scripts/Makefile.modpost

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ ifneq ($(findstring i,$(filter-out --%,$(MAKEFLAGS))),)
5555
modpost-args += -n
5656
endif
5757

58+
ifneq ($(KBUILD_MODPOST_WARN)$(missing-input),)
59+
modpost-args += -w
60+
endif
61+
62+
# Read out modules.order to pass in modpost.
63+
# Otherwise, allmodconfig would fail with "Argument list too long".
64+
ifdef KBUILD_MODULES
65+
modpost-args += -T $(MODORDER)
66+
modpost-deps += $(MODORDER)
67+
endif
68+
5869
ifeq ($(KBUILD_EXTMOD),)
5970

6071
# Generate the list of in-tree objects in vmlinux
@@ -113,17 +124,6 @@ modpost-args += -e $(addprefix -i , $(KBUILD_EXTRA_SYMBOLS))
113124

114125
endif # ($(KBUILD_EXTMOD),)
115126

116-
ifneq ($(KBUILD_MODPOST_WARN)$(missing-input),)
117-
modpost-args += -w
118-
endif
119-
120-
ifdef KBUILD_MODULES
121-
modpost-args += -T $(MODORDER)
122-
modpost-deps += $(MODORDER)
123-
endif
124-
125-
# Read out modules.order to pass in modpost.
126-
# Otherwise, allmodconfig would fail with "Argument list too long".
127127
quiet_cmd_modpost = MODPOST $@
128128
cmd_modpost = \
129129
$(if $(missing-input), \

scripts/Makefile.package

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ $(perf-tar-pkgs):
158158
PHONY += help
159159
help:
160160
@echo ' rpm-pkg - Build both source and binary RPM kernel packages'
161+
@echo ' srcrpm-pkg - Build only the source kernel RPM package'
161162
@echo ' binrpm-pkg - Build only the binary kernel RPM package'
162163
@echo ' deb-pkg - Build both source and binary deb kernel packages'
163164
@echo ' bindeb-pkg - Build only the binary kernel deb package'

scripts/basic/fixdep.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
#include <unistd.h>
9595
#include <fcntl.h>
9696
#include <string.h>
97-
#include <stdarg.h>
9897
#include <stdlib.h>
9998
#include <stdio.h>
10099
#include <ctype.h>

scripts/kconfig/mconf.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ static const char mconf_readme[] =
161161
"(especially with a larger number of unrolled categories) than the\n"
162162
"default mode.\n"
163163
"\n"
164+
165+
"Search\n"
166+
"-------\n"
167+
"Pressing the forward-slash (/) anywhere brings up a search dialog box.\n"
168+
"\n"
169+
164170
"Different color themes available\n"
165171
"--------------------------------\n"
166172
"It is possible to select different color themes using the variable\n"

scripts/package/mkspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ sed -e '/^DEL/d' -e 's/^\t*//' <<EOF
5151
URL: https://www.kernel.org
5252
$S Source: kernel-$__KERNELRELEASE.tar.gz
5353
Provides: $PROVIDES
54-
$S BuildRequires: bc binutils bison dwarves elfutils-libelf-devel flex
54+
$S BuildRequires: bc binutils bison dwarves
55+
$S BuildRequires: (elfutils-libelf-devel or libelf-devel) flex
5556
$S BuildRequires: gcc make openssl openssl-devel perl python3 rsync
5657
5758
# $UTS_MACHINE as a fallback of _arch in case

0 commit comments

Comments
 (0)