xref: /linux/arch/microblaze/boot/dts/Makefile (revision 85a3685852d9ac7d92be9d824533c915a4597fa4)
1#
2
3obj-y += linked_dtb.o
4
5# Ensure system.dtb exists
6$(obj)/linked_dtb.o: $(obj)/system.dtb
7
8# Generate system.dtb from $(DTB).dtb
9ifneq ($(DTB),system)
10$(obj)/system.dtb: $(obj)/$(DTB).dtb
11	$(call if_changed,cp)
12endif
13
14quiet_cmd_cp = CP      $< $@$2
15	cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
16
17# Rule to build device tree blobs
18DTC_FLAGS := -p 1024
19