]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Makefile, Makefile.spl: cosmetic change
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:01 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
Indent the linking commands so that they look cosmetically better.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Makefile
scripts/Makefile.spl

index 9615f8b3a0bc8bb854cdb5fd5f3010aed4f85949..92d2a1ff6a45ff5e31b770d6d4f0eed7ce91227f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1711,11 +1711,13 @@ ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(ARCH)/Makefile.postlink)
 # Rule to link u-boot
 # May be overridden by arch/$(ARCH)/config.mk
 quiet_cmd_u-boot__ ?= LD      $@
-      cmd_u-boot__ ?= $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_u-boot) -o $@ \
-      -T u-boot.lds $(u-boot-init)                             \
-      --start-group $(u-boot-main) --end-group                 \
-      $(PLATFORM_LIBS) -Map u-boot.map;                        \
-      $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
+      cmd_u-boot__ ?= $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_u-boot) -o $@          \
+               -T u-boot.lds $(u-boot-init)                                    \
+               --start-group                                                   \
+                       $(u-boot-main)                                          \
+               --end-group                                                     \
+               $(PLATFORM_LIBS) -Map u-boot.map;                               \
+               $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
 
 quiet_cmd_smap = GEN     common/system_map.o
 cmd_smap = \
index c69525fa74806eb12497cffe902561f606321ac4..92775fef5497c9f8129742a7c5b4c8ea93dcec24 100644 (file)
@@ -451,12 +451,17 @@ $(obj)/$(SPL_BIN).sym: $(obj)/$(SPL_BIN) FORCE
 # Rule to link u-boot-spl
 # May be overridden by arch/$(ARCH)/config.mk
 quiet_cmd_u-boot-spl ?= LD      $@
-      cmd_u-boot-spl ?= (cd $(obj) && $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_$(@F)) \
-                      $(patsubst $(obj)/%,%,$(u-boot-spl-init)) --start-group \
-                      $(patsubst $(obj)/%,%,$(u-boot-spl-main))  \
-                      $(patsubst $(obj)/%,%,$(u-boot-spl-platdata)) \
-                      --end-group \
-                      $(PLATFORM_LIBS) -Map $(SPL_BIN).map -o $(SPL_BIN))
+      cmd_u-boot-spl ?= \
+       (                                                               \
+               cd $(obj) &&                                            \
+               $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_$(@F))                \
+               $(patsubst $(obj)/%,%,$(u-boot-spl-init))               \
+               --start-group                                           \
+                       $(patsubst $(obj)/%,%,$(u-boot-spl-main))       \
+                       $(patsubst $(obj)/%,%,$(u-boot-spl-platdata))   \
+               --end-group                                             \
+               $(PLATFORM_LIBS) -Map $(SPL_BIN).map -o $(SPL_BIN)      \
+       )
 
 $(obj)/$(SPL_BIN): $(u-boot-spl-platdata) $(u-boot-spl-init) \
                $(u-boot-spl-main) $(obj)/u-boot-spl.lds FORCE