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