xref: /openbmc/linux/arch/microblaze/boot/dts/Makefile (revision ba61bb17)
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