summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-12 17:01:34 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-07-19 08:40:27 +0900
commitf60b992e30ffef82fd6cd317c6fba3ccaacbe921 (patch)
tree1f5ff5a98e0f874c0a9018a2d8045e206897254f
parentec33408a2279b7c72fc09eb4c7fba805e3ec5afe (diff)
kbuild: replace $(LDFLAGS) $(ldflags-y) with $(ld_flags)
$(LDFLAGS) $(ldflags-y) is equivalent to $(ld_flags). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
-rw-r--r--scripts/Makefile.lib3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
index 1bb594fcfe12..19155748063b 100644
--- a/scripts/Makefile.lib
+++ b/scripts/Makefile.lib
@@ -225,8 +225,7 @@ $(obj)/%: $(src)/%_shipped
# ---------------------------------------------------------------------------
quiet_cmd_ld = LD $@
-cmd_ld = $(LD) $(LDFLAGS) $(ldflags-y) $(LDFLAGS_$(@F)) \
- $(filter-out FORCE,$^) -o $@
+cmd_ld = $(LD) $(ld_flags) $(LDFLAGS_$(@F)) $(filter-out FORCE,$^) -o $@
# Objcopy
# ---------------------------------------------------------------------------