kbuild: replace $(LDFLAGS) $(ldflags-y) with $(ld_flags)
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 12 Jul 2018 08:01:34 +0000 (17:01 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 18 Jul 2018 23:40:27 +0000 (08:40 +0900)
$(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>
scripts/Makefile.lib

index 1bb594f..1915574 100644 (file)
@@ -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
 # ---------------------------------------------------------------------------