]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: fix the document to use extra-y for vmlinux.lds
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 1 Feb 2020 16:49:23 +0000 (01:49 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 3 Feb 2020 16:50:52 +0000 (01:50 +0900)
commit9de2d5fa6ddc62dbd503bd8a93f525bb21a85049
tree84be5cd6c8cb0f95f6dd6fa5ff8a2f435e2e4825
parent85560807c0022cdddebd9661a3998b5ac5fa671b
kbuild: fix the document to use extra-y for vmlinux.lds

The difference between "always" and "extra-y" is that the targets
listed in $(always) are always built, whereas the ones in $(extra-y)
are built only when KBUILD_BUILTIN is set.

So, "make modules" does not build the targets in $(extra-y).

vmlinux.lds is only needed for linking vmlinux. So, adding it to extra-y
is more correct. In fact, arch/x86/kernel/Makefile does this.

Fix the example code.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Documentation/kbuild/makefiles.rst