Skip to content

Commit 68e5c7d

Browse files
committed
Merge tag 'kbuild-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
Pull Kbuild updates from Masahiro Yamada: - Support cross-compiling linux-headers Debian package and kernel-devel RPM package - Add support for the linux-debug Pacman package - Improve module rebuilding speed by factoring out the common code to scripts/module-common.c - Separate device tree build rules into scripts/Makefile.dtbs - Add a new script to generate modules.builtin.ranges, which is useful for tracing tools to find symbols in built-in modules - Refactor Kconfig and misc tools - Update Kbuild and Kconfig documentation * tag 'kbuild-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (51 commits) kbuild: doc: replace "gcc" in external module description kbuild: doc: describe the -C option precisely for external module builds kbuild: doc: remove the description about shipped files kbuild: doc: drop section numbering, use references in modules.rst kbuild: doc: throw out the local table of contents in modules.rst kbuild: doc: remove outdated description of the limitation on -I usage kbuild: doc: remove description about grepping CONFIG options kbuild: doc: update the description about Kbuild/Makefile split kbuild: remove unnecessary export of RUST_LIB_SRC kbuild: remove append operation on cmd_ld_ko_o kconfig: cache expression values kconfig: use hash table to reuse expressions kconfig: refactor expr_eliminate_dups() kconfig: add comments to expression transformations kconfig: change some expr_*() functions to bool scripts: move hash function from scripts/kconfig/ to scripts/include/ kallsyms: change overflow variable to bool type kallsyms: squash output_address() kbuild: add install target for modules.builtin.ranges scripts: add verifier script for builtin module range data ...
2 parents 7f8de2b + fa911d1 commit 68e5c7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1867
-909
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
*.so.dbg
4848
*.su
4949
*.symtypes
50-
*.symversions
5150
*.tab.[ch]
5251
*.tar
5352
*.xz
@@ -71,6 +70,7 @@ modules.order
7170
/Module.markers
7271
/modules.builtin
7372
/modules.builtin.modinfo
73+
/modules.builtin.ranges
7474
/modules.nsdeps
7575

7676
#
@@ -143,7 +143,6 @@ GTAGS
143143
# id-utils files
144144
ID
145145

146-
*.orig
147146
*~
148147
\#*#
149148

Documentation/dontdiff

+1
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ modpost
180180
modules-only.symvers
181181
modules.builtin
182182
modules.builtin.modinfo
183+
modules.builtin.ranges
183184
modules.nsdeps
184185
modules.order
185186
modversions.h*

Documentation/kbuild/kbuild.rst

+10
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ modules.builtin.modinfo
2222
This file contains modinfo from all modules that are built into the kernel.
2323
Unlike modinfo of a separate module, all fields are prefixed with module name.
2424

25+
modules.builtin.ranges
26+
----------------------
27+
This file contains address offset ranges (per ELF section) for all modules
28+
that are built into the kernel. Together with System.map, it can be used
29+
to associate module names with symbols.
2530

2631
Environment variables
2732
=====================
@@ -129,6 +134,11 @@ KBUILD_OUTPUT
129134
-------------
130135
Specify the output directory when building the kernel.
131136

137+
This variable can also be used to point to the kernel output directory when
138+
building external modules against a pre-built kernel in a separate build
139+
directory. Please note that this does NOT specify the output directory for the
140+
external modules themselves.
141+
132142
The output directory can also be specified using "O=...".
133143

134144
Setting "O=..." takes precedence over KBUILD_OUTPUT.

Documentation/kbuild/kconfig-language.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ applicable everywhere (see syntax).
7070

7171
Every menu entry can have at most one prompt, which is used to display
7272
to the user. Optionally dependencies only for this prompt can be added
73-
with "if".
73+
with "if". If a prompt is not present, the config option is a non-visible
74+
symbol, meaning its value cannot be directly changed by the user (such as
75+
altering the value in ``.config``) and the option will not appear in any
76+
config menus. Its value can only be set via "default" and "select" (see
77+
below).
7478

7579
- default value: "default" <expr> ["if" <expr>]
7680

Documentation/kbuild/makefiles.rst

-1
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,5 @@ Credits
16651665
TODO
16661666
====
16671667

1668-
- Describe how kbuild supports shipped files with _shipped.
16691668
- Generating offset header files.
16701669
- Add more variables to chapters 7 or 9?

0 commit comments

Comments
 (0)