]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/blackfin/cpu/Makefile
Merge branch 'karo-tx-uboot' into kc-merge
[karo-tx-uboot.git] / arch / blackfin / cpu / Makefile
index dd4d2d13e0eb2bc91062c537db8673c2d779e3f5..cfbcd3124fd482a65058861e61d72249f91c2a5e 100644 (file)
@@ -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