Home
last modified time | relevance | path

Searched hist:"1 bf807b8f7e0eada62007f9f1966f3d22329eef9" (Results 1 – 2 of 2) sorted by relevance

/linux/Documentation/kbuild/
H A Dmakefiles.rst1bf807b8f7e0eada62007f9f1966f3d22329eef9 Mon Jun 02 18:12:53 UTC 2025 Masahiro Yamada <masahiroy@kernel.org> kbuild: set y instead of 1 to KBUILD_{BUILTIN,MODULES}

KBUILD_BUILTIN is set to 1 unless you are building only modules.

KBUILD_MODULES is set to 1 when you are building only modules
(a typical use case is "make modules").

It is more useful to set them to 'y' instead, so we can do
something like:

always-$(KBUILD_BUILTIN) += vmlinux.lds

This works equivalently to:

extra-y += vmlinux.lds

This allows us to deprecate extra-y. extra-y and always-y are quite
similar, and we do not need both.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
/linux/
H A DMakefile1bf807b8f7e0eada62007f9f1966f3d22329eef9 Mon Jun 02 18:12:53 UTC 2025 Masahiro Yamada <masahiroy@kernel.org> kbuild: set y instead of 1 to KBUILD_{BUILTIN,MODULES}

KBUILD_BUILTIN is set to 1 unless you are building only modules.

KBUILD_MODULES is set to 1 when you are building only modules
(a typical use case is "make modules").

It is more useful to set them to 'y' instead, so we can do
something like:

always-$(KBUILD_BUILTIN) += vmlinux.lds

This works equivalently to:

extra-y += vmlinux.lds

This allows us to deprecate extra-y. extra-y and always-y are quite
similar, and we do not need both.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>