xref: /linux/arch/xtensa/boot/dts/Makefile (revision 990857042f599440ea7a10b84c17a06ed21078e5)
12a02bc16SStephen Warren#
22a02bc16SStephen Warren# arch/xtensa/boot/dts/Makefile
32a02bc16SStephen Warren#
42a02bc16SStephen Warren# This file is subject to the terms and conditions of the GNU General Public
52a02bc16SStephen Warren# License.  See the file "COPYING" in the main directory of this archive
62a02bc16SStephen Warren# for more details.
72a02bc16SStephen Warren#
82a02bc16SStephen Warren#
92a02bc16SStephen Warren
102a02bc16SStephen WarrenBUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB)).dtb.o
112a02bc16SStephen Warrenifneq ($(CONFIG_BUILTIN_DTB),"")
122a02bc16SStephen Warrenobj-$(CONFIG_OF) += $(BUILTIN_DTB)
132a02bc16SStephen Warrenendif
142a02bc16SStephen Warren
15*99085704SRob Herringdtstree := $(srctree)/$(src)
16*99085704SRob Herringdtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
17*99085704SRob Herring
18*99085704SRob Herringalways += $(dtb-y)
19*99085704SRob Herringclean-files += *.dtb *.dtb.S
20*99085704SRob Herring
21