GNU Linux-libre 5.15.137-gnu
[releases.git] / arch / microblaze / boot / dts / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 #
3
4 dtb-y := system.dtb
5
6 ifneq ($(DTB),)
7 obj-y += linked_dtb.o
8
9 # Ensure system.dtb exists
10 $(obj)/linked_dtb.o: $(obj)/system.dtb
11
12 # Generate system.dtb from $(DTB).dtb
13 ifneq ($(DTB),system)
14 $(obj)/system.dtb: $(obj)/$(DTB).dtb
15         $(call if_changed,shipped)
16 endif
17 endif
18
19 # Rule to build device tree blobs
20 DTC_FLAGS := -p 1024