mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
990857042f
Enable building all dtb files when CONFIG_OF_ALL_DTBS is enabled. The dtbs are not really dependent on a platform being enabled or any other kernel config, so for testing coverage it is convenient to build all of the dtbs. This builds all dts files in the tree, not just targets listed. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Chris Zankel <chris@zankel.net> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: linux-xtensa@linux-xtensa.org
21 lines
520 B
Makefile
21 lines
520 B
Makefile
#
|
|
# arch/xtensa/boot/dts/Makefile
|
|
#
|
|
# This file is subject to the terms and conditions of the GNU General Public
|
|
# License. See the file "COPYING" in the main directory of this archive
|
|
# for more details.
|
|
#
|
|
#
|
|
|
|
BUILTIN_DTB := $(patsubst "%",%,$(CONFIG_BUILTIN_DTB)).dtb.o
|
|
ifneq ($(CONFIG_BUILTIN_DTB),"")
|
|
obj-$(CONFIG_OF) += $(BUILTIN_DTB)
|
|
endif
|
|
|
|
dtstree := $(srctree)/$(src)
|
|
dtb-$(CONFIG_OF_ALL_DTBS) := $(patsubst $(dtstree)/%.dts,%.dtb, $(wildcard $(dtstree)/*.dts))
|
|
|
|
always += $(dtb-y)
|
|
clean-files += *.dtb *.dtb.S
|
|
|