]> asedeno.scripts.mit.edu Git - linux.git/commit
kbuild: remove command line interface LDFLAGS_MODULE from makefiles.txt
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 28 Feb 2018 10:14:23 +0000 (19:14 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:01:20 +0000 (02:01 +0900)
commit35cd02bee6e3f2825ce254159102b788116872d9
treeed127d95a504ba8d53a1b71726d770fe8ba873e1
parent0294e6f4a0006856e1f36b8cd8fa088d9e499e98
kbuild: remove command line interface LDFLAGS_MODULE from makefiles.txt

Documentation/kbuild/makefiles.txt lists variables used in Makefile
whereas Documentation/kbuild/kbuild.txt describes user assignable
parameters given via environments or the command line.

LDFLAGS_MODULE is a command line interface, so it should be dropped
from makefiles.txt.

Some lines below in this file, it is clearly explained that
KBUILD_LDFLAGS_MODULE is the right one for the internal use:

    KBUILD_LDFLAGS_MODULE   Options for $(LD) when linking modules

        $(KBUILD_LDFLAGS_MODULE) is used to add arch-specific options
        used when linking modules. This is often a linker script.
        From commandline LDFLAGS_MODULE shall be used (see kbuild.txt).

Then, kbuild.txt explains LDFLAGS_MODULE, like follows:

    LDFLAGS_MODULE
    --------------------------------------------------
    Additional options used for $(LD) when linking modules.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Documentation/kbuild/makefiles.txt