xref: /openbmc/linux/arch/arc/boot/dts/Makefile (revision 6f52b16c)
1# SPDX-License-Identifier: GPL-2.0
2# Built-in dtb
3builtindtb-y		:= nsim_700
4
5ifneq ($(CONFIG_ARC_BUILTIN_DTB_NAME),"")
6	builtindtb-y	:= $(patsubst "%",%,$(CONFIG_ARC_BUILTIN_DTB_NAME))
7endif
8
9obj-y   += $(builtindtb-y).dtb.o
10dtb-y := $(builtindtb-y).dtb
11
12.SECONDARY: $(obj)/$(builtindtb-y).dtb.S
13
14dtstree		:= $(srctree)/$(src)
15dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
16
17always := $(dtb-y)
18clean-files := *.dtb  *.dtb.S
19