1*300db34aSStephen Warren# 2*300db34aSStephen Warren# arch/microblaze/boot/Makefile 3*300db34aSStephen Warren# 4*300db34aSStephen Warren 5*300db34aSStephen Warrenobj-y += linked_dtb.o 6*300db34aSStephen Warren 7*300db34aSStephen Warren# Ensure system.dtb exists 8*300db34aSStephen Warren$(obj)/linked_dtb.o: $(obj)/system.dtb 9*300db34aSStephen Warren 10*300db34aSStephen Warren# Generate system.dtb from $(DTB).dtb 11*300db34aSStephen Warrenifneq ($(DTB),system) 12*300db34aSStephen Warren$(obj)/system.dtb: $(obj)/$(DTB).dtb 13*300db34aSStephen Warren $(call if_changed,cp) 14*300db34aSStephen Warrenendif 15*300db34aSStephen Warren 16*300db34aSStephen Warrenquiet_cmd_cp = CP $< $@$2 17*300db34aSStephen Warren cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false) 18*300db34aSStephen Warren 19*300db34aSStephen Warren# Rule to build device tree blobs 20*300db34aSStephen WarrenDTC_FLAGS := -p 1024 21*300db34aSStephen Warren 22*300db34aSStephen Warrenclean-files += *.dtb 23