]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
kbuild: clear LDFLAGS in the top Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 16 Mar 2018 07:37:09 +0000 (16:37 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 25 Mar 2018 17:01:21 +0000 (02:01 +0900)
commitce99d0bf312daf0178e640da9e3c93b773a67e7d
tree8fe9c4fcae4fb441918f4a00133a5650d9e9ab79
parentbd0f98eba6840d99b791b36a01b83fc62d55235f
kbuild: clear LDFLAGS in the top Makefile

Currently LDFLAGS is not cleared, so same flags are accumulated in
LDFLAGS when the top Makefile is recursively invoked.

I found unneeded rebuild for ARCH=arm64 when CONFIG_TRIM_UNUSED_KSYMS
is enabled.  If include/generated/autoksyms.h is updated, the top
Makefile is recursively invoked, then arch/arm64/Makefile adds one
more '-maarch64linux'.  Due to the command line change, modules are
rebuilt needlessly.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Makefile