# (C) Copyright 2000-2006
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
#
-# Licensed under the GPL-2 or later.
+# SPDX-License-Identifier: GPL-2.0+
#
extra-y := init.elf
endif
CPPFLAGS_init.lds := -ansi
+
+quiet_cmd_link_init = LD $@
+ cmd_link_init = $(LD) $(LDFLAGS) -T $^ -o $@
$(obj)/init.elf: $(obj)/init.lds $(obj)/init.o $(obj)/initcode.o
- $(LD) $(LDFLAGS) -T $^ -o $@
+ $(call if_changed,link_init)
+targets += init.lds init.o