]> git.sur5r.net Git - u-boot/blobdiff - arch/blackfin/cpu/Makefile
ARM: dts: uniphier: fix interrupt number of USB core for PH1-Pro4
[u-boot] / arch / blackfin / cpu / Makefile
index dd4d2d13e0eb2bc91062c537db8673c2d779e3f5..7cd0bbf24e1e322cc2c6c27a5c7915da21daca4a 100644 (file)
@@ -6,7 +6,7 @@
 # (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
@@ -22,6 +22,7 @@ obj-y  += reset.o
 obj-y  += traps.o
 
 extra-y += check_initcode
+clean-files := init.lds
 
 # make sure our initcode (which goes into LDR) does not
 # have relocs or external references
@@ -36,5 +37,9 @@ ifneq ($(CONFIG_BFIN_BOOT_MODE),BFIN_BOOT_BYPASS)
 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